Skip to content

Commit 37e3bcf

Browse files
committed
Tablet support for nav
1 parent f51ded6 commit 37e3bcf

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

src/shared/ui/Button/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const button = tv({
77
xs: "capitalize font-[Poppins] font-medium text-[12px] px-[16px] py-[12px] lg:text-[10px] lg:px-[16px] lg:py-[12px] xl:text-[14px] xl:px-[22px] xl:py-[18px]",
88
sm: "uppercase font-[Poppins] text-[10px] px-[18px] py-[10px] xl:text-[14px] xl:px-[26px] xl:py-[16px]",
99
md: "uppercase font-[Poppins] text-[12px] px-[21px] py-[15px] xl:text-[16px] xl:px-[30px] xl:py-[18px]",
10-
lg: "uppercase font-[Poppins] lg:text-[17px] lg:px-[24px] lg:py-[16px]",
10+
lg: "uppercase font-[Poppins] lg:text-[12px] lg:px-[18px] lg:py-[12px] xl:text-[17px] xl:px-[24px] xl:py-[16px]",
1111
xl: "capitalize font-[Outfit] text-[12px] px-[14px] py-[10px] lg:text-[16px] lg:px-[18px] lg:py-[14px] xl:text-[22px] xl:px-[26px] xl:py-[20px]",
1212
xl2: "capitalize font-[Outfit] text-[12px] px-[14px] py-[10px] lg:text-[16px] lg:px-[22px] lg:py-[14px] xl:text-[22px] xl:px-[30px] xl:py-[20px]",
1313
},

src/shared/ui/Nav/Nav.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const Nav = () => {
1010

1111
return (
1212
<>
13-
<nav class="flex justify-center sticky top-0 w-full bg-[#f9f9f9]/40 backdrop-blur-3xl z-3 px-[28px] xl:px-0 xl:pt-[20px] xl:mt-[25px]">
14-
<div class="max-w-[1200px] xl:flex flex-row items-center gap-[118px] h-[78px] pb-[20px] hidden">
15-
<div class="flex flex-row gap-[57px] items-center">
13+
<nav class="flex justify-center sticky top-0 w-full bg-[#f9f9f9]/40 backdrop-blur-3xl z-3 px-[28px] lg:px-0 lg:pt-[20px] lg:mt-[25px]">
14+
<div class="lg:flex flex-row items-center gap-[80px] xl:gap-[100px] pb-[20px] hidden">
15+
<div class="flex flex-row gap-[40px] xl:gap-[50px] items-center">
1616
<A href="/#">
17-
<img src="/divesea/icons/logo.svg" class="w-[53px] h-[53px]" alt="Logo" />
17+
<img src="/divesea/icons/logo.svg" class="w-[40px] xl:w-[50px] aspect-square" alt="Logo" />
1818
</A>
1919
<div class="flex flex-row gap-[24px]">
2020
<a class="nav-link" href="#weekly">
@@ -31,14 +31,14 @@ const Nav = () => {
3131
</a>
3232
</div>
3333
</div>
34-
<div class="flex flex-row gap-[30px] items-center">
34+
<div class="flex flex-row gap-[20px] xl:gap-[30px] items-center">
3535
<Search />
3636
<Button size="lg" fill>
3737
Connect Wallet
3838
</Button>
3939
</div>
4040
</div>
41-
<div class="flex flex-row xl:hidden w-full py-[16px] justify-between">
41+
<div class="flex flex-row lg:hidden w-full py-[16px] justify-between">
4242
<div class="flex flex-row gap-[7px] items-center">
4343
<img src="/divesea/icons/wave_black.svg" alt="Logo" />
4444
<span class="font-[Poppins] font-semibold text-[21.36px] text-black">DiveSea</span>

src/shared/ui/Nav/Search.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const Search = () => (
2-
<div class="flex flex-row w-[348px] h-[57px] bg-[#ededed] rounded-2xl items-center p-[22px] gap-[22px]">
3-
<img loading="lazy" src="/divesea/icons/search.svg" class="h-[22px] w-[22px]" alt="Search" />
2+
<div class="flex flex-row w-[250px] h-[40px] xl:w-[348px] xl:h-[57px] bg-[#ededed] rounded-2xl items-center p-[22px] gap-[22px]">
3+
<img loading="lazy" src="/divesea/icons/search.svg" class="w-[16px] xl:w-[22px] aspect-square" alt="Search" />
44
<input
5-
placeholder="Search Art Work / Creator"
6-
class="placeholder:text-[#c2c3cb] outline-none font-[Poppins] font-medium grow"
5+
placeholder="Search Art Work or Creator"
6+
class="placeholder:text-[#c2c3cb] outline-none font-[Poppins] font-medium grow text-[12px] xl:text-[16px] xl:w-[220px] tracking-[-2%]"
77
/>
88
</div>
99
)

src/shared/ui/Nav/styles.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
font-size: 18px;
66
color: #606060;
77
}
8+
9+
@media screen and (max-width: 1279px) {
10+
.nav-link {
11+
font-size: 12px;
12+
}
13+
}

0 commit comments

Comments
 (0)