Skip to content

Commit 246fc24

Browse files
committed
Add images and styling fixes
1 parent 6f1e680 commit 246fc24

11 files changed

Lines changed: 64 additions & 11 deletions

File tree

demo/app/public/BlackSkyLogo.png

30.4 KB
Loading
3.96 KB
Loading

demo/app/public/PlanetLogo.png

11.8 KB
Loading

demo/app/public/UmbraLogo.png

10.1 KB
Loading

demo/app/src/components/Footer/Footer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import Container from '@components/Container';
2-
2+
import { E84Logo } from './../../utils/constants';
33
import styles from './Footer.module.scss';
44

55
const Footer = ({ ...rest }) => {
66
return (
77
<footer className={styles.footer} {...rest}>
88
<Container className={`${styles.footerContainer} ${styles.footerLegal}`}>
99
<p>
10-
powered by <a href="https://element84.com" target="_blank">Element 84</a> &copy; {new Date().getFullYear()}
10+
powered by <a href="https://element84.com" target="_blank">{E84Logo}</a> &copy; {new Date().getFullYear()}
1111
</p>
1212
</Container>
1313
</footer>

demo/app/src/components/Header/Header.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
UTurnArrowLeft
99
} from '@vectopus/atlas-icons-react';
1010

11+
import { STATLogo } from './../../utils/constants';
1112
import styles from './Header.module.scss';
1213

1314
const Header = () => {
@@ -18,8 +19,8 @@ const Header = () => {
1819
<header className={styles.header}>
1920
<Container className={styles.headerContainer}>
2021
<p className={styles.headerTitle}>
22+
{STATLogo}
2123
<Link href="/">
22-
{/* <Image src="/logo.png" alt="logo" width={35} height={35} /> */}
2324
Task a Satellite
2425
</Link>
2526
</p>

demo/app/src/components/Header/Header.module.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@
1515
justify-content: space-between;
1616
align-items: center;
1717
width: 100%;
18-
1918
}
2019

2120
.headerTitle {
2221
font-size: 1.6em;
2322
font-weight: bold;
2423
margin: 0;
25-
}
24+
display: inline;
2625

27-
.headerLogo {
28-
height: 1.6em;
26+
svg {
27+
margin-left: 20px;
28+
margin-right: 10px;
29+
vertical-align: middle;
30+
}
2931
}
3032

3133
.headerLinks {
@@ -61,6 +63,8 @@
6163
height: 35px;
6264
background-color: $color-light-gray;
6365
z-index: 9999;
66+
padding-left: 20px;
67+
padding-top: 4px;
6468

6569
.resetSearch,
6670
.resetSearchIcon {

demo/app/src/components/Map/Map.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
&:before{
2222
display: table-cell;
2323
position: absolute;
24-
top: 6px;
25-
left: 6px;
24+
top: 5px;
25+
left: 5px;
2626
content: "";
2727
border-radius: 50%;
2828
background-color: #FA00FF;

demo/app/src/components/Sidebar/Opportunity.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import { formatToFriendlyString } from 'src/utils';
2-
import styles from './Sidebar.module.scss'
2+
import styles from './Sidebar.module.scss';
3+
import Image from 'next/image'
4+
5+
const imageIdToPath = {
6+
'earthsearch': '/EarthSearchLogo.jpg',
7+
'planet': '/PlanetLogo.png',
8+
'umbra': '/UmbraLogo.png',
9+
'blacksky': '/BlackSkyLogo.png'
10+
}
311

412
export default function Opportunity({
513
title,
@@ -18,8 +26,10 @@ export default function Opportunity({
1826
onMouseEnter={onMouseEnter}
1927
onMouseLeave={onMouseLeave}
2028
>
29+
<div className={styles.logoContainer}>
30+
<Image src={imageIdToPath[provider] ?? '/logo.png'} width='25' height='25' />
31+
</div>
2132
<h1>{title}</h1>
22-
<h2>{provider}</h2>
2333
<div className={styles.previewStartDate}>
2434
{formatToFriendlyString(start) ?? 'no start date given'}
2535
</div>

demo/app/src/components/Sidebar/Sidebar.module.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184

185185
.opportunityPreview > h1 {
186186
font-size: medium;
187+
position: absolute;
188+
left: 25%;
187189
}
188190

189191
.previewStartDate{
@@ -209,3 +211,17 @@
209211
padding-left: 10px;
210212
color: black;
211213
}
214+
215+
.logoContainer {
216+
position: absolute;
217+
width: 25%;
218+
top: 20px;
219+
220+
img {
221+
width: 80%;
222+
padding-right: 10px;
223+
height: fit-content;
224+
vertical-align: middle;
225+
}
226+
}
227+

0 commit comments

Comments
 (0)