Basic functions, Home and Community Tab
This commit is contained in:
163
style/main.scss
Normal file
163
style/main.scss
Normal file
@@ -0,0 +1,163 @@
|
||||
:root {
|
||||
--primary: #6366f1;
|
||||
--primary-dark: #4f46e5;
|
||||
--bg: #f8fafc;
|
||||
--white: #ffffff;
|
||||
--text-main: #0f172a;
|
||||
--text-light: #64748b;
|
||||
--border: #e2e8f0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
||||
background-color: var(--bg);
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
// --- NAVBAR ---
|
||||
.navbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0.75rem 0;
|
||||
|
||||
.nav-content {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
|
||||
.nav-links {
|
||||
display: flex; gap: 0.5rem;
|
||||
a {
|
||||
text-decoration: none; color: var(--text-light); padding: 0.5rem 1rem; border-radius: 0.5rem; transition: all 0.2s;
|
||||
&[aria-current="page"] { background: rgba(99, 102, 241, 0.1); color: var(--primary); font-weight: 600; }
|
||||
&:hover { background: rgba(99, 102, 241, 0.05); color: var(--primary); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- HOME PAGE ---
|
||||
.home-hero {
|
||||
text-align: center;
|
||||
padding: 100px 20px;
|
||||
h1 { font-size: 4rem; color: var(--primary); margin-bottom: 1rem; font-weight: 900; }
|
||||
p { font-size: 1.25rem; color: var(--text-light); }
|
||||
}
|
||||
|
||||
// --- COMMUNITY / LOGIN ---
|
||||
.community-container {
|
||||
display: flex; justify-content: center; padding: 3rem 1rem;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
background: var(--white);
|
||||
padding: 3rem;
|
||||
border-radius: 1.5rem;
|
||||
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
text-align: center;
|
||||
|
||||
h2 { margin-top: 0; color: var(--text-main); font-size: 1.75rem; }
|
||||
p { color: var(--text-light); margin-bottom: 2rem; }
|
||||
|
||||
// Hier stylen wir die Form-Inhalte direkt
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
box-sizing: border-box; // Wichtig für korrektes Padding
|
||||
padding: 0.8rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 0.75rem;
|
||||
font-size: 1rem;
|
||||
transition: border-color 0.2s;
|
||||
&:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
padding: 0.8rem;
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 0.75rem;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
&:hover { background: var(--primary-dark); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- CHAT WINDOW ---
|
||||
.chat-main {
|
||||
background: var(--white); width: 100%; max-width: 800px; height: 650px; border-radius: 1.5rem;
|
||||
display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); overflow: hidden;
|
||||
}
|
||||
|
||||
.chat-top-bar {
|
||||
padding: 1.25rem 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
h3 { margin: 0; font-size: 1.1rem; }
|
||||
.badge { background: #f1f5f9; padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 600; }
|
||||
}
|
||||
|
||||
.message-area {
|
||||
flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: #fafafa;
|
||||
}
|
||||
|
||||
.msg-row {
|
||||
display: flex;
|
||||
&.me { justify-content: flex-end; .msg-bubble { background: var(--primary); color: white; border-bottom-right-radius: 2px; } }
|
||||
&.other { justify-content: flex-start; .msg-bubble { background: #f1f5f9; color: var(--text-main); border-bottom-left-radius: 2px; } }
|
||||
}
|
||||
|
||||
.msg-bubble {
|
||||
padding: 0.75rem 1.25rem; border-radius: 1.25rem; max-width: 75%;
|
||||
strong { display: block; font-size: 0.75rem; margin-bottom: 4px; opacity: 0.8; }
|
||||
p { margin: 0; line-height: 1.5; }
|
||||
}
|
||||
|
||||
.chat-input-wrapper {
|
||||
padding: 1.25rem; border-top: 1px solid var(--border);
|
||||
form .input-group {
|
||||
display: flex; gap: 0.75rem;
|
||||
input { flex: 1; padding: 0.75rem 1.25rem; border-radius: 2rem; border: 1px solid var(--border); background: #f8fafc; }
|
||||
button { padding: 0 1.5rem; background: var(--primary); color: white; border: none; border-radius: 2rem; font-weight: 600; cursor: pointer; }
|
||||
}
|
||||
}
|
||||
|
||||
// --- FOOTER & SERVER TIME ---
|
||||
.app-footer {
|
||||
text-align: center;
|
||||
padding: 3rem 0;
|
||||
.server-time {
|
||||
display: inline-block;
|
||||
background: #ffffff;
|
||||
padding: 0.5rem 1.25rem;
|
||||
border-radius: 2rem;
|
||||
border: 1px solid var(--border);
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-light);
|
||||
font-weight: 500;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user