From fa1c09c9c4853a12ad65210f23fd62029149e13c Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Wed, 28 Jun 2023 11:12:17 +1000 Subject: [PATCH] feat: main Added rainbow skeleton --- remix/app/components/Buttons/Attention.tsx | 32 ++++++++ remix/app/components/Buttons/Hamburger.tsx | 38 +++++++++ remix/app/components/Layout/Main.tsx | 11 +++ remix/app/components/Nav/Nav.tsx | 26 ++++++ remix/app/components/Nav/ReactiveNav.tsx | 69 ++++++++++++++++ remix/app/components/Nav/ReactiveRightNav.tsx | 82 +++++++++++++++++++ .../components/Skeleton/RainbowSkeleton.tsx | 47 +++++++++++ remix/app/components/rainbowText.tsx | 1 + remix/app/components/textAnimation1.tsx | 22 ++--- remix/app/root.tsx | 3 +- remix/package.json | 2 +- 11 files changed, 321 insertions(+), 12 deletions(-) create mode 100644 remix/app/components/Buttons/Attention.tsx create mode 100644 remix/app/components/Buttons/Hamburger.tsx create mode 100644 remix/app/components/Layout/Main.tsx create mode 100644 remix/app/components/Nav/Nav.tsx create mode 100644 remix/app/components/Nav/ReactiveNav.tsx create mode 100644 remix/app/components/Nav/ReactiveRightNav.tsx create mode 100644 remix/app/components/Skeleton/RainbowSkeleton.tsx diff --git a/remix/app/components/Buttons/Attention.tsx b/remix/app/components/Buttons/Attention.tsx new file mode 100644 index 0000000..9b19ace --- /dev/null +++ b/remix/app/components/Buttons/Attention.tsx @@ -0,0 +1,32 @@ +import React from 'react' +import { Flex } from '@chakra-ui/react' + +export const Attention = props => { + return ( + + + + ) +} diff --git a/remix/app/components/Buttons/Hamburger.tsx b/remix/app/components/Buttons/Hamburger.tsx new file mode 100644 index 0000000..c8a60ba --- /dev/null +++ b/remix/app/components/Buttons/Hamburger.tsx @@ -0,0 +1,38 @@ +import React from 'react' +import { Flex } from '@chakra-ui/react' + +export const Hamburger = props => { + const lineCount = [1, 2, 3] + + return ( + + {lineCount.map((line, idx) => { + return ( + + ) + })} + + ) +} diff --git a/remix/app/components/Layout/Main.tsx b/remix/app/components/Layout/Main.tsx new file mode 100644 index 0000000..b5eeed7 --- /dev/null +++ b/remix/app/components/Layout/Main.tsx @@ -0,0 +1,11 @@ +import { Flex } from '@chakra-ui/react' +import { Nav } from '../Nav/Nav' + +export const Main = props => { + return ( + +