From 1d087d79962e1a6a3b5714a95faa8a8bf075efca Mon Sep 17 00:00:00 2001 From: brausjonas Date: Thu, 27 Apr 2023 16:58:50 +0200 Subject: [PATCH] Button (Not ready) --- projekt/package-lock.json | 3 ++ projekt/package.json | 3 ++ projekt/src/App.css | 48 +++++++++---------------------- projekt/src/App.js | 24 ++++------------ projekt/src/components/Button.jsx | 15 ++++++++++ 5 files changed, 41 insertions(+), 52 deletions(-) create mode 100644 projekt/src/components/Button.jsx diff --git a/projekt/package-lock.json b/projekt/package-lock.json index d67c19f..ddf5e4d 100644 --- a/projekt/package-lock.json +++ b/projekt/package-lock.json @@ -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": { diff --git a/projekt/package.json b/projekt/package.json index e91aa77..31dc3cb 100644 --- a/projekt/package.json +++ b/projekt/package.json @@ -34,5 +34,8 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "tailwindcss": "^3.3.2" } } diff --git a/projekt/src/App.css b/projekt/src/App.css index 74b5e05..461f0df 100644 --- a/projekt/src/App.css +++ b/projekt/src/App.css @@ -1,38 +1,18 @@ -.App { - text-align: center; + + +.round-border-10 +{ + 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; - } -} - -.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); - } -} +.font-middle +{ + font-size: 20px ; +} \ No newline at end of file diff --git a/projekt/src/App.js b/projekt/src/App.js index 3784575..82a32f6 100644 --- a/projekt/src/App.js +++ b/projekt/src/App.js @@ -1,25 +1,13 @@ import logo from './logo.svg'; import './App.css'; +import Button from "./components/Button"; function App() { - return ( -
-
- logo -

- Edit src/App.js and save to reload. -

- - Learn React - -
-
- ); + return ( +
+
+ ); } export default App; diff --git a/projekt/src/components/Button.jsx b/projekt/src/components/Button.jsx new file mode 100644 index 0000000..aae7026 --- /dev/null +++ b/projekt/src/components/Button.jsx @@ -0,0 +1,15 @@ +import "../App.css" + +export default function Button(p) { + + + return ( + + ); +} \ No newline at end of file