To gitea and beyond, let's go(-yco)
This commit is contained in:
36
internal/static/css/base.css
Normal file
36
internal/static/css/base.css
Normal file
@@ -0,0 +1,36 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #eef3f6;
|
||||
--surface: #ffffff;
|
||||
--surface-subtle: #f6fbff;
|
||||
--text: #1f2733;
|
||||
--muted: #5a6470;
|
||||
--border: #c7d4de;
|
||||
--accent: #0fadb9;
|
||||
--accent-hover: #0c8c95;
|
||||
--accent-soft: rgba(15, 173, 185, 0.16);
|
||||
--error: #c44536;
|
||||
--success: #1f7a67;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--accent-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
85
internal/static/css/buttons.css
Normal file
85
internal/static/css/buttons.css
Normal file
@@ -0,0 +1,85 @@
|
||||
.button,
|
||||
button {
|
||||
font: inherit;
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.55rem 1.1rem;
|
||||
cursor: pointer;
|
||||
letter-spacing: 0.01em;
|
||||
transition: all 140ms ease;
|
||||
}
|
||||
|
||||
.button,
|
||||
button[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.button:hover,
|
||||
button[type="submit"]:hover {
|
||||
background: var(--accent-hover);
|
||||
border-color: var(--accent-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button:disabled,
|
||||
.button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
background: var(--surface-subtle);
|
||||
border-color: var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.button-secondary:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.button-ghost {
|
||||
background: none;
|
||||
border: 1px solid transparent;
|
||||
color: var(--muted);
|
||||
padding: 0.35rem 0.75rem;
|
||||
}
|
||||
|
||||
.button-ghost:hover {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.button-ghost.is-active {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.button-ghost.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.button-ghost.muted:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.button-danger {
|
||||
background: #c44536;
|
||||
border-color: #c44536;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.button-danger:hover {
|
||||
background: #a93a2d;
|
||||
border-color: #a93a2d;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(196, 69, 54, 0.3);
|
||||
}
|
||||
404
internal/static/css/components.css
Normal file
404
internal/static/css/components.css
Normal file
@@ -0,0 +1,404 @@
|
||||
.alert {
|
||||
padding: 1.25rem 1.75rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
font-size: 0.95rem;
|
||||
text-align: center;
|
||||
margin: 0 auto 2.5rem;
|
||||
max-width: 500px;
|
||||
box-shadow: 0 4px 12px rgba(31, 39, 51, 0.1);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.alert-error {
|
||||
border-color: rgba(196, 69, 54, 0.35);
|
||||
background: rgba(196, 69, 54, 0.08);
|
||||
color: #8f342a;
|
||||
}
|
||||
|
||||
.alert p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.alert p + p {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
border-color: rgba(31, 122, 103, 0.35);
|
||||
background: rgba(31, 122, 103, 0.12);
|
||||
color: #1d5f51;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 1.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.page-heading {
|
||||
max-width: 28rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
margin: 0;
|
||||
font-size: 1.9rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.page-subtitle {
|
||||
margin: 0.5rem 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.98rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.feed-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.3rem;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: var(--surface);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.feed-toggle__link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.35rem 0.9rem;
|
||||
border-radius: 999px;
|
||||
font-size: 0.9rem;
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
transition:
|
||||
background-color 140ms ease,
|
||||
color 140ms ease;
|
||||
}
|
||||
|
||||
.feed-toggle__link:hover {
|
||||
color: var(--accent);
|
||||
background: rgba(15, 173, 185, 0.08);
|
||||
}
|
||||
|
||||
.feed-toggle__link.is-active {
|
||||
color: var(--accent);
|
||||
background: rgba(15, 173, 185, 0.16);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.confirmation-card {
|
||||
text-align: center;
|
||||
padding: 3rem 2rem;
|
||||
}
|
||||
|
||||
.confirmation-success,
|
||||
.confirmation-error {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.confirmation-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
margin-bottom: 0.5rem;
|
||||
animation: confirmationPulse 0.6s ease-out;
|
||||
}
|
||||
|
||||
.success-icon {
|
||||
background: linear-gradient(135deg, #10b981, #059669);
|
||||
box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
|
||||
.error-icon {
|
||||
background: linear-gradient(135deg, #ef4444, #dc2626);
|
||||
box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
.confirmation-title {
|
||||
margin: 0;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.confirmation-message {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
max-width: 480px;
|
||||
}
|
||||
|
||||
.confirmation-help {
|
||||
text-align: left;
|
||||
background: var(--surface-subtle);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
margin: 1rem 0;
|
||||
max-width: 480px;
|
||||
}
|
||||
|
||||
.confirmation-help h3 {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.confirmation-help ul {
|
||||
margin: 0;
|
||||
padding-left: 1.2rem;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.confirmation-help li {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.confirmation-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
padding: 0.75rem 1.5rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
border-radius: 8px;
|
||||
transition: all 140ms ease;
|
||||
}
|
||||
|
||||
.button-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
border-color: var(--accent-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(15, 173, 185, 0.3);
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
background: var(--surface-subtle);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.alert {
|
||||
padding: 1rem 1.25rem;
|
||||
margin: 0 auto 2rem;
|
||||
max-width: 100%;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.button-secondary:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@keyframes confirmationPulse {
|
||||
0% {
|
||||
transform: scale(0.8);
|
||||
opacity: 0;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.resend-verification {
|
||||
text-align: center;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.resend-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #f59e0b, #f97316);
|
||||
color: white;
|
||||
margin: 0 auto 1.5rem;
|
||||
box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
|
||||
animation: confirmationPulse 0.6s ease-out;
|
||||
}
|
||||
|
||||
.resend-title {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.resend-message {
|
||||
margin: 0 0 2rem 0;
|
||||
font-size: 1.1rem;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
max-width: 480px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.resend-form {
|
||||
max-width: 400px;
|
||||
margin: 0 auto 2rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.resend-form label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.resend-form input[type="email"] {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
font-size: 1rem;
|
||||
color: var(--text);
|
||||
transition: all 140ms ease;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.resend-form input[type="email"]:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(15, 173, 185, 0.22);
|
||||
}
|
||||
|
||||
.resend-help {
|
||||
background: var(--surface-subtle);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
margin: 2rem 0;
|
||||
text-align: left;
|
||||
max-width: 480px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.resend-help h3 {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.resend-help ul {
|
||||
margin: 0;
|
||||
padding-left: 1.2rem;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.resend-help li {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.resend-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.page-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.page-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.feed-toggle {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.feed-toggle__link {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.confirmation-card {
|
||||
padding: 2rem 1.5rem;
|
||||
}
|
||||
|
||||
.confirmation-title {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.confirmation-message {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.confirmation-actions {
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.button-primary,
|
||||
.button-secondary {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
190
internal/static/css/forms.css
Normal file
190
internal/static/css/forms.css
Normal file
@@ -0,0 +1,190 @@
|
||||
.form-card,
|
||||
.auth-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 2rem;
|
||||
max-width: 540px;
|
||||
margin: 0 auto;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.form-card h1,
|
||||
.auth-card h1 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.65rem;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.auth-card__message {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 1.05rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.auth-card__message[data-state="error"] {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.auth-card__actions {
|
||||
margin-top: 2.25rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 0.4rem;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea {
|
||||
width: 100%;
|
||||
padding: 0.7rem 0.75rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
font-size: 1rem;
|
||||
color: var(--text);
|
||||
transition: all 140ms ease;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(15, 173, 185, 0.22);
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
min-height: 140px;
|
||||
}
|
||||
|
||||
.form-card form > button,
|
||||
.form-card form > .button,
|
||||
.auth-card form > button,
|
||||
.auth-card form > .button {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.form-card form > button + .hint,
|
||||
.form-card form > .button + .hint,
|
||||
.auth-card form > button + .hint,
|
||||
.auth-card form > .button + .hint {
|
||||
margin-top: 1.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.field-with-action {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-top: 0.45rem;
|
||||
}
|
||||
|
||||
.field-with-action input {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.hint {
|
||||
font-size: 0.85rem;
|
||||
color: var(--muted);
|
||||
margin-top: 0.4rem;
|
||||
}
|
||||
|
||||
.hint[data-state="error"] {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.hint[data-state="info"] {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.error-list {
|
||||
margin: 0.75rem 0 0;
|
||||
padding-left: 1.2rem;
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.deletion-warning {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.deletion-form {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.deletion-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.deletion-option {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface-subtle);
|
||||
cursor: pointer;
|
||||
transition: all 140ms ease;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.deletion-option:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.deletion-option input[type="radio"] {
|
||||
margin: 0;
|
||||
width: auto;
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.deletion-option span {
|
||||
line-height: 1.5;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.deletion-option:has(input:checked) {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.form-card,
|
||||
.auth-card {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.deletion-options {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.deletion-option {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
}
|
||||
208
internal/static/css/layout.css
Normal file
208
internal/static/css/layout.css
Normal file
@@ -0,0 +1,208 @@
|
||||
.container {
|
||||
width: min(720px, 92vw);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.header-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1.25rem;
|
||||
padding: 1.25rem 0;
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 200px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.brand:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
font-size: 0.95rem;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.site-nav a {
|
||||
color: var(--muted);
|
||||
padding: 0.25rem 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.site-nav a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.nav-action {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-action button {
|
||||
font: inherit !important;
|
||||
background: none !important;
|
||||
border: none !important;
|
||||
padding: 0.35rem 0 !important;
|
||||
color: var(--muted) !important;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: color 140ms ease;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.nav-action button:hover {
|
||||
color: var(--accent) !important;
|
||||
background: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.header-search {
|
||||
flex: 1;
|
||||
max-width: 300px;
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
.search-form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--surface-subtle);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
transition: border-color 140ms ease;
|
||||
}
|
||||
|
||||
.search-form:focus-within {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.search-button {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0.5rem 0.75rem;
|
||||
cursor: pointer;
|
||||
color: var(--muted);
|
||||
transition: color 140ms ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.search-button:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.search-button span {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.search-query {
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
margin: 0.25rem 0 0 0;
|
||||
}
|
||||
|
||||
.no-results {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.no-results p {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
main.content-stack {
|
||||
padding: 2.5rem 0 4rem;
|
||||
}
|
||||
|
||||
.content-stack > * + * {
|
||||
margin-top: 2.5rem;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
padding: 2.5rem 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.85rem;
|
||||
border-top: 1px solid var(--border);
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.site-footer .container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.header-bar {
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.brand {
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
.header-search {
|
||||
order: 3;
|
||||
flex: 1 1 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.header-bar {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.brand {
|
||||
max-width: 120px;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.site-nav a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
8
internal/static/css/main.css
Normal file
8
internal/static/css/main.css
Normal file
@@ -0,0 +1,8 @@
|
||||
@import url("base.css");
|
||||
@import url("layout.css");
|
||||
@import url("components.css");
|
||||
@import url("buttons.css");
|
||||
@import url("forms.css");
|
||||
@import url("posts.css");
|
||||
@import url("voting.css");
|
||||
@import url("settings.css");
|
||||
146
internal/static/css/posts.css
Normal file
146
internal/static/css/posts.css
Normal file
@@ -0,0 +1,146 @@
|
||||
.post-feed {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.post-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid rgba(199, 212, 222, 0.3);
|
||||
border-radius: 16px;
|
||||
padding: 1.75rem 2rem;
|
||||
transition: all 200ms ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.post-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 32px rgba(31, 39, 51, 0.12);
|
||||
border-color: rgba(15, 173, 185, 0.2);
|
||||
}
|
||||
|
||||
.post-card header {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.post-card h2 {
|
||||
margin: 0;
|
||||
font-size: 1.35rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.post-card h2 a {
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
transition: color 200ms ease;
|
||||
}
|
||||
|
||||
.post-card h2 a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.post-link {
|
||||
margin: 0.4rem 0 0;
|
||||
word-break: break-word;
|
||||
font-size: 0.94rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.post-stats {
|
||||
margin: 1.25rem 0 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
font-size: 0.9rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.post-detail {
|
||||
background: var(--surface);
|
||||
border: 1px solid rgba(199, 212, 222, 0.3);
|
||||
border-radius: 20px;
|
||||
padding: 3rem;
|
||||
box-shadow: 0 4px 24px rgba(31, 39, 51, 0.08);
|
||||
transition:
|
||||
transform 200ms ease,
|
||||
box-shadow 200ms ease;
|
||||
}
|
||||
|
||||
.post-detail:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 32px rgba(31, 39, 51, 0.12);
|
||||
}
|
||||
|
||||
.post-detail h1 {
|
||||
margin: 0;
|
||||
font-size: 2.2rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.post-detail h1 a {
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
transition: color 200ms ease;
|
||||
}
|
||||
|
||||
.post-detail h1 a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.post-detail .post-link {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.post-detail .post-meta {
|
||||
margin-top: 0.75rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.post-body {
|
||||
margin: 2.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
line-height: 1.7;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.post-votes {
|
||||
border-top: 1px solid rgba(199, 212, 222, 0.3);
|
||||
margin-top: 2.5rem;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.post-card {
|
||||
padding: 1.5rem 1.25rem;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.post-card h2 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.post-detail {
|
||||
padding: 2rem 1.5rem;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.post-detail h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
229
internal/static/css/settings.css
Normal file
229
internal/static/css/settings.css
Normal file
@@ -0,0 +1,229 @@
|
||||
.settings {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3rem;
|
||||
}
|
||||
|
||||
.settings-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3rem;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.settings-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 3rem;
|
||||
align-items: stretch;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 820px) {
|
||||
.settings-row {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
align-items: stretch;
|
||||
}
|
||||
}
|
||||
|
||||
.settings-card {
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 2rem 2.5rem 2.5rem;
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(199, 212, 222, 0.6);
|
||||
box-shadow: 0 8px 32px -8px rgba(31, 39, 51, 0.12);
|
||||
transition: all 200ms ease;
|
||||
height: 100%;
|
||||
background: var(--surface);
|
||||
min-width: 0;
|
||||
overflow-wrap: break-word;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.settings-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 12px 48px -8px rgba(31, 39, 51, 0.18);
|
||||
border-color: rgba(15, 173, 185, 0.2);
|
||||
}
|
||||
|
||||
.settings-card__header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding-bottom: 1.5rem;
|
||||
border-bottom: 1px solid rgba(199, 212, 222, 0.4);
|
||||
margin-bottom: 0.5rem;
|
||||
grid-row: 1;
|
||||
min-height: 5rem;
|
||||
justify-content: flex-start;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.settings-card h2 {
|
||||
margin: 0;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.settings-lead {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
hyphens: none;
|
||||
white-space: normal;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-lead strong,
|
||||
.settings-email {
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
display: inline;
|
||||
max-width: 100%;
|
||||
hyphens: none;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.settings-card__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
margin-top: 0;
|
||||
min-height: 0;
|
||||
grid-row: 2;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-card__form label {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.4rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.95rem;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.settings-card__form .error-list {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.settings-card__form .hint {
|
||||
margin-top: 0.1rem;
|
||||
min-height: 3.5rem;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
flex-shrink: 0;
|
||||
line-height: 1.4;
|
||||
text-align: left;
|
||||
word-spacing: normal;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
hyphens: auto;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-card__form button,
|
||||
.settings-card__form .button {
|
||||
align-self: stretch;
|
||||
margin-top: auto;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.settings-card__form > *:not(button):not(.button) {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.settings-card__form > button:last-child,
|
||||
.settings-card__form > .button:last-child {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.settings-card__form input[type="email"] {
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.settings-card__form input[type="text"] {
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.settings-card--full .settings-card__form .hint {
|
||||
margin-top: 0.1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.settings-card--full .settings-card__form button {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.settings-card--deletion {
|
||||
border-color: rgba(196, 69, 54, 0.3);
|
||||
background: rgba(196, 69, 54, 0.02);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.settings-card--deletion:hover {
|
||||
border-color: rgba(196, 69, 54, 0.5);
|
||||
background: rgba(196, 69, 54, 0.04);
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 12px 48px -8px rgba(196, 69, 54, 0.15);
|
||||
}
|
||||
|
||||
.settings-card__title--danger {
|
||||
color: var(--error) !important;
|
||||
}
|
||||
|
||||
.hint--danger {
|
||||
color: var(--error) !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.settings {
|
||||
gap: 2.5rem;
|
||||
}
|
||||
|
||||
.settings-stack {
|
||||
gap: 2.5rem;
|
||||
}
|
||||
|
||||
.settings-card {
|
||||
padding: 1.75rem 2rem;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.settings-card__header {
|
||||
padding-bottom: 1.25rem;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.settings-card h2 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
93
internal/static/css/voting.css
Normal file
93
internal/static/css/voting.css
Normal file
@@ -0,0 +1,93 @@
|
||||
.vote-strip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.vote-form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.vote-arrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(199, 212, 222, 0.4);
|
||||
background: rgba(15, 173, 185, 0.04);
|
||||
color: var(--muted);
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: all 200ms ease;
|
||||
}
|
||||
|
||||
.vote-arrow:hover,
|
||||
.vote-arrow:focus-visible {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(15, 173, 185, 0.2);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.vote-arrow.is-active {
|
||||
color: #ffffff;
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
box-shadow: 0 4px 12px rgba(15, 173, 185, 0.3);
|
||||
}
|
||||
|
||||
.vote-arrow.is-active:hover {
|
||||
background: var(--accent-hover);
|
||||
border-color: var(--accent-hover);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.vote-arrow span {
|
||||
pointer-events: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.vote-totals {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 0.5rem;
|
||||
padding: 0.5rem 1rem;
|
||||
background: rgba(15, 173, 185, 0.06);
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(15, 173, 185, 0.1);
|
||||
}
|
||||
|
||||
.vote-score {
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.vote-breakdown {
|
||||
font-size: 0.85rem;
|
||||
color: var(--muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.vote-strip {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.vote-arrow {
|
||||
width: 2.2rem;
|
||||
height: 2.2rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.vote-totals {
|
||||
padding: 0.4rem 0.8rem;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
}
|
||||
BIN
internal/static/favicon.ico
Normal file
BIN
internal/static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
20
internal/static/robots.txt
Normal file
20
internal/static/robots.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Allow: /search
|
||||
Allow: /posts/
|
||||
Allow: /static/
|
||||
|
||||
# Disallow private/user-specific pages
|
||||
Disallow: /login
|
||||
Disallow: /register
|
||||
Disallow: /confirm
|
||||
Disallow: /forgot-password
|
||||
Disallow: /reset-password
|
||||
Disallow: /settings
|
||||
Disallow: /posts/new
|
||||
|
||||
# Disallow API endpoints
|
||||
Disallow: /api/
|
||||
|
||||
# Allow health check for monitoring
|
||||
Allow: /health
|
||||
Reference in New Issue
Block a user