mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-21 05:18:32 -06:00
Updating packages and using scss.
This commit is contained in:
@ -1,29 +0,0 @@
|
||||
.App
|
||||
text-align: center
|
||||
|
||||
.App-logo
|
||||
height: 40vmin
|
||||
pointer-events: none
|
||||
|
||||
@media (prefers-reduced-motion: no-preference)
|
||||
.App-logo
|
||||
animation: App-logo-spin infinite 20s linear
|
||||
|
||||
.App-header
|
||||
min-height: 100vh
|
||||
display: flex
|
||||
flex-direction: column
|
||||
align-items: center
|
||||
justify-content: center
|
||||
font-size: calc(10px + 2vmin)
|
||||
color: white
|
||||
|
||||
.App-link
|
||||
color: #61dafb
|
||||
|
||||
@keyframes App-logo-spin
|
||||
from
|
||||
transform: rotate(0deg)
|
||||
|
||||
to
|
||||
transform: rotate(360deg)
|
38
src/frontend/components/InitialComponent.scss
Normal file
38
src/frontend/components/InitialComponent.scss
Normal file
@ -0,0 +1,38 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.App-header {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import logo from '../logo.svg';
|
||||
import './InitialComponent.sass';
|
||||
import './InitialComponent.scss';
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
const InitialComponent = () => (
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import logo from '../logo.svg';
|
||||
import './InitialComponent.sass';
|
||||
import './InitialComponent.scss';
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
const OtherComponent = () => (
|
||||
|
@ -8,7 +8,7 @@ import { IInitialState } from './reducers/index';
|
||||
import setStore from './setStore';
|
||||
import config from '../../config';
|
||||
|
||||
import './styles/global.sass';
|
||||
import './styles/global.scss';
|
||||
import App from './components/App';
|
||||
import serviceWorkerRegistration from '../../serviceWorkerRegistration';
|
||||
|
||||
|
@ -1,4 +0,0 @@
|
||||
$base-color: #282c34
|
||||
|
||||
body
|
||||
background-color: $base-color
|
5
src/frontend/styles/global.scss
Normal file
5
src/frontend/styles/global.scss
Normal file
@ -0,0 +1,5 @@
|
||||
$base-color: #282c34;
|
||||
|
||||
body {
|
||||
background-color: $base-color;
|
||||
}
|
Reference in New Issue
Block a user