From 05d3dcbb3eb732c5e4bcc20ba65bc74f2335a357 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sun, 17 Apr 2022 16:01:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Style=20product=20grid,=20rm=20i?= =?UTF-8?q?mages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ♻ Move Wireframe to own component --- frontend/src/App.module.css | 39 ----------- frontend/src/App.tsx | 7 +- .../src/components/ProductCard.module.css | 66 ++++++++----------- frontend/src/components/ProductCard.tsx | 10 +-- frontend/src/components/Wireframe.module.css | 38 +++++++++++ frontend/src/components/Wireframe.tsx | 11 ++++ .../src/features/register/Register.module.css | 5 +- 7 files changed, 85 insertions(+), 91 deletions(-) create mode 100644 frontend/src/components/Wireframe.module.css create mode 100644 frontend/src/components/Wireframe.tsx diff --git a/frontend/src/App.module.css b/frontend/src/App.module.css index 491b2ad..ff1e3ea 100644 --- a/frontend/src/App.module.css +++ b/frontend/src/App.module.css @@ -2,42 +2,3 @@ margin: 1rem auto; max-width: 1220px; } - -.wireframe { - position: absolute; - bottom: calc(22% - 512px); - left: calc(50% - 512px); - width: 1024px; - height: 1024px; - display: grid; - grid-template-columns: repeat(8, 128px); - animation-iteration-count: infinite; - animation-name: isometric-rotate; - animation-duration: 10s; - animation-timing-function: linear; - pointer-events: none; - z-index: -1; -} - -.cell { - border-bottom: 2px solid var(--sun); - border-right: 2px solid var(--sun); - -} - -.cell:nth-child(8n) { - border-right: none; -} - -.cell:nth-child(n+57) { - border-bottom: none; -} - -@keyframes isometric-rotate { - 0% { - transform: rotateX(70deg) rotateY(0deg) rotateZ(-45deg); - } - 100% { - transform: rotateX(70deg) rotateY(0deg) rotateZ(-405deg); - } -} \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8d4624b..faa680a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -10,6 +10,7 @@ import { Header } from "./components/Header"; import { Splash as Splash } from "./components/Splash"; import { Toast } from "./components/Toast"; import { ToastProvider } from "./components/ToastProvider"; +import { Wireframe } from "./components/Wireframe"; const App = (): JSX.Element => ( @@ -18,11 +19,7 @@ const App = (): JSX.Element => (
-
- {[...Array(64)].map((_, idx) => ( -
- ))} -
+