Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8964f49

Browse files
fix: mobile layout
1 parent 441f2c6 commit 8964f49

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

‎src/components/NavLinks.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const NavLinks = ({ saveBlob }) => {
5353
<Button
5454
href="/page-2/"
5555
as={GatbsyLink}
56+
to="/page-2"
5657
variant="heavy"
5758
leftIcon={<SavedIcon fontSize="18px" />}
5859
aria-label="Saved blobs"

‎src/components/Settings/PatternSetter.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const PatternSetter = ({ type, pattern, switchToPattern }) => {
6868
<Box p="3">
6969
{Object.keys(Patterns).map((name) => (
7070
<PatternBox
71+
key={name}
7172
meta={Patterns[name]}
7273
clickHandler={switchToPattern}
7374
isSelected={pattern === name}

‎src/components/footer.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import ThemeSwitch from './theme-switch';
1818

1919
const Footer = ({ toggleSound, playSound }) => (
2020
<Center my="6">
21-
<HStack spacing="10px" fontSize="sm">
21+
<HStack
22+
spacing="10px"
23+
fontSize="sm"
24+
flexDirection={{ base: 'column-reverse', lg: 'row' }}
25+
>
2226
<Button
2327
variant="silent"
2428
leftIcon={<CopyrightIcon fontSize="lg" />}

‎src/pages/index.js‎

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,27 @@ const IndexPage = () => (
1515
description="Customizable blobs as SVG and Flutter Widget. Create random or fixed blobs, loop, animate, clip them with ease"
1616
/>
1717
<Flex wrap="wrap" flex="1">
18+
<Flex
19+
align="center"
20+
justify="center"
21+
direction="column"
22+
my="4"
23+
w="full"
24+
display={{ base: 'flex', lg: 'none' }}
25+
>
26+
<Logo />
27+
<Heading fontSize="3xl" variant="main">
28+
Generate blobs
29+
</Heading>
30+
</Flex>
1831
<Box
19-
w={{ sm: '100%', lg: 8 / 12 }}
32+
w={{ base: '100%', lg: 8 / 12 }}
2033
justifyContent="center"
2134
alignItems="center"
2235
display="flex"
2336
flexDirection="column"
2437
>
25-
<Box w={{ sm: '100%', lg: 500 }} h={{ lg: 500 }}>
38+
<Box w={{ base: '100%', lg: 500 }} h={{ lg: 500 }}>
2639
<BlobContainer />
2740
</Box>
2841
<Actions />
@@ -35,7 +48,13 @@ const IndexPage = () => (
3548
w={{ sm: '100%', lg: 4 / 12 }}
3649
>
3750
<Box w="full">
38-
<Flex align="center" justify="center" direction="column" mb="8">
51+
<Flex
52+
align="center"
53+
justify="center"
54+
direction="column"
55+
mb="8"
56+
display={{ base: 'none', lg: 'flex' }}
57+
>
3958
<Logo />
4059
<Heading fontSize="3xl" variant="main">
4160
Generate blobs

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /