added quote-box component

This commit is contained in:
Yusuf İpek
2021-01-24 15:58:44 +03:00
parent 3fac5df440
commit 3c9c75f668
9 changed files with 35 additions and 56 deletions
-37
View File
@@ -1,38 +1 @@
.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 {
background-color: #282c34;
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);
}
}
+3 -16
View File
@@ -1,23 +1,10 @@
import logo from './logo.svg';
import './App.css';
import "./App.css";
import QuoteBox from "./components/quote-box/quote-box";
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<QuoteBox id="quote" />
</div>
);
}
@@ -0,0 +1,14 @@
.wrapper {
display: flex;
justify-content: center;
#quote-box {
color: white;
width: 550px;
height: 350px;
background-color: black;
border: 1px solid grey;
border-radius: 5px;
padding: 10px;
}
}
+15
View File
@@ -0,0 +1,15 @@
import "./quote-box-styles.scss";
const QuoteBox = () => {
return (
<div className="wrapper">
<div id="quote-box">
<h3 id="text">Deneme</h3>
<p id="author">Deneme</p>
{/* new quote button */}
</div>
</div>
);
};
export default QuoteBox;