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

Feature/mobile png #242

Merged
merged 3 commits into from
Jul 31, 2023
Merged
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
Binary file added public/InterestedLooper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/SnxMainLooper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/StakingLooper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 23 additions & 8 deletions src/sections/home/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Button, Flex, Text } from '@chakra-ui/react';
import { Box, Button, Flex, Show, Text, Image } from '@chakra-ui/react';
import SNXMainLooper from 'src/svg/SNXMainLooper';

export const Hero = () => {
Expand Down Expand Up @@ -65,13 +65,28 @@ export const Hero = () => {
top="20px"
left={{ base: '-500px' }}
/>
<SNXMainLooper
top={{ base: '0px', md: '50px', lg: '100px' }}
left={{ base: '-200px', sm: '-100px', md: 'unset' }}
position="absolute"
zIndex={0}
width={{ base: '250%', sm: '200%', md: '175%', lg: 'unset' }}
/>
{/* Png for smaller devices, Svg for larger */}
<Show above="md">
<SNXMainLooper
top={{ base: '0px', md: '50px', lg: '100px' }}
left={{ base: '-200px', sm: '-100px', md: 'unset' }}
position="absolute"
zIndex={0}
width={{ base: '250%', sm: '200%', md: '175%', lg: 'unset' }}
/>
</Show>
<Show below="md">
<Image
src="/SnxMainLooper.png"
alt="Main looper"
top={{ base: '125px', md: '50px' }}
left={{ base: '-20%', sm: '0%' }}
position="absolute"
zIndex={0}
minWidth={{ base: '700px' }}
width="250%"
/>
</Show>
</Flex>
);
};
7 changes: 4 additions & 3 deletions src/sections/home/interested.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Flex, Link, Show, Text } from '@chakra-ui/react';
import { Button, Flex, Link, Show, Text, Image } from '@chakra-ui/react';
import { InterestedLooper } from 'src/svg/InterestedLooper';
import { links } from 'src/utils/constants';

Expand All @@ -16,14 +16,16 @@ export const Interested = () => {
>
<Show below="lg">
<Flex display="relative" height="250px" width="100%" bg="navy.700">
<InterestedLooper
<Image
maxHeight="400px"
maxWidth="100%"
position="absolute"
top="0"
right="0"
bottom="0"
zIndex={0}
src="/InterestedLooper.png"
alt="Interested Looper"
/>
</Flex>
</Show>
Expand Down Expand Up @@ -59,7 +61,6 @@ export const Interested = () => {
by visiting the developer documentation and joining the Synthetix
Discord
</Text>

<Link href={links.v3IntegrationGuide} target="_blank">
<Button
w="fit-content"
Expand Down
9 changes: 6 additions & 3 deletions src/sections/home/staking.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Flex, Link, Show, Text } from '@chakra-ui/react';
import { Button, Flex, Link, Show, Text, Image } from '@chakra-ui/react';
import { StakingLooper } from 'src/svg/StakingLooper';
import { links } from 'src/utils/constants';

Expand All @@ -25,14 +25,17 @@ export const Staking = () => {
flexDirection={{ base: 'column', lg: 'row' }}
>
<Show above="base" below="lg">
<Flex maxWidth="100%" height="290px" position="relative">
<StakingLooper
<Flex maxWidth="100%" height="290px" position="relative" mb={4}>
<Image
src="/StakingLooper.png"
alt="Staking Looper"
maxHeight="100%"
maxWidth="100%"
position="absolute"
left="0"
top="0"
bottom="0"
right="0"
/>
</Flex>
</Show>
Expand Down