Add Pitopn digital shop with FastAPI, Postgres 17, and Docker Compose
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,509 @@
|
||||
:root {
|
||||
--bg: #e8efe9;
|
||||
--bg-deep: #d5e2d8;
|
||||
--ink: #12201a;
|
||||
--ink-soft: #3d5248;
|
||||
--accent: #0f7a4c;
|
||||
--accent-hot: #e85d04;
|
||||
--surface: rgba(255, 255, 255, 0.55);
|
||||
--line: rgba(18, 32, 26, 0.12);
|
||||
--radius: 18px;
|
||||
--font-display: "Syne", sans-serif;
|
||||
--font-body: "Manrope", sans-serif;
|
||||
--shadow: 0 24px 60px rgba(18, 32, 26, 0.12);
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
color: var(--ink);
|
||||
font-family: var(--font-body);
|
||||
background:
|
||||
radial-gradient(1200px 700px at 10% -10%, #c8e6d3 0%, transparent 55%),
|
||||
radial-gradient(900px 600px at 100% 0%, #f4d6b8 0%, transparent 45%),
|
||||
linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.noise {
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
opacity: 0.04;
|
||||
z-index: 0;
|
||||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.site-header,
|
||||
main,
|
||||
.site-footer {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
font-size: 1.35rem;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
gap: 1.4rem;
|
||||
}
|
||||
|
||||
.nav a,
|
||||
.header-cta {
|
||||
color: var(--ink-soft);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.header-cta {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero {
|
||||
min-height: calc(100svh - 72px);
|
||||
display: grid;
|
||||
grid-template-columns: 1.05fr 0.95fr;
|
||||
align-items: end;
|
||||
gap: clamp(1.5rem, 4vw, 3rem);
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
padding-bottom: clamp(1rem, 4vw, 3rem);
|
||||
animation: rise 0.9s ease both;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
margin: 0 0 0.8rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(2.8rem, 8vw, 5.5rem);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.05em;
|
||||
line-height: 0.9;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin: 0 0 1rem;
|
||||
max-width: 14ch;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(1.8rem, 4.2vw, 3rem);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.hero-lead {
|
||||
margin: 0 0 1.8rem;
|
||||
max-width: 34ch;
|
||||
color: var(--ink-soft);
|
||||
font-size: 1.08rem;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 0.85rem 1.35rem;
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--ink);
|
||||
color: #f4faf6;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--ink);
|
||||
box-shadow: inset 0 0 0 1.5px var(--line);
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 0.55rem 1rem;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
position: relative;
|
||||
min-height: min(62vh, 560px);
|
||||
animation: fade-in 1.1s ease 0.15s both;
|
||||
}
|
||||
|
||||
.hero-plane {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: 0;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(15, 122, 76, 0.85), rgba(18, 32, 26, 0.92)),
|
||||
repeating-linear-gradient(
|
||||
-18deg,
|
||||
transparent 0 18px,
|
||||
rgba(255, 255, 255, 0.05) 18px 19px
|
||||
);
|
||||
clip-path: polygon(8% 0, 100% 0, 100% 88%, 0 100%);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.hero-orbit {
|
||||
position: absolute;
|
||||
width: 42%;
|
||||
aspect-ratio: 1;
|
||||
right: 12%;
|
||||
top: 18%;
|
||||
border: 1px solid rgba(255, 255, 255, 0.35);
|
||||
border-radius: 50%;
|
||||
animation: spin 18s linear infinite;
|
||||
}
|
||||
|
||||
.hero-orbit::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: #f4d6b8;
|
||||
top: 8%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
section {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
|
||||
}
|
||||
|
||||
.section-head {
|
||||
margin-bottom: 1.8rem;
|
||||
}
|
||||
|
||||
.section-head h2 {
|
||||
margin: 0 0 0.35rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(1.8rem, 3vw, 2.4rem);
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.section-head p {
|
||||
margin: 0;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.category-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.category-link {
|
||||
display: block;
|
||||
padding: 1.2rem 1rem;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
border-top: 2px solid var(--ink);
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.category-link:hover {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.category-name {
|
||||
display: block;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.category-desc {
|
||||
color: var(--ink-soft);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.featured-rail {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1.2rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.product-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1.2rem;
|
||||
}
|
||||
|
||||
.product {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.product-media {
|
||||
min-height: 140px;
|
||||
background: linear-gradient(135deg, #0f7a4c, #1b4332);
|
||||
}
|
||||
|
||||
.gradient-mint .product-media {
|
||||
background: linear-gradient(135deg, #2d6a4f, #95d5b2);
|
||||
}
|
||||
|
||||
.gradient-coral .product-media {
|
||||
background: linear-gradient(135deg, #e85d04, #f4a261);
|
||||
}
|
||||
|
||||
.gradient-ink .product-media {
|
||||
background: linear-gradient(135deg, #12201a, #40916c);
|
||||
}
|
||||
|
||||
.gradient-sand .product-media {
|
||||
background: linear-gradient(135deg, #bc6c25, #e9c46a);
|
||||
}
|
||||
|
||||
.product-body {
|
||||
padding: 1.1rem 1.15rem 1.2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.55rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.product-body h3 {
|
||||
margin: 0;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.15rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.product-body p {
|
||||
margin: 0;
|
||||
color: var(--ink-soft);
|
||||
font-size: 0.94rem;
|
||||
}
|
||||
|
||||
.product-tag {
|
||||
font-size: 0.78rem !important;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--accent) !important;
|
||||
}
|
||||
|
||||
.product-meta {
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.8rem;
|
||||
padding-top: 0.6rem;
|
||||
}
|
||||
|
||||
.price {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.steps {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1.4rem;
|
||||
}
|
||||
|
||||
.steps li {
|
||||
padding-top: 1rem;
|
||||
border-top: 2px solid var(--ink);
|
||||
}
|
||||
|
||||
.step-num {
|
||||
display: block;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
color: var(--accent-hot);
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
.steps h3 {
|
||||
margin: 0 0 0.4rem;
|
||||
font-family: var(--font-display);
|
||||
}
|
||||
|
||||
.steps p {
|
||||
margin: 0;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem clamp(1.2rem, 4vw, 3rem) 3rem;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.footer-brand {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.site-footer p {
|
||||
margin: 0.25rem 0;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
.footer-copy {
|
||||
margin-top: 1rem !important;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
bottom: 1.4rem;
|
||||
transform: translateX(-50%);
|
||||
z-index: 20;
|
||||
padding: 0.85rem 1.2rem;
|
||||
border-radius: 999px;
|
||||
background: var(--ink);
|
||||
color: #f4faf6;
|
||||
font-weight: 600;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(18px);
|
||||
transition: opacity 0.55s ease, transform 0.55s ease;
|
||||
}
|
||||
|
||||
.reveal.is-visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.empty {
|
||||
grid-column: 1 / -1;
|
||||
color: var(--ink-soft);
|
||||
}
|
||||
|
||||
@keyframes rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.hero {
|
||||
grid-template-columns: 1fr;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.hero-visual {
|
||||
min-height: 280px;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.category-list,
|
||||
.featured-rail,
|
||||
.product-grid,
|
||||
.steps {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.category-list,
|
||||
.featured-rail,
|
||||
.product-grid,
|
||||
.steps {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
font-size: clamp(2.4rem, 12vw, 3.4rem);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
(() => {
|
||||
const toast = document.getElementById("toast");
|
||||
let toastTimer;
|
||||
|
||||
const showToast = (message) => {
|
||||
if (!toast) return;
|
||||
toast.hidden = false;
|
||||
toast.textContent = message;
|
||||
clearTimeout(toastTimer);
|
||||
toastTimer = setTimeout(() => {
|
||||
toast.hidden = true;
|
||||
}, 2600);
|
||||
};
|
||||
|
||||
document.querySelectorAll("[data-buy]").forEach((button) => {
|
||||
button.addEventListener("click", () => {
|
||||
const slug = button.getAttribute("data-buy");
|
||||
showToast(`«${slug}» — оплата скоро будет подключена`);
|
||||
});
|
||||
});
|
||||
|
||||
const reveals = document.querySelectorAll(".reveal");
|
||||
if ("IntersectionObserver" in window) {
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add("is-visible");
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.15 }
|
||||
);
|
||||
reveals.forEach((el) => observer.observe(el));
|
||||
} else {
|
||||
reveals.forEach((el) => el.classList.add("is-visible"));
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user