Skip to content

Commit

Permalink
style: gradients and containers
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 committed Jan 30, 2023
1 parent 8323bf0 commit 492c997
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 1 addition & 3 deletions components/HowTo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import { Flex, Heading, Link, ListItem, OrderedList, Text } from '@chakra-ui/lay
const HowTo = () => {
return (
<Flex
className="container"
direction="column"
border="1px solid"
borderRadius="0.3rem"
padding="2rem"
maxWidth="40rem"
marginTop="3rem"
marginBottom="3rem"
Expand Down
2 changes: 1 addition & 1 deletion components/TxForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TxForm = () => {
ethers.utils.parseUnits(tokenAmount || '0', tokenDecimals).gt(tokenAllowance);

return (
<Box width="24rem">
<Box width="24rem" className="container">
<FormControl>
<FormLabel>Recipient address</FormLabel>
<Input
Expand Down
1 change: 1 addition & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { publicProvider } from 'wagmi/providers/public';
import Header from '@/components/Header';
import { TokenListProvider } from '@/contexts/TokenContext';
import { useRailgunProvider } from '@/hooks/useRailgunProvider';
import '@/styles/globals.css';
import { bscIcon } from '@/utils/constants';
import { initialize } from '@/utils/railgun';

Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TxForm } from '@/components/TxForm';
const Home: NextPage = () => {
return (
<Flex direction="column" align="center" justify="center" pt="2rem">
<Heading as="h1" size="4xl" mb="4rem">
<Heading as="h1" size="4xl" mb="2rem">
Shield
</Heading>
<TxForm />
Expand Down
11 changes: 11 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
body {
background-image: radial-gradient(circle at center, #decba488, #3e515188) !important;
}

.container {
background-color: #faf9f7dd;
border-radius: 1rem;
border: 1px solid #b8b2a7;
padding: 2rem;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

0 comments on commit 492c997

Please sign in to comment.