Merge branch 'JonasTestBranch' into main
This commit is contained in:
Generated
+17305
-17302
File diff suppressed because it is too large
Load Diff
@@ -34,5 +34,8 @@
|
|||||||
"last 1 firefox version",
|
"last 1 firefox version",
|
||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"tailwindcss": "^3.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+26
-38
@@ -1,38 +1,26 @@
|
|||||||
.App {
|
.round-border
|
||||||
text-align: center;
|
{
|
||||||
}
|
border-radius: 10px;
|
||||||
|
border-width: 0;
|
||||||
.App-logo {
|
}
|
||||||
height: 40vmin;
|
|
||||||
pointer-events: none;
|
.default-button
|
||||||
}
|
{
|
||||||
|
background-color: #0d52ce;
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
color: #ffffff;
|
||||||
.App-logo {
|
}
|
||||||
animation: App-logo-spin infinite 20s linear;
|
|
||||||
}
|
.font-small
|
||||||
}
|
{
|
||||||
|
font-size: 15px;
|
||||||
.App-header {
|
}
|
||||||
background-color: #282c34;
|
|
||||||
min-height: 100vh;
|
.font-middle
|
||||||
display: flex;
|
{
|
||||||
flex-direction: column;
|
font-size: 20px ;
|
||||||
align-items: center;
|
}
|
||||||
justify-content: center;
|
|
||||||
font-size: calc(10px + 2vmin);
|
.font-big
|
||||||
color: white;
|
{
|
||||||
}
|
font-size: 30px;
|
||||||
|
}
|
||||||
.App-link {
|
|
||||||
color: #61dafb;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes App-logo-spin {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+12
-25
@@ -1,25 +1,12 @@
|
|||||||
import logo from './logo.svg';
|
import './App.css';
|
||||||
import './App.css';
|
import Button from "./components/Button";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<header className="App-header">
|
<Button/>
|
||||||
<img src={logo} className="App-logo" alt="logo" />
|
</div>
|
||||||
<p>
|
);
|
||||||
Edit <code>src/App.js</code> and save to reload.
|
}
|
||||||
</p>
|
|
||||||
<a
|
export default App;
|
||||||
className="App-link"
|
|
||||||
href="https://reactjs.org"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
Learn React
|
|
||||||
</a>
|
|
||||||
</header>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App;
|
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import "../App.css"
|
||||||
|
|
||||||
|
export default function Button(p) {
|
||||||
|
|
||||||
|
let text = p.text;
|
||||||
|
let paddingY = p.paddingY, paddingX = p.paddingX;
|
||||||
|
let width = p.width, height = p.height;
|
||||||
|
let color = p.color;
|
||||||
|
|
||||||
|
if (paddingY == null) paddingY = 10;
|
||||||
|
if (paddingX == null) paddingX = 20;
|
||||||
|
if (height == null) height = 50;
|
||||||
|
if (width == null) width = 100;
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<button className={"default-button round-border font font-middle"}
|
||||||
|
style={{
|
||||||
|
paddingTop: paddingY,
|
||||||
|
paddingBottom: paddingY,
|
||||||
|
paddingLeft: paddingX,
|
||||||
|
paddingRight: paddingX,
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
color: color
|
||||||
|
}}>{text}</button>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user