Skip to content

Commit

Permalink
fix(template-css): add tailwind usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Apr 2, 2022
1 parent 68c8477 commit 018cf55
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 45 deletions.
22 changes: 13 additions & 9 deletions packages/cra-template-bod/src/App.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
.app-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.app-logo {
animation: app-logo-spin infinite 20s linear;
}
.app {
@apply text-center bg-white;
}

.app-header {
Expand All @@ -20,6 +13,17 @@
color: rgb(112 76 182);
}

.app-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.app-logo {
animation: app-logo-spin infinite 20s linear;
}
}

@keyframes app-logo-spin {
from {
transform: rotate(0deg);
Expand Down
3 changes: 1 addition & 2 deletions packages/cra-template-bod/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React from 'react';
import { Route, Routes } from 'react-router-dom';
import './App.css';
import { Counter } from './containers';
import Logo from './logo.svg';

const App = (): JSX.Element => {
return (
<div className="text-center bg-white">
<div className="app">
<header className="app-header">
<Logo className="app-logo" title="logo" />
<Routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`App should render correctly (snapshot) 1`] = `
<div
className="text-center bg-white"
className="app"
>
<header
className="app-header"
Expand Down
30 changes: 14 additions & 16 deletions packages/cra-template-typescript/template/src/App.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
.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;
}
@apply text-center;
}

.app-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
@apply flex flex-col items-center justify-center;

min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
Expand All @@ -28,6 +15,17 @@
color: #61dafb;
}

.app-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.app-logo {
animation: app-logo-spin infinite 20s linear;
}
}

@keyframes app-logo-spin {
from {
transform: rotate(0deg);
Expand Down
1 change: 0 additions & 1 deletion packages/cra-template-typescript/template/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Logo from './logo.svg';
import './App.css';

Expand Down
30 changes: 14 additions & 16 deletions packages/cra-template/template/src/App.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
.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;
}
@apply text-center;
}

.app-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
@apply flex flex-col items-center justify-center;

min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
Expand All @@ -28,6 +15,17 @@
color: #61dafb;
}

.app-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.app-logo {
animation: app-logo-spin infinite 20s linear;
}
}

@keyframes app-logo-spin {
from {
transform: rotate(0deg);
Expand Down

0 comments on commit 018cf55

Please sign in to comment.