Merge branch 'JonasTestBranch' into main

This commit is contained in:
brausjonas
2023-04-27 18:59:13 +02:00
5 changed files with 17374 additions and 17365 deletions
+3
View File
@@ -15,6 +15,9 @@
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"tailwindcss": "^3.3.2"
}
},
"node_modules/@adobe/css-tools": {
+3
View File
@@ -34,5 +34,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"tailwindcss": "^3.3.2"
}
}
+17 -29
View File
@@ -1,38 +1,26 @@
.App {
text-align: center;
.round-border
{
border-radius: 10px;
border-width: 0;
}
.App-logo {
height: 40vmin;
pointer-events: none;
.default-button
{
background-color: #0d52ce;
color: #ffffff;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
.font-small
{
font-size: 15px;
}
.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;
.font-middle
{
font-size: 20px ;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.font-big
{
font-size: 30px;
}
+6 -19
View File
@@ -1,25 +1,12 @@
import logo from './logo.svg';
import './App.css';
import Button from "./components/Button";
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>
</div>
);
return (
<div className="App">
<Button/>
</div>
);
}
export default App;
+28
View File
@@ -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>
);
}