Add full shop application: Go backend, PostgreSQL, Docker, Caddy and admin panel.

This commit is contained in:
shop
2026-06-25 16:39:33 +03:00
parent a150e4f8c6
commit ee5688f722
24 changed files with 1797 additions and 0 deletions
+196
View File
@@ -0,0 +1,196 @@
.admin-body {
background: #f3f4f6;
min-height: 100vh;
}
.admin-login {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.admin-login__card {
background: #fff;
border-radius: 16px;
padding: 40px;
width: 100%;
max-width: 420px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.admin-login__logo {
justify-content: center;
margin-bottom: 24px;
}
.admin-login__title {
font-size: 1.5rem;
font-weight: 700;
text-align: center;
margin-bottom: 24px;
}
.admin-login__back {
display: block;
text-align: center;
margin-top: 20px;
color: #6b7280;
text-decoration: none;
font-size: 0.9rem;
}
.admin-login__back:hover {
color: #4f46e5;
}
.admin-form {
display: flex;
flex-direction: column;
gap: 16px;
}
.admin-form__label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 0.875rem;
font-weight: 500;
color: #374151;
}
.admin-form__input {
padding: 12px 14px;
border: 1px solid #e5e7eb;
border-radius: 10px;
font-size: 1rem;
font-family: inherit;
transition: border-color 0.2s;
}
.admin-form__input:focus {
outline: none;
border-color: #4f46e5;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.admin-form__submit {
width: 100%;
justify-content: center;
margin-top: 8px;
}
.admin-alert {
padding: 12px 16px;
border-radius: 10px;
font-size: 0.9rem;
margin-bottom: 16px;
}
.admin-alert--error {
background: #fef2f2;
color: #b91c1c;
border: 1px solid #fecaca;
}
.admin-header {
background: #fff;
border-bottom: 1px solid #e5e7eb;
}
.admin-header__inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.admin-header__user {
display: flex;
align-items: center;
gap: 16px;
font-size: 0.9rem;
color: #6b7280;
}
.admin-main {
padding: 40px 24px;
}
.admin-page-title {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 32px;
}
.admin-stats {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.admin-stat {
background: #fff;
border-radius: 12px;
padding: 24px;
border: 1px solid #e5e7eb;
}
.admin-stat__value {
display: block;
font-size: 2rem;
font-weight: 700;
color: #4f46e5;
}
.admin-stat__label {
font-size: 0.875rem;
color: #6b7280;
}
.admin-section {
background: #fff;
border-radius: 12px;
padding: 24px;
border: 1px solid #e5e7eb;
margin-bottom: 24px;
}
.admin-section__title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 16px;
}
.admin-table {
width: 100%;
border-collapse: collapse;
}
.admin-table th,
.admin-table td {
text-align: left;
padding: 12px;
border-bottom: 1px solid #f3f4f6;
}
.admin-table th {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #6b7280;
}
.admin-hint {
font-size: 0.875rem;
color: #9ca3af;
}
.admin-hint code {
background: #e5e7eb;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.8rem;
}