Skip to content

Commit

Permalink
update: pricing page overall layout (#445)
Browse files Browse the repository at this point in the history
update: pricing page overall layout
  • Loading branch information
HoomanDgtl authored Dec 6, 2024
1 parent 09455cc commit ec4a30f
Show file tree
Hide file tree
Showing 14 changed files with 630 additions and 677 deletions.
20 changes: 17 additions & 3 deletions src/assets/gpu-brand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 9 additions & 7 deletions src/assets/ips-brand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/assets/memory-brand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 12 additions & 6 deletions src/components/header/header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const visibilty = {
community: ["/community"],
development: ["/development"],
ecosystem: ["/ecosystem"],
pricing: ["/pricing"],
};
const pathnames = Object.values(visibilty).flat();
Expand All @@ -45,12 +46,12 @@ const posts = (await getCollection("Blog"))
? ""
: pathnames.includes(pathname)
? ""
: "top-0 sticky z-[30]",
: "top-0 sticky z-[30]"
)}
>
<nav
class={clsx(
"container-nav mx-auto flex h-[56px] items-center justify-between space-x-2 md:h-[84px]",
"container-nav mx-auto flex h-[56px] items-center justify-between space-x-2 md:h-[84px]"
)}
id="page-top"
>
Expand All @@ -60,7 +61,7 @@ const posts = (await getCollection("Blog"))
</a>

<div
class="slg:flex mt-1 hidden lg:w-full lg:justify-center lg:gap-x-[20px] xl:gap-x-[24px]"
class="mt-1 hidden lg:w-full lg:justify-center lg:gap-x-[20px] slg:flex xl:gap-x-[24px]"
>
<PopOverNavItemNetwork client:load />
<PopOverCommunity client:load type="community" />
Expand All @@ -87,11 +88,11 @@ const posts = (await getCollection("Blog"))
</a>
</div>

<div class="slg:hidden block overflow-hidden">
<div class="block overflow-hidden slg:hidden">
<HamburgerMenu client:load currentPath={pathname} />
</div>

<div class="slg:flex slg:gap-x-[12px] hidden flex-shrink-0">
<div class="hidden flex-shrink-0 slg:flex slg:gap-x-[12px]">
<DarkModeToggle nav />

<div class="mr-3 hidden items-center gap-x-[12px] text-para xl:flex">
Expand Down Expand Up @@ -144,7 +145,7 @@ const posts = (await getCollection("Blog"))
? "hidden"
: pathnames.includes(pathname)
? "top-0 sticky z-[30]"
: "hidden",
: "hidden"
)}
>
{
Expand All @@ -167,4 +168,9 @@ const posts = (await getCollection("Blog"))
<SubNavbar pathname={Astro.url.pathname} client:load type="ecosystem" />
)
}
{
visibilty.pricing.includes(pathname) && (
<SubNavbar pathname={Astro.url.pathname} client:load type="pricing" />
)
}
</div>
Loading

0 comments on commit ec4a30f

Please sign in to comment.