Hinzufügen des Styles, verschieben und löschen der alten CSS Dateien. Umschalten auf Modulares Design

This commit is contained in:
Nirodan
2025-07-07 10:23:29 +02:00
parent c6f4522d2c
commit 537df29737
8 changed files with 80 additions and 42 deletions
-42
View File
@@ -1,42 +0,0 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}
+4
View File
@@ -4,6 +4,10 @@ import LoginForm from './components/LoginForm';
//import RegisterForm from './components/RegisterForm'; //import RegisterForm from './components/RegisterForm';
import Md5Tool from './components/Md5Tool'; import Md5Tool from './components/Md5Tool';
import ToolOverview from './components/ToolOverview'; import ToolOverview from './components/ToolOverview';
import './css/base.css';
import './css/buttons.css';
import './css/menu.css';
function App() { function App() {
const isLoggedIn = localStorage.getItem('token') !== null; const isLoggedIn = localStorage.getItem('token') !== null;
+28
View File
@@ -0,0 +1,28 @@
/* base.css */
:root {
--bg-color: #121212;
--fg-color: #ffffff;
--accent-color: #4ea9ff;
--font-family: 'Segoe UI', sans-serif;
--button-bg: #3f51b5;
--button-hover: #5c6bc0;
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-family: var(--font-family);
margin: 0;
padding: 0;
}
a {
color: var(--accent-color);
text-decoration: none;
}
.container {
max-width: 1200px;
margin: auto;
padding: 2rem;
}
+14
View File
@@ -0,0 +1,14 @@
/* buttons.css */
button {
background-color: var(--button-bg);
color: white;
border: none;
padding: 0.8rem 1.2rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: var(--button-hover);
}
+9
View File
@@ -0,0 +1,9 @@
.dark {
--bg-color: #121212;
--text-color: #e0e0e0;
}
body.dark {
background-color: var(--bg-color);
color: var(--text-color);
}
+9
View File
@@ -0,0 +1,9 @@
.light {
--bg-color: #ffffff;
--text-color: #222222;
}
body.light {
background-color: var(--bg-color);
color: var(--text-color);
}
+16
View File
@@ -0,0 +1,16 @@
/* menu.css */
.navbar {
background-color: #1e1e2f;
color: white;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar a {
color: white;
margin-left: 1rem;
font-weight: bold;
}