Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix header layout responsivity #109

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Navbar/DesktopNav/DesktopNavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const DesktopNavLinks: FC<DesktopNavLinksProps> = ({
}) => {
return (
<HStack
w="100%"
w={{ base: "100%", xl: "auto" }}
borderRight="1px solid"
borderLeft="1px solid"
borderColor="gray.700"
px={8}
spacing={4}
display={{ base: "none", md: "inherit" }}
justifyContent={{ base: "end", lg: "start" }}
justifyContent={{ base: "end", xl: "start" }}
as="nav"
>
{navLinks.map(({ subitems, label, url }) => {
Expand Down
9 changes: 5 additions & 4 deletions src/components/Navbar/SocialMediaLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ const SocialMediaLinks: FC<
> = ({ isMobileDrawerFooter, links, ...stackProps }) => {
return (
<HStack
spacing={6}
w="100%"
spacing={5}
display={{
base: isMobileDrawerFooter ? "inherit" : "none",
lg: "inherit",
xl: "inherit",
}}
justifyContent={{
base: isMobileDrawerFooter ? "center" : "flex-end",
lg: "flex-start",
xl: "flex-start",
}}
borderLeft={{
base: isMobileDrawerFooter ? "none" : "1px solid",
lg: "none",
xl: "none",
}}
borderColor="brand.300"
marginBottom={isMobileDrawerFooter ? 8 : undefined}
Expand Down
4 changes: 3 additions & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,19 @@ export const Navbar: FC = () => {
<>
{showBanner && <WhatsNextBanner onClose={closeBanner} />}
<HStack
w="100%"
bg="gray.900"
h="90px"
borderBottom="1px solid"
borderColor="gray.700"
as="header"
>
<Container
maxW="1140px"
h="100%"
maxW="none"
display="flex"
justifyContent="space-between"
pr={{ base: 0, xl: 8 }}
>
<ThresholdBrand />
<MobileDrawer
Expand Down
5 changes: 3 additions & 2 deletions src/components/ThresholdBrand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const ThresholdBrand: FC<{ isDrawerOpen?: boolean } & StackProps> = ({
}) => {
return (
<HStack
minW={{ base: "184px", lg: "225px" }}
justifyContent={isDrawerOpen ? "center" : "flex-start"}
w={{ xl: "100%" }}
minW={{ base: "184px", xl: "225px" }}
justifyContent={isDrawerOpen ? "center" : "end"}
pr="32px"
{...props}
>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/build-page/tbtc-sdk/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface SDKTitleProps {
}

const SDKTitle: FC<SDKTitleProps> = ({ title, highlightedWord }) => (
<Box mr="-4rem">
<Box mr={{ lg: "-4rem" }}>
<HighlightWord
title={title}
highlightedWord={highlightedWord}
Expand Down