274 lines
6.6 KiB
SCSS
274 lines
6.6 KiB
SCSS
: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); }
|
|
}
|
|
}
|
|
}
|
|
|
|
// --- 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);
|
|
}
|
|
}
|
|
|
|
.home-container {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.projects-grid {
|
|
display: grid;
|
|
// Sorgt dafür, dass die Karten immer gleich breit sind
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
margin: 2rem 0;
|
|
// Verhindert Layout-Shifts
|
|
align-items: stretch;
|
|
}
|
|
|
|
.project-card {
|
|
background: var(--white);
|
|
border-radius: 1rem;
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
height: 100%; // Wichtig für einheitliche Höhe im Grid
|
|
|
|
&:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 20px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.project-image {
|
|
height: 180px;
|
|
background: #f1f5f9;
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.project-content {
|
|
padding: 1.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
|
|
h3 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.25rem;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
p {
|
|
font-size: 0.95rem;
|
|
color: var(--text-light);
|
|
line-height: 1.5;
|
|
margin-bottom: 1.5rem;
|
|
flex-grow: 1; // Drückt die Buttons nach unten
|
|
}
|
|
}
|
|
|
|
.project-links {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.75rem;
|
|
|
|
a {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
padding: 0.6rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-download {
|
|
background: var(--primary);
|
|
color: white;
|
|
&:hover { background: var(--primary-dark); }
|
|
}
|
|
|
|
.btn-code {
|
|
background: var(--bg);
|
|
color: var(--text-main);
|
|
border: 1px solid var(--border);
|
|
&:hover { background: var(--border); }
|
|
}
|
|
}
|
|
}
|
|
|
|
.loading-trigger {
|
|
text-align: center;
|
|
padding: 3rem 0;
|
|
min-height: 100px;
|
|
}
|
|
|
|
.end-msg {
|
|
color: var(--text-light);
|
|
font-size: 0.9rem;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
margin: 0 auto;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin { to { transform: rotate(360deg); } } |