-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Sokilskill/add-i18
Add i18
- Loading branch information
Showing
52 changed files
with
763 additions
and
301 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Box, Flex, Text } from "@chakra-ui/react"; | ||
|
||
import { LogoTabletDesk } from "../Logo"; | ||
import { Logo } from "../Logo"; | ||
import { NavList } from "../NavList/NavList"; | ||
import { | ||
listGoodness, | ||
|
@@ -11,54 +11,52 @@ import { useBreakpoint } from "../../hooks/useBreakpoint"; | |
import { SocialSection } from "./SocialSection"; | ||
import { NavigationListsContainer } from "./NavigationListContainer"; | ||
import { HelpSection } from "./DonationInfo"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
const Footer: React.FC = () => { | ||
const breakpoint = useBreakpoint(); | ||
const { t } = useTranslation(); | ||
|
||
const MobileDesktopFooter = () => { | ||
return ( | ||
const MobileDesktopFooter = () => ( | ||
<Flex | ||
direction={{ base: "column", lg: "row" }} | ||
alignItems={{ base: "center", lg: "flex-start" }} | ||
justify={{ md: "space-between", lg: "center" }} | ||
gap={{ base: "36px", md: "unset" }} | ||
mb="44px" | ||
> | ||
<SocialSection> | ||
<Logo /> | ||
</SocialSection> | ||
|
||
<NavigationListsContainer> | ||
<NavList listItem={listGoodness} aria-label="Goodness" /> | ||
<NavList listItem={listAbout} aria-label="About us" /> | ||
<NavList listItem={listContactDetails} aria-label="Contact details" /> | ||
<HelpSection /> | ||
</NavigationListsContainer> | ||
</Flex> | ||
); | ||
|
||
const TabletFooter = () => ( | ||
<> | ||
<Flex | ||
direction={{ base: "column", lg: "row" }} | ||
alignItems={{ base: "center" }} | ||
justify={{ md: "space-between", lg: "center" }} | ||
gap={{ base: "36px", md: "unset" }} | ||
flexDirection={{ md: "row" }} | ||
justifyContent="space-between" | ||
mb="44px" | ||
> | ||
<SocialSection> | ||
<LogoTabletDesk /> | ||
</SocialSection> | ||
|
||
<NavigationListsContainer> | ||
<NavList listItem={listGoodness} aria-label="Goodness" /> | ||
<NavList listItem={listAbout} aria-label="About us" /> | ||
<NavList listItem={listContactDetails} aria-label="Contact details" /> | ||
<HelpSection /> | ||
</NavigationListsContainer> | ||
<Logo style={{ mr: "0" }} /> | ||
<SocialSection /> | ||
<HelpSection /> | ||
</Flex> | ||
); | ||
}; | ||
|
||
const TabletFooter = () => { | ||
return ( | ||
<> | ||
<Flex | ||
flexDirection={{ md: "row" }} | ||
justifyContent="space-between" | ||
mb="44px" | ||
> | ||
<LogoTabletDesk style={{ mr: "unset" }} /> | ||
<SocialSection /> | ||
<HelpSection /> | ||
</Flex> | ||
|
||
<NavigationListsContainer> | ||
<NavList listItem={listAbout} aria-label="About us" /> | ||
<NavList listItem={listGoodness} aria-label="Goodness" /> | ||
<NavList listItem={listContactDetails} aria-label="Contact details" /> | ||
</NavigationListsContainer> | ||
</> | ||
); | ||
}; | ||
<NavigationListsContainer> | ||
<NavList listItem={listAbout} aria-label="About us" /> | ||
<NavList listItem={listGoodness} aria-label="Goodness" /> | ||
<NavList listItem={listContactDetails} aria-label="Contact details" /> | ||
</NavigationListsContainer> | ||
</> | ||
); | ||
|
||
return ( | ||
<Box | ||
|
@@ -69,14 +67,10 @@ const Footer: React.FC = () => { | |
pb={{ base: "25px", md: "50px" }} | ||
px={{ base: "16px", md: "32px", lg: "40px" }} | ||
> | ||
{breakpoint === "mobile" || breakpoint === "desktop" ? ( | ||
<MobileDesktopFooter /> | ||
) : ( | ||
<TabletFooter /> | ||
)} | ||
{breakpoint !== "laptop" ? <MobileDesktopFooter /> : <TabletFooter />} | ||
|
||
<Text textAlign="center" mt={20}> | ||
© 2024. Всі права захищено <b>[email protected]</b> | ||
© 2024. {t("policy")} <b>[email protected]</b> | ||
</Text> | ||
</Box> | ||
); | ||
|
Oops, something went wrong.