From b2065b0003d3c54b47df0c209025ebde665492d8 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Thu, 12 May 2022 14:13:18 -0300 Subject: [PATCH] :truck: move pages and styles to src --- {pages => src/pages}/_app.tsx | 0 {pages => src/pages}/_document.tsx | 0 {pages => src/pages}/aboutUs.tsx | 0 {pages => src/pages}/accumulatedSavings.tsx | 0 {pages => src/pages}/api/hello.js | 0 {pages => src/pages}/areaTest.tsx | 0 {pages => src/pages}/consumption.tsx | 0 {pages => src/pages}/costIndicator.tsx | 0 {pages => src/pages}/dashboard.tsx | 10 +-- {pages => src/pages}/estimatedCost.tsx | 0 {pages => src/pages}/faq.tsx | 0 {pages => src/pages}/grossSavings.tsx | 0 {pages => src/pages}/index.tsx | 0 {pages => src/pages}/news.tsx | 0 {pages => src/pages}/resumoOperacao.tsx | 0 {pages => src/pages}/telemetria.tsx | 0 {styles => src/styles}/Home.module.css | 0 {styles => src/styles}/app/AppView.ts | 0 {styles => src/styles}/globals.ts | 0 .../ResumoOperacao/ResumoOperacaoView.ts | 0 .../layouts/Telemetria/TelemetriaView.ts | 0 .../styles}/layouts/aboutUs/AboutUsView.ts | 0 .../layouts/commonQuestions/FaqView.ts | 0 .../layouts/consumption/ConsumptionView.ts | 0 .../layouts/dashboard}/DashboardView.js | 0 .../AccumulatedSavingsView.ts | 0 .../costIndicator/CostIndicatorView.ts | 0 .../estimatedCost/EstimatedCostView.ts | 0 .../economy/grossSavings/GrossSavings.ts | 0 .../styles/layouts/login}/LoginView.ts | 0 .../styles}/layouts/news/NewsView.ts | 0 .../styles}/nprogress/nprogress.css | 0 styles/layouts/Dashboard/DashboardView.ts | 75 ------------------- 33 files changed, 5 insertions(+), 80 deletions(-) rename {pages => src/pages}/_app.tsx (100%) rename {pages => src/pages}/_document.tsx (100%) rename {pages => src/pages}/aboutUs.tsx (100%) rename {pages => src/pages}/accumulatedSavings.tsx (100%) rename {pages => src/pages}/api/hello.js (100%) rename {pages => src/pages}/areaTest.tsx (100%) rename {pages => src/pages}/consumption.tsx (100%) rename {pages => src/pages}/costIndicator.tsx (100%) rename {pages => src/pages}/dashboard.tsx (82%) rename {pages => src/pages}/estimatedCost.tsx (100%) rename {pages => src/pages}/faq.tsx (100%) rename {pages => src/pages}/grossSavings.tsx (100%) rename {pages => src/pages}/index.tsx (100%) rename {pages => src/pages}/news.tsx (100%) rename {pages => src/pages}/resumoOperacao.tsx (100%) rename {pages => src/pages}/telemetria.tsx (100%) rename {styles => src/styles}/Home.module.css (100%) rename {styles => src/styles}/app/AppView.ts (100%) rename {styles => src/styles}/globals.ts (100%) rename {styles => src/styles}/layouts/ResumoOperacao/ResumoOperacaoView.ts (100%) rename {styles => src/styles}/layouts/Telemetria/TelemetriaView.ts (100%) rename {styles => src/styles}/layouts/aboutUs/AboutUsView.ts (100%) rename {styles => src/styles}/layouts/commonQuestions/FaqView.ts (100%) rename {styles => src/styles}/layouts/consumption/ConsumptionView.ts (100%) rename {styles/layouts/Dashboard => src/styles/layouts/dashboard}/DashboardView.js (100%) rename {styles => src/styles}/layouts/economy/accumulatedSavings/AccumulatedSavingsView.ts (100%) rename {styles => src/styles}/layouts/economy/costIndicator/CostIndicatorView.ts (100%) rename {styles => src/styles}/layouts/economy/estimatedCost/EstimatedCostView.ts (100%) rename {styles => src/styles}/layouts/economy/grossSavings/GrossSavings.ts (100%) rename {styles/layouts/Login => src/styles/layouts/login}/LoginView.ts (100%) rename {styles => src/styles}/layouts/news/NewsView.ts (100%) rename {styles => src/styles}/nprogress/nprogress.css (100%) delete mode 100644 styles/layouts/Dashboard/DashboardView.ts diff --git a/pages/_app.tsx b/src/pages/_app.tsx similarity index 100% rename from pages/_app.tsx rename to src/pages/_app.tsx diff --git a/pages/_document.tsx b/src/pages/_document.tsx similarity index 100% rename from pages/_document.tsx rename to src/pages/_document.tsx diff --git a/pages/aboutUs.tsx b/src/pages/aboutUs.tsx similarity index 100% rename from pages/aboutUs.tsx rename to src/pages/aboutUs.tsx diff --git a/pages/accumulatedSavings.tsx b/src/pages/accumulatedSavings.tsx similarity index 100% rename from pages/accumulatedSavings.tsx rename to src/pages/accumulatedSavings.tsx diff --git a/pages/api/hello.js b/src/pages/api/hello.js similarity index 100% rename from pages/api/hello.js rename to src/pages/api/hello.js diff --git a/pages/areaTest.tsx b/src/pages/areaTest.tsx similarity index 100% rename from pages/areaTest.tsx rename to src/pages/areaTest.tsx diff --git a/pages/consumption.tsx b/src/pages/consumption.tsx similarity index 100% rename from pages/consumption.tsx rename to src/pages/consumption.tsx diff --git a/pages/costIndicator.tsx b/src/pages/costIndicator.tsx similarity index 100% rename from pages/costIndicator.tsx rename to src/pages/costIndicator.tsx diff --git a/pages/dashboard.tsx b/src/pages/dashboard.tsx similarity index 82% rename from pages/dashboard.tsx rename to src/pages/dashboard.tsx index 17883fe..483be0d 100644 --- a/pages/dashboard.tsx +++ b/src/pages/dashboard.tsx @@ -1,11 +1,11 @@ import React from 'react' -import { DashboardView } from '../styles/layouts/dashboard/DashboardView.js' +import { DashboardView } from '../styles/layouts/dashboard/DashboardView' -import MapCard from '../src/components/mapCard/MapCard' -import GraphCard from '../src/components/graph/graphCard/ChartCard' -import Header from '../src/components/header/Header' -import PageTitle from '../src/components/pageTitle/PageTitle' +import MapCard from '../components/mapCard/MapCard' +import GraphCard from '../components/graph/graphCard/ChartCard' +import Header from '../components/header/Header' +import PageTitle from '../components/pageTitle/PageTitle' export default function Dashboard() { return ( diff --git a/pages/estimatedCost.tsx b/src/pages/estimatedCost.tsx similarity index 100% rename from pages/estimatedCost.tsx rename to src/pages/estimatedCost.tsx diff --git a/pages/faq.tsx b/src/pages/faq.tsx similarity index 100% rename from pages/faq.tsx rename to src/pages/faq.tsx diff --git a/pages/grossSavings.tsx b/src/pages/grossSavings.tsx similarity index 100% rename from pages/grossSavings.tsx rename to src/pages/grossSavings.tsx diff --git a/pages/index.tsx b/src/pages/index.tsx similarity index 100% rename from pages/index.tsx rename to src/pages/index.tsx diff --git a/pages/news.tsx b/src/pages/news.tsx similarity index 100% rename from pages/news.tsx rename to src/pages/news.tsx diff --git a/pages/resumoOperacao.tsx b/src/pages/resumoOperacao.tsx similarity index 100% rename from pages/resumoOperacao.tsx rename to src/pages/resumoOperacao.tsx diff --git a/pages/telemetria.tsx b/src/pages/telemetria.tsx similarity index 100% rename from pages/telemetria.tsx rename to src/pages/telemetria.tsx diff --git a/styles/Home.module.css b/src/styles/Home.module.css similarity index 100% rename from styles/Home.module.css rename to src/styles/Home.module.css diff --git a/styles/app/AppView.ts b/src/styles/app/AppView.ts similarity index 100% rename from styles/app/AppView.ts rename to src/styles/app/AppView.ts diff --git a/styles/globals.ts b/src/styles/globals.ts similarity index 100% rename from styles/globals.ts rename to src/styles/globals.ts diff --git a/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts b/src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts similarity index 100% rename from styles/layouts/ResumoOperacao/ResumoOperacaoView.ts rename to src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts diff --git a/styles/layouts/Telemetria/TelemetriaView.ts b/src/styles/layouts/Telemetria/TelemetriaView.ts similarity index 100% rename from styles/layouts/Telemetria/TelemetriaView.ts rename to src/styles/layouts/Telemetria/TelemetriaView.ts diff --git a/styles/layouts/aboutUs/AboutUsView.ts b/src/styles/layouts/aboutUs/AboutUsView.ts similarity index 100% rename from styles/layouts/aboutUs/AboutUsView.ts rename to src/styles/layouts/aboutUs/AboutUsView.ts diff --git a/styles/layouts/commonQuestions/FaqView.ts b/src/styles/layouts/commonQuestions/FaqView.ts similarity index 100% rename from styles/layouts/commonQuestions/FaqView.ts rename to src/styles/layouts/commonQuestions/FaqView.ts diff --git a/styles/layouts/consumption/ConsumptionView.ts b/src/styles/layouts/consumption/ConsumptionView.ts similarity index 100% rename from styles/layouts/consumption/ConsumptionView.ts rename to src/styles/layouts/consumption/ConsumptionView.ts diff --git a/styles/layouts/Dashboard/DashboardView.js b/src/styles/layouts/dashboard/DashboardView.js similarity index 100% rename from styles/layouts/Dashboard/DashboardView.js rename to src/styles/layouts/dashboard/DashboardView.js diff --git a/styles/layouts/economy/accumulatedSavings/AccumulatedSavingsView.ts b/src/styles/layouts/economy/accumulatedSavings/AccumulatedSavingsView.ts similarity index 100% rename from styles/layouts/economy/accumulatedSavings/AccumulatedSavingsView.ts rename to src/styles/layouts/economy/accumulatedSavings/AccumulatedSavingsView.ts diff --git a/styles/layouts/economy/costIndicator/CostIndicatorView.ts b/src/styles/layouts/economy/costIndicator/CostIndicatorView.ts similarity index 100% rename from styles/layouts/economy/costIndicator/CostIndicatorView.ts rename to src/styles/layouts/economy/costIndicator/CostIndicatorView.ts diff --git a/styles/layouts/economy/estimatedCost/EstimatedCostView.ts b/src/styles/layouts/economy/estimatedCost/EstimatedCostView.ts similarity index 100% rename from styles/layouts/economy/estimatedCost/EstimatedCostView.ts rename to src/styles/layouts/economy/estimatedCost/EstimatedCostView.ts diff --git a/styles/layouts/economy/grossSavings/GrossSavings.ts b/src/styles/layouts/economy/grossSavings/GrossSavings.ts similarity index 100% rename from styles/layouts/economy/grossSavings/GrossSavings.ts rename to src/styles/layouts/economy/grossSavings/GrossSavings.ts diff --git a/styles/layouts/Login/LoginView.ts b/src/styles/layouts/login/LoginView.ts similarity index 100% rename from styles/layouts/Login/LoginView.ts rename to src/styles/layouts/login/LoginView.ts diff --git a/styles/layouts/news/NewsView.ts b/src/styles/layouts/news/NewsView.ts similarity index 100% rename from styles/layouts/news/NewsView.ts rename to src/styles/layouts/news/NewsView.ts diff --git a/styles/nprogress/nprogress.css b/src/styles/nprogress/nprogress.css similarity index 100% rename from styles/nprogress/nprogress.css rename to src/styles/nprogress/nprogress.css diff --git a/styles/layouts/Dashboard/DashboardView.ts b/styles/layouts/Dashboard/DashboardView.ts deleted file mode 100644 index 563c0ed..0000000 --- a/styles/layouts/Dashboard/DashboardView.ts +++ /dev/null @@ -1,75 +0,0 @@ -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%; - } - } -`