diff --git a/.gitignore b/.gitignore index cb1f55c..924e95c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ yarn-debug.log* yarn-error.log* # local env files +.env .env.local .env.development.local .env.test.local diff --git a/public/icons/discord.svg b/public/icons/discord.svg index 46d5665..5b98cf4 100644 --- a/public/icons/discord.svg +++ b/public/icons/discord.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/public/icons/github.svg b/public/icons/github.svg index eed2a94..c1d56f4 100644 --- a/public/icons/github.svg +++ b/public/icons/github.svg @@ -1,10 +1,3 @@ - - - - - - - - - + + diff --git a/public/icons/twitter.svg b/public/icons/twitter.svg index d7e5172..5f78b2e 100644 --- a/public/icons/twitter.svg +++ b/public/icons/twitter.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/src/components/DAOStructures/index.tsx b/src/components/DAOStructures/index.tsx index 9efb57b..574a3c2 100644 --- a/src/components/DAOStructures/index.tsx +++ b/src/components/DAOStructures/index.tsx @@ -33,7 +33,7 @@ export default function DAOStructures(props: Props) { className={clsxm( 'flex-col', 'flex', - 'gap-x-4', + 'gap-x-2', 'gap-y-4', 'items-start', '1_5xl:flex-wrap', diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index b47bb62..a3ae23c 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -41,7 +41,10 @@ export default function Footer(props: Props) { 'sm:-translate-y-1/2' )} > - +
© 2022 Realms
{/** diff --git a/src/components/Introduction.tsx b/src/components/Introduction.tsx index 6cec4cc..b0c2f45 100644 --- a/src/components/Introduction.tsx +++ b/src/components/Introduction.tsx @@ -1,5 +1,6 @@ import Image from 'next/image'; import Link from 'next/link'; +import { useMediaQuery } from 'react-responsive'; import trackClick from '@/lib/trackClick'; @@ -10,12 +11,17 @@ import Icon from '@/components/Icon'; import Text from '@/components/Text'; export default function Introduction() { + const isNarrow = useMediaQuery({ query: `(max-width: 834px)` }); + const imgClass = isNarrow + ? 'absolute -top-[295px] left-1/2 -z-10 h-[844px] w-[1800px] -translate-x-[640px]' + : 'absolute -top-[275px] left-1/2 -z-10 h-[844px] w-[1800px] -translate-x-[1072px]'; + return ( // The page gets sized by the overflowing hero image. To keep the page // width from being affected by the hero, we need to add an // 'overflow-hidden' to the container div
-
+
-
+
+
hero image
diff --git a/src/components/Metrics/index.tsx b/src/components/Metrics/index.tsx index 18a7b7f..bbd3582 100644 --- a/src/components/Metrics/index.tsx +++ b/src/components/Metrics/index.tsx @@ -7,7 +7,7 @@ import GrowingValue from '@/components/Metrics/GrowingValue'; export default function Metrics() { return ( -
+