From 0a1365815ece8e784d4f01c5d971a4f30c337826 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Thu, 12 May 2022 14:04:18 -0300 Subject: [PATCH] add .js to styled files --- pages/dashboard.tsx | 2 +- styles/layouts/Dashboard/DashboardView.js | 75 +++++++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 styles/layouts/Dashboard/DashboardView.js diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx index 4db6516..17883fe 100644 --- a/pages/dashboard.tsx +++ b/pages/dashboard.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { DashboardView } from '../styles/layouts/dashboard/DashboardView' +import { DashboardView } from '../styles/layouts/dashboard/DashboardView.js' import MapCard from '../src/components/mapCard/MapCard' import GraphCard from '../src/components/graph/graphCard/ChartCard' diff --git a/styles/layouts/Dashboard/DashboardView.js b/styles/layouts/Dashboard/DashboardView.js new file mode 100644 index 0000000..563c0ed --- /dev/null +++ b/styles/layouts/Dashboard/DashboardView.js @@ -0,0 +1,75 @@ +import styled from 'styled-components' + +export const DashboardView = styled.main` + display: flex; + justify-content: center; + align-items: flex-start; + + flex-wrap: wrap; + + flex-direction: column; + + width: 100%; + + .cardsSection { + display: flex; + justify-content: space-evenly; + align-items: center; + + flex-wrap: wrap; + + box-shadow: 0px 0px 15px -3px rgba(0,0,0,0.1); + border-radius: 10px; + + width: 100%; + height: fit-content; + + margin: 2rem 0 2rem 0; + } + + .dashboard { + display: grid; + + grid-template-columns: 50% 50% 100%; + grid-template-rows: 50% 50%; + + gap: 30px; + + width: 99%; + + padding-right: 20px; + + .footerGraph { + grid-row-start: 2; + + grid-column-start: 1; + grid-column-end: 3; + } + } + + @media (max-width: 1195px) { + /* align-items: center; */ + width: 100%; + padding: 30px; + margin: 0; + + .dashboard { + display: flex; + + padding: 0; + margin: 0; + + justify-content: center; + align-items: center; + + flex-wrap: wrap; + + grid-template-columns: 50% 50%; + + grid-auto-rows: 1; + grid-auto-columns: 1; + + width: 100%; + } + } +`