Skip to content

Commit 0ef6fe0

Browse files
author
Chai Landau
committed
feat: add full logo to header
1 parent 66a65a1 commit 0ef6fe0

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

public/images/octo_logo.svg

Lines changed: 10 additions & 0 deletions
Loading

src/components/Header/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const Header = () => {
1414
>
1515
<span>by</span>
1616
<Image
17-
src="/icons/octo.svg"
17+
src="/images/octo_logo.svg"
1818
alt="OctoAI Icon"
19-
width="22"
20-
height="24"
19+
fill
20+
objectFit="contain"
2121
/>
2222
</a>
2323
</div>

src/components/Select/Select.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ interface SelectProps {
2727
const Select: FC<SelectProps> = ({ label, listItems }) => (
2828
<ReactAriaSelect className="select" defaultSelectedKey={"2024"}>
2929
{label && <Label>{label}</Label>}
30-
30+
3131
<Button>
32-
<SelectValue />
32+
<span>
33+
<span className="mobile-text">Year:</span>
34+
<SelectValue />
35+
</span>
3336
<span aria-hidden="true" className="icon">
3437
<img src="/icons/chevron.svg" />
3538
</span>

src/styles/components/header.css

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,36 @@ header {
3434
}
3535
&.dropdown {
3636
.left {
37-
@apply gap-2 md:gap-3;
37+
@apply gap-2 md:gap-3 justify-between w-full xs:w-auto xs:justify-start;
38+
}
39+
.right {
40+
@apply w-full xs:w-auto;
3841
}
3942
& > div {
40-
@apply pb-1 flex-row;
43+
@apply pb-1 flex-col gap-2 xs:flex-row;
4144
}
4245
a {
43-
@apply text-[1.125rem] xs:text-2xs sm:text-xs md:text-lg;
46+
@apply text-[1.125rem] xs:text-2xs sm:text-xs md:text-md;
4447
}
4548
.by-octo {
46-
@apply hidden xs:flex;
4749
a {
4850
@apply gap-[6px] md:gap-2 dark:text-gray-400;
4951
}
5052
img {
51-
@apply max-h-6 dark:brightness-84 dark:contrast-84 dark:hue-rotate-145 dark:invert-77 dark:saturate-194 dark:sepia-4 dark:filter;
53+
@apply !relative max-h-[18px] dark:brightness-84 dark:contrast-84 dark:hue-rotate-145 dark:invert-77 dark:saturate-194 dark:sepia-4 dark:filter m-auto;
5254
}
5355
span {
5456
@apply text-body-sm md:text-body transition-font-size;
5557
}
5658
}
5759
.select {
60+
&,
61+
button {
62+
@apply w-full text-center grid grid-cols-select xs:flex xs:w-[100px];
63+
.mobile-text {
64+
@apply inline-block mr-1 text-gray-500 xs:hidden dark:text-gray-300;
65+
}
66+
}
5867
.react-aria-Label {
5968
@apply hidden text-body-sm xs:block;
6069
}

tailwind.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ const theme: Config = {
9696
"84": "84",
9797
"86": ".86",
9898
},
99+
gridTemplateColumns: {
100+
select: "1fr 12px",
101+
},
99102
},
100103
colors: {
101104
transparent: "transparent",

0 commit comments

Comments
 (0)