This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, | |
*::before, | |
*::after { | |
margin: 0; | |
padding: 0; | |
box-sizing: inherit; | |
} | |
html { | |
font-size: 62.5%; /* equivalent to 10px; 1rem = 10px; 10px/16px */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const breakpoints = { | |
highResDesktop: '(min-width: 1281px)', | |
desktop: '(min-width: 1025px) and (max-width: 1280px)', | |
tabletLandscape: '(min-width: 961px) and (max-width: 1024px)', | |
tabletPortrait: '(min-width: 641px) and (max-width: 960px)', | |
phone: '(min-width: 320px) and (max-width: 640px)', | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components'; | |
export const Container = styled.div` | |
display: grid; | |
grid-template-columns: 24rem 1fr; | |
grid-template-rows: 5rem 1fr 5rem; | |
grid-template-areas: | |
'sidebar header' | |
'sidebar main' | |
'sidebar footer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Suspense, useEffect } from 'react'; | |
// routing | |
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; | |
import PrivateRoute from 'routing/private-route.routing'; | |
// global styles | |
import { GlobalStyles } from 'utilities/styles/global.styles'; | |
// redux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
// styled components | |
import { | |
} from './items.styles'; | |
// components | |
import { DashboardContainer } from 'components/dashboard-container/dashboard-container.component'; | |
import { Table } from 'components/table/table.component'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
// import the global styles | |
import { GlobalStyles } from 'utilities/styles/global.styles'; | |
function App() { | |
return ( | |
<> | |
<GlobalStyles /> | |
Hello carrots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
// router | |
import { BrowserRouter as Router, Switch } from "react-router-dom"; | |
// routes | |
import AuthRoute from "routes/AuthRoute"; | |
// pages | |
import Login from "pages/auth/Login"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//App.js | |
import React from "react"; | |
import { BrowserRouter, Route, Switch } from "react-router-dom"; | |
import "./assets/main.css"; | |
import Home from "./pages/Home"; | |
import ThemeContext from "./utilities/ThemeContext"; | |
function App() { | |
return ( | |
<ThemeContext> | |
<BrowserRouter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// keyframes mixin | |
@mixin keyframes($name) { | |
@-webkit-keyframes #{$name} { | |
@content; | |
} | |
@-moz-keyframes #{$name} { | |
@content; | |
} | |
@-ms-keyframes #{$name} { | |
@content; |
OlderNewer