From 008e701a64a3fbb17b21a6021cc996d8cfd10edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Corte?= Date: Thu, 5 May 2022 11:45:14 -0300 Subject: [PATCH 1/2] :sparkles: dashboard --- pages/_document.tsx | 5 +- pages/dashboard.tsx | 124 ++++++++++++++ pages/index.tsx | 6 +- public/copel.svg | 9 + public/graphLineIcon.svg | 10 ++ public/mapSample.svg | 9 + public/moneyIcon.svg | 4 + styles/layouts/Dashboard/DashboardView.ts | 198 ++++++++++++++++++++++ 8 files changed, 359 insertions(+), 6 deletions(-) create mode 100644 pages/dashboard.tsx create mode 100644 public/copel.svg create mode 100644 public/graphLineIcon.svg create mode 100644 public/mapSample.svg create mode 100644 public/moneyIcon.svg create mode 100644 styles/layouts/Dashboard/DashboardView.ts diff --git a/pages/_document.tsx b/pages/_document.tsx index afe7522..a05c9c1 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -35,8 +35,11 @@ export default class MyDocument extends Document { - + + + +
diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx new file mode 100644 index 0000000..4e00424 --- /dev/null +++ b/pages/dashboard.tsx @@ -0,0 +1,124 @@ +import React from 'react' +import Image from 'next/image' +import Link from 'next/link' + +import { DashboardView } from '../styles/layouts/Dashboard/DashboardView' + +export default function Dashboard() { + return ( +
+
+ +
+ +
+ +
+
+
+
+
+

Visão Geral

+ Bem Vindo a Smart Energia +
+
+ +
+

R$/MWh

+ abril / 22 +
+
+
+ +
+

SE/CO

+ Sudeste +
+ +

R$ 273,54

+
+
+
+
+ +
+

SE/CO

+ Sudeste +
+ +

R$ 273,54

+
+
+
+
+ +
+

SE/CO

+ Sudeste +
+ +

R$ 273,54

+
+
+
+
+ +
+

SE/CO

+ Sudeste +
+ +

R$ 273,54

+
+
+
+
+ +
+
+
+

Consumo

+ Gráfico de Consumo + <> +
+ +
+
+ +
+
+

Indicador de custo

+ Valores em R$/ MWh + <> +
+
+
+ +
+
+

Consumo

+ Gráfico de Consumo + <> +
+
+
+
+
+
+ ) +} diff --git a/pages/index.tsx b/pages/index.tsx index 7d2c3ab..9ecc665 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,13 +1,9 @@ import React from 'react' -import Head from 'next/head' -import Image from 'next/image' -import styles from '../styles/Home.module.css' - export default function Home() { return (
-

Index.js

+

Index.ts

) } diff --git a/public/copel.svg b/public/copel.svg new file mode 100644 index 0000000..d95856e --- /dev/null +++ b/public/copel.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/public/graphLineIcon.svg b/public/graphLineIcon.svg new file mode 100644 index 0000000..25ecb93 --- /dev/null +++ b/public/graphLineIcon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/public/mapSample.svg b/public/mapSample.svg new file mode 100644 index 0000000..804924b --- /dev/null +++ b/public/mapSample.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/public/moneyIcon.svg b/public/moneyIcon.svg new file mode 100644 index 0000000..6ffff61 --- /dev/null +++ b/public/moneyIcon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/styles/layouts/Dashboard/DashboardView.ts b/styles/layouts/Dashboard/DashboardView.ts new file mode 100644 index 0000000..0a251bf --- /dev/null +++ b/styles/layouts/Dashboard/DashboardView.ts @@ -0,0 +1,198 @@ +import styled from 'styled-components' + +export const DashboardView = styled.main` + * { + margin: 0; + } + display: flex; + justify-content: center; + align-items: flex-start; + flex-direction: column; + + margin: 60px; + + span { + font-family: 'Poppins'; + font-style: normal; + font-weight: 500; + font-size: 16px; + line-height: 24px; + } + + h4 { + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + font-size: 21px; + line-height: 32px; + } + + h1 { + font-family: 'Poppins'; + font-style: normal; + font-weight: 600; + font-size: 28px; + line-height: 42px; + } + + p { + font-family: 'Poppins'; + font-style: normal; + font-weight: 400; + font-size: 16px; + line-height: 24px; + } + + .graph { + width: 42rem; + height: 310px; + + background-color: grey + } + + .graphBig { + width: 90rem; + height: 310px; + + background-color: grey + } + + .cardSection { + 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; + + span { + margin-bottom: 25px; + } + + figure { + display: flex; + justify-content: center; + align-items: center; + + flex-direction: row; + + margin-right: 25px; + + + + :first-child { + margin-right: 95px; + } + + div { + display: flex; + justify-content: center; + align-items: center; + + flex-direction: column; + + figure { + margin: 0; + align-items: flex-start; + } + } + } + } + + .dashboard { + display: flex; + justify-content: space-between; + + flex-wrap: wrap; + + article { + display: flex; + align-items: flex-start; + justify-content: space-between; + + flex-direction: column; + + max-width: 120rem; + min-width: fit-content; + + min-height: 30rem; + + margin-bottom: 30px; + + padding: 30px; + + /* border: solid black 1px; */ + box-shadow: 0px 0px 15px -3px rgba(0,0,0,0.1); + border-radius: 10px; + } + + .asideConsumo { + display: flex; + justify-content: space-between; + align-items: center; + + flex-direction: row; + + width: 32rem; + height: 4rem; + + margin: 30px 0 30px 0; + + border-radius: 12px; + + padding: 0 12px 0 12px; + + background-color: #E9FFEF; + + a { + font-family: 'Poppins'; + font-style: normal; + font-weight: 500; + font-size: 16px; + line-height: 24px; + /* identical to box height */ + + + color: #2F4CDD; + } + + .asideConsumoContent { + display: flex; + align-items: center; + justify-content: space-between; + + width: 40%; + + .count { + display: flex; + align-items: center; + justify-content: center; + + width: 87px; + height: 44px; + + border-radius: 12px; + + background-color: #2BC155; + color: white; + } + } + } + .statusDot { + max-width: 11px; + max-height: 11px; + min-width: 11px; + min-height: 11px; + + border-radius: 100%; + + background-color: #2BC155; + } + } +` From c8423628b2cdfb6f2920141b4d5c7dd6db9cd9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Corte?= Date: Thu, 5 May 2022 11:48:58 -0300 Subject: [PATCH 2/2] :bug: bugfix --- src/assets/txt.txt | 0 src/components/txt.txt | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/assets/txt.txt create mode 100644 src/components/txt.txt diff --git a/src/assets/txt.txt b/src/assets/txt.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/components/txt.txt b/src/components/txt.txt new file mode 100644 index 0000000..e69de29