Skip to content

Commit

Permalink
fix(template-css): add tailwind usage (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored Apr 2, 2022
1 parent 68c8477 commit 4fe280d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 49 deletions.
22 changes: 11 additions & 11 deletions packages/cra-template-bod/src/App.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
.app-logo {
height: 40vmin;
pointer-events: none;
}

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

.app-header {
@apply flex flex-col items-center justify-center;

Expand All @@ -20,6 +9,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
1 change: 0 additions & 1 deletion packages/cra-template-bod/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Route, Routes } from 'react-router-dom';
import './App.css';
import { Counter } from './containers';
Expand Down
28 changes: 11 additions & 17 deletions packages/cra-template-typescript/template/src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
.app {
text-align: center;
.app-header {
@apply flex flex-col items-center justify-center;

min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
background-color: #282c34;
}

.app-link {
color: #61dafb;
}

.app-logo {
Expand All @@ -13,21 +22,6 @@
}
}

.app-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
background-color: #282c34;
}

.app-link {
color: #61dafb;
}

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

function App() {
return (
<div className="app">
<div className="text-center">
<header className="app-header">
<Logo className="app-logo" title="logo" />
<p>
Expand Down
28 changes: 11 additions & 17 deletions packages/cra-template/template/src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
.app {
text-align: center;
.app-header {
@apply flex flex-col items-center justify-center;

min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
background-color: #282c34;
}

.app-link {
color: #61dafb;
}

.app-logo {
Expand All @@ -13,21 +22,6 @@
}
}

.app-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
font-size: calc(10px + 2vmin);
color: white;
background-color: #282c34;
}

.app-link {
color: #61dafb;
}

@keyframes app-logo-spin {
from {
transform: rotate(0deg);
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template/template/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './App.css';

function App() {
return (
<div className="app">
<div className="text-center">
<header className="app-header">
<Logo className="app-logo" title="logo" />
<p>
Expand Down

0 comments on commit 4fe280d

Please sign in to comment.