change welcome.html
This commit is contained in:
parent
82ab74641b
commit
003c621efc
@ -82,3 +82,69 @@ button:hover {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Für die welcome.html Seite */
|
||||
|
||||
/* Grundlayout für den gesamten Body */
|
||||
|
||||
/* Header Layout */
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 20px;
|
||||
background-color: #ffffff;
|
||||
border-bottom: 2px solid #ddd;
|
||||
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Linksbündiger Willkommenstext */
|
||||
.header-welcome {
|
||||
font-size: 1.5rem;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
flex-grow: 1;
|
||||
text-align: left;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
/* Benutzerinformationen (zentriert) */
|
||||
.header-user-info {
|
||||
text-align: center;
|
||||
color: #007bff;
|
||||
margin-right: 2%;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Header-Buttons für Admin und Logout (rechts) */
|
||||
.header-buttons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.header-btn {
|
||||
background-color: #007bff;
|
||||
color: #ffffff;
|
||||
border: none;
|
||||
width: auto;
|
||||
border-radius: 5px;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.header-btn:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
|
||||
/* Freier Platz für zukünftige Features */
|
||||
main {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -7,13 +7,24 @@
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Willkommen auf Ihrer persönlichen Seite!</h1>
|
||||
<div id="user-info">
|
||||
<p><strong>Benutzername:</strong> <span id="username"></span></p>
|
||||
<p><strong>Admin:</strong> <span id="isAdmin"></span></p>
|
||||
</div>
|
||||
<button id="adminPermissionsBtn" style="display: none;">Admin-Einstellungen</button>
|
||||
<button id="logoutBtn">Abmelden</button>
|
||||
|
||||
<!-- Header für Benutzer-Info und Buttons -->
|
||||
<header class="header">
|
||||
<h1 class="header-welcome">Willkommen auf Ihrer persönlichen Seite!</h1>
|
||||
|
||||
<div class="header-user-info">
|
||||
<p><strong>Benutzername:</strong> <span id="username">Gast</span></p>
|
||||
<p><strong>Admin:</strong> <span id="isAdmin">Nein</span></p>
|
||||
</div>
|
||||
|
||||
<div class="header-buttons">
|
||||
<button id="adminPermissionsBtn" class="header-btn" style="display: none;">Admin-Einstellungen</button>
|
||||
<button id="logoutBtn" class="header-btn">Abmelden</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Freier Platz für zukünftige Features -->
|
||||
<main></main>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user