@tokenoftrust/cli 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/tot.mjs +61 -4
- package/package.json +2 -1
- package/src/activity-log.mjs +112 -0
- package/src/auth.mjs +1 -1
- package/src/commands/dev.mjs +274 -17
- package/src/commands/feedback.mjs +176 -0
- package/src/commands/login.mjs +39 -2
- package/src/commands/logout.mjs +39 -0
- package/src/commands/start.mjs +173 -15
- package/src/oauth.mjs +77 -0
- package/src/sample.mjs +202 -0
- package/src/token-store.mjs +17 -1
- package/src/update-check-worker.mjs +12 -0
- package/src/update-check.mjs +217 -0
- package/template/sample-store/content/chrome.html +152 -0
- package/template/sample-store/content/chrome.json +94 -0
- package/template/sample-store/content/home.html +194 -0
- package/template/sample-store/content/home.json +50 -0
- package/template/sample-store/content/pages/about.json +10 -0
- package/template/sample-store/content/pages/privacy.json +6 -0
- package/template/sample-store/content/pages/shipping-returns.json +6 -0
- package/template/sample-store/content/pages-html/blogs/news.html +68 -0
- package/template/sample-store/content/pages-html/pages/about-us.html +95 -0
- package/template/sample-store/content/pages-html/pages/contact-us.html +68 -0
- package/template/sample-store/content/pages-html/pages/privacy-policy.html +65 -0
- package/template/sample-store/content/pages-html/pages/shipping-returns.html +77 -0
- package/template/sample-store/content/themes/giant-navy.json +73 -0
- package/template/sample-store/public/img/hero-suicide-bunny.jpg +0 -0
- package/template/sample-store/public/img/hero.webp +0 -0
- package/template/sample-store/public/img/og.jpg +0 -0
- package/template/sample-store/public/logo-wordmark.png +0 -0
- package/template/sample-store/public/pages/home.css +120 -0
- package/template/sample-store/public/pages/mkt.css +185 -0
- package/template/sample-store/public/pages/page.css +155 -0
- package/template/sample-store/public/themes/giant-navy.css +76 -0
- package/template/sample-store/theme.json +39 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
Giant Vapes — shared marketing component layer (mkt.css)
|
|
3
|
+
Reused across home + all marketing pages: layout, buttons, header/nav,
|
|
4
|
+
footer, section headers, tile + category grids, compliance strip.
|
|
5
|
+
Depends on tokens from themes/giant-navy.css.
|
|
6
|
+
========================================================================== */
|
|
7
|
+
|
|
8
|
+
/* --- Layout --------------------------------------------------------------- */
|
|
9
|
+
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
|
|
10
|
+
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
|
|
11
|
+
.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
|
|
12
|
+
.section--surface { background: var(--surface); }
|
|
13
|
+
|
|
14
|
+
/* --- Buttons -------------------------------------------------------------- */
|
|
15
|
+
.btn {
|
|
16
|
+
display: inline-flex; align-items: center; justify-content: center; gap: .5em;
|
|
17
|
+
font-family: var(--font-display); font-weight: 600; font-size: .95rem;
|
|
18
|
+
padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
|
|
19
|
+
transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
|
|
20
|
+
}
|
|
21
|
+
.btn:hover { transform: translateY(-1px); }
|
|
22
|
+
.btn-primary { background: var(--navy); color: #fff; }
|
|
23
|
+
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-md); }
|
|
24
|
+
.btn-line { border-color: #fff; color: #fff; }
|
|
25
|
+
.btn-line:hover { background: #fff; color: var(--navy); }
|
|
26
|
+
.btn-ghost { border-color: var(--border); color: var(--navy); background: #fff; }
|
|
27
|
+
.btn-ghost:hover { border-color: var(--navy); }
|
|
28
|
+
|
|
29
|
+
/* --- Announcement bar ----------------------------------------------------- */
|
|
30
|
+
.announce {
|
|
31
|
+
background: var(--navy); color: #fff; text-align: center;
|
|
32
|
+
font-size: .85rem; font-weight: 600; letter-spacing: .01em; padding: 9px 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* --- Top utility bar (shared chrome: FDA warning + marquee + utility nav) -- */
|
|
36
|
+
.topbar-warning {
|
|
37
|
+
background: #fff; border-bottom: 1px solid var(--border);
|
|
38
|
+
text-align: center; padding: 10px 16px;
|
|
39
|
+
}
|
|
40
|
+
.topbar-warning p { color: var(--ink); font-weight: 700; font-size: .82rem; letter-spacing: .01em; }
|
|
41
|
+
|
|
42
|
+
.announce-marquee { background: var(--sale); color: #fff; overflow: hidden; }
|
|
43
|
+
.announce-marquee__track {
|
|
44
|
+
display: flex; gap: 3rem; white-space: nowrap; width: max-content;
|
|
45
|
+
padding: 8px 0; font-size: .82rem; font-weight: 600;
|
|
46
|
+
animation: bdv-marquee 22s linear infinite;
|
|
47
|
+
}
|
|
48
|
+
.announce-marquee__track span { padding-inline: 1.5rem; }
|
|
49
|
+
@keyframes bdv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
|
|
50
|
+
@media (prefers-reduced-motion: reduce) {
|
|
51
|
+
.announce-marquee__track { animation: none; justify-content: center; width: 100%; }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.utility-nav { border-bottom: 1px solid var(--border); background: #fff; }
|
|
55
|
+
.utility-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
|
|
56
|
+
.utility-nav ul { display: flex; gap: 20px; }
|
|
57
|
+
.utility-nav a { font-size: .82rem; font-weight: 600; color: var(--ink); }
|
|
58
|
+
.utility-nav a:hover { color: var(--navy); }
|
|
59
|
+
.utility-nav__right { display: flex; align-items: center; gap: 16px; }
|
|
60
|
+
.utility-nav__right .sel { font-size: .8rem; color: var(--muted); }
|
|
61
|
+
.utility-nav__right .social { display: flex; gap: 12px; }
|
|
62
|
+
.utility-nav__right .social a svg { width: 16px; height: 16px; fill: var(--ink); }
|
|
63
|
+
|
|
64
|
+
/* --- Header / nav --------------------------------------------------------- */
|
|
65
|
+
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
|
|
66
|
+
.header-row { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); padding-block: 14px; }
|
|
67
|
+
.brand img { height: 46px; width: auto; }
|
|
68
|
+
.primary-nav { flex: 1; }
|
|
69
|
+
.primary-nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 1.6vw, 22px); }
|
|
70
|
+
.primary-nav a { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
|
|
71
|
+
.primary-nav a:hover { color: var(--navy); border-color: var(--navy); }
|
|
72
|
+
.primary-nav a.is-flag { color: var(--sale); }
|
|
73
|
+
.header-actions { display: flex; align-items: center; gap: 16px; }
|
|
74
|
+
.header-actions a { display: inline-flex; color: var(--ink); }
|
|
75
|
+
.header-actions a:hover { color: var(--navy); }
|
|
76
|
+
.header-actions svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
|
|
77
|
+
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
|
|
78
|
+
.hamburger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }
|
|
79
|
+
|
|
80
|
+
/* header search pill + account/cart badge (shared chrome) */
|
|
81
|
+
.site-header .header-row { gap: clamp(12px, 3vw, 40px); }
|
|
82
|
+
.header-search { flex: 1; max-width: 560px; position: relative; }
|
|
83
|
+
.header-search input {
|
|
84
|
+
width: 100%; border: 1px solid var(--border); border-radius: 999px;
|
|
85
|
+
padding: 11px 46px 11px 18px; font-size: .9rem; background: #fff; color: var(--ink);
|
|
86
|
+
}
|
|
87
|
+
.header-search input::placeholder { color: var(--muted); }
|
|
88
|
+
.header-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; }
|
|
89
|
+
.header-search svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 2; }
|
|
90
|
+
.header-actions .cart { position: relative; }
|
|
91
|
+
.header-actions .cart .count {
|
|
92
|
+
position: absolute; top: -6px; right: -8px; background: var(--navy); color: #fff;
|
|
93
|
+
font-size: .62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
|
|
94
|
+
display: grid; place-items: center; padding: 0 4px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* primary nav: NEW badge + dropdown carets + second-row nav bar (shared chrome) */
|
|
98
|
+
.primary-nav a .new-badge {
|
|
99
|
+
display: inline-block; background: var(--sale); color: #fff; font-size: .58rem; font-weight: 800;
|
|
100
|
+
letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
|
|
101
|
+
}
|
|
102
|
+
.primary-nav a .caret { font-size: .7em; margin-left: 4px; opacity: .7; }
|
|
103
|
+
.primary-nav-bar { border-top: 1px solid var(--border); background: #fff; }
|
|
104
|
+
.primary-nav-bar .container { padding-block: 4px; }
|
|
105
|
+
.primary-nav-bar .primary-nav > ul { gap: clamp(10px, 1.4vw, 20px); }
|
|
106
|
+
.primary-nav-bar .primary-nav a { padding-block: 10px; }
|
|
107
|
+
|
|
108
|
+
/* --- Section headers ------------------------------------------------------ */
|
|
109
|
+
.sec-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); }
|
|
110
|
+
.sec-head .eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: .55rem; }
|
|
111
|
+
.sec-head p { margin-top: .7rem; font-size: 1.02rem; }
|
|
112
|
+
.sec-head--between { display: flex; align-items: baseline; justify-content: space-between; text-align: left; max-width: none; gap: 16px; }
|
|
113
|
+
.link-more { font-family: var(--font-display); font-weight: 600; color: var(--navy); white-space: nowrap; }
|
|
114
|
+
.link-more:hover { text-decoration: underline; }
|
|
115
|
+
|
|
116
|
+
/* --- Brand / category tile grid ------------------------------------------- */
|
|
117
|
+
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
|
|
118
|
+
.tile {
|
|
119
|
+
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
|
|
120
|
+
background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
|
|
121
|
+
padding: 26px 18px; min-height: 148px; text-align: center; transition: transform .14s, box-shadow .14s, border-color .14s;
|
|
122
|
+
}
|
|
123
|
+
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--surface-2); }
|
|
124
|
+
.tile img { max-height: 66px; width: auto; object-fit: contain; }
|
|
125
|
+
.tile span { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); }
|
|
126
|
+
|
|
127
|
+
/* --- Category cards (shop by category) ------------------------------------ */
|
|
128
|
+
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
|
|
129
|
+
.cat-card {
|
|
130
|
+
position: relative; display: flex; align-items: flex-end; overflow: hidden;
|
|
131
|
+
min-height: 190px; border-radius: var(--radius-lg); color: #fff;
|
|
132
|
+
background: linear-gradient(135deg, var(--navy), var(--navy-ink));
|
|
133
|
+
padding: 22px; transition: transform .14s, box-shadow .14s;
|
|
134
|
+
}
|
|
135
|
+
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
|
|
136
|
+
.cat-card::after { content: "→"; position: absolute; top: 20px; right: 22px; font-size: 1.3rem; opacity: .85; }
|
|
137
|
+
.cat-card h3 { color: #fff; font-size: 1.35rem; }
|
|
138
|
+
.cat-card p { color: rgba(255, 255, 255, .82); margin-top: 4px; font-size: .9rem; }
|
|
139
|
+
|
|
140
|
+
/* --- Compliance strip (source-copied legal text; not fabricated) ---------- */
|
|
141
|
+
.compliance-strip { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
|
|
142
|
+
.compliance-strip .container { padding-block: 14px; }
|
|
143
|
+
.compliance-strip p { color: var(--navy-ink); font-size: .82rem; font-weight: 600; text-align: center; letter-spacing: .01em; }
|
|
144
|
+
|
|
145
|
+
/* --- Footer --------------------------------------------------------------- */
|
|
146
|
+
.site-footer { background: var(--navy-ink); color: #dbe4fb; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
|
|
147
|
+
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
|
|
148
|
+
.footer-brand img { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
|
|
149
|
+
.footer-brand p { color: #a9b8e6; margin-top: 14px; font-size: .9rem; max-width: 34ch; }
|
|
150
|
+
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
|
|
151
|
+
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
|
|
152
|
+
.footer-col a { color: #c3cff0; font-size: .92rem; }
|
|
153
|
+
.footer-col a:hover { color: #fff; text-decoration: underline; }
|
|
154
|
+
.footer-warning { margin-top: 34px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); }
|
|
155
|
+
.footer-warning strong { color: #fff; }
|
|
156
|
+
.footer-warning p { color: #c3cff0; font-size: .82rem; }
|
|
157
|
+
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
|
|
158
|
+
.footer-bottom p, .footer-bottom a { color: #93a4d6; font-size: .82rem; }
|
|
159
|
+
|
|
160
|
+
/* --- Reveal-on-scroll ----------------------------------------------------- */
|
|
161
|
+
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
|
|
162
|
+
.reveal.in { opacity: 1; transform: none; }
|
|
163
|
+
|
|
164
|
+
/* --- Responsive ----------------------------------------------------------- */
|
|
165
|
+
@media (max-width: 900px) {
|
|
166
|
+
.header-search { order: 3; flex-basis: 100%; max-width: none; }
|
|
167
|
+
.utility-nav ul { gap: 12px; }
|
|
168
|
+
}
|
|
169
|
+
@media (max-width: 1000px) {
|
|
170
|
+
.tile-grid { grid-template-columns: repeat(3, 1fr); }
|
|
171
|
+
}
|
|
172
|
+
@media (max-width: 860px) {
|
|
173
|
+
.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; padding: 80px 24px 24px; overflow-y: auto; }
|
|
174
|
+
.primary-nav.open { transform: none; }
|
|
175
|
+
.primary-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
|
|
176
|
+
.primary-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
|
|
177
|
+
.hamburger { display: flex; }
|
|
178
|
+
.cat-grid { grid-template-columns: 1fr 1fr; }
|
|
179
|
+
.footer-grid { grid-template-columns: 1fr 1fr; }
|
|
180
|
+
}
|
|
181
|
+
@media (max-width: 560px) {
|
|
182
|
+
.tile-grid { grid-template-columns: repeat(2, 1fr); }
|
|
183
|
+
.cat-grid { grid-template-columns: 1fr; }
|
|
184
|
+
.footer-grid { grid-template-columns: 1fr; }
|
|
185
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
Giant Vapes — shared marketing subpage styles (page.css)
|
|
3
|
+
Page hero + prose + contact cards. Used by pages-html/**. Depends on tokens
|
|
4
|
+
from themes/giant-navy.css and components from pages/mkt.css.
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
/* --- Page hero ------------------------------------------------------------ */
|
|
8
|
+
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-ink)); color: #fff; }
|
|
9
|
+
.page-hero .container { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
|
|
10
|
+
.page-hero .eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #afc2ff; margin-bottom: .7rem; }
|
|
11
|
+
.page-hero h1 { color: #fff; max-width: 22ch; }
|
|
12
|
+
.page-hero p { color: #dce5ff; font-size: 1.08rem; margin-top: .9rem; max-width: 60ch; }
|
|
13
|
+
.crumbs { font-size: .82rem; color: #a9b8e6; margin-bottom: 1rem; }
|
|
14
|
+
.crumbs a:hover { color: #fff; text-decoration: underline; }
|
|
15
|
+
|
|
16
|
+
/* --- Prose ---------------------------------------------------------------- */
|
|
17
|
+
.prose { max-width: 70ch; margin-inline: auto; }
|
|
18
|
+
.prose h2 { margin-top: 2.2rem; margin-bottom: .6rem; }
|
|
19
|
+
.prose h3 { margin-top: 1.6rem; margin-bottom: .4rem; }
|
|
20
|
+
.prose p { margin-bottom: 1rem; color: var(--ink); }
|
|
21
|
+
.prose p.lead { font-size: 1.15rem; color: var(--muted); }
|
|
22
|
+
.prose ul.bullets { margin: 0 0 1rem; padding-left: 1.1rem; list-style: disc; }
|
|
23
|
+
.prose ul.bullets li { margin-bottom: .4rem; color: var(--ink); }
|
|
24
|
+
.prose a { color: var(--navy); font-weight: 600; }
|
|
25
|
+
.prose a:hover { text-decoration: underline; }
|
|
26
|
+
|
|
27
|
+
/* --- Value cards (about-page "what we're about" grid) --------------------- */
|
|
28
|
+
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); margin-top: 1.6rem; }
|
|
29
|
+
.value-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
|
|
30
|
+
.value-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .55rem; }
|
|
31
|
+
.value-card p { color: var(--ink); font-size: .96rem; }
|
|
32
|
+
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
|
|
33
|
+
|
|
34
|
+
/* --- Contact cards -------------------------------------------------------- */
|
|
35
|
+
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); margin-top: 1.5rem; }
|
|
36
|
+
.contact-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
|
|
37
|
+
.contact-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .5rem; }
|
|
38
|
+
.contact-card a { color: var(--ink); font-weight: 600; }
|
|
39
|
+
.contact-card a:hover { color: var(--navy); }
|
|
40
|
+
.contact-card p { font-size: .92rem; }
|
|
41
|
+
|
|
42
|
+
/* --- Brand chips ---------------------------------------------------------- */
|
|
43
|
+
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 1.5rem; }
|
|
44
|
+
.brand-chips a { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--navy); background: var(--surface); }
|
|
45
|
+
.brand-chips a:hover { background: var(--surface-2); }
|
|
46
|
+
|
|
47
|
+
@media (max-width: 720px) {
|
|
48
|
+
.contact-grid { grid-template-columns: 1fr; }
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* ============================================================================
|
|
52
|
+
About page — hero overlay + alternating media/copy splits + pickers
|
|
53
|
+
(clones bigdvapor.com/pages/about-us section-for-section)
|
|
54
|
+
========================================================================== */
|
|
55
|
+
|
|
56
|
+
/* --- Full-bleed hero with image + left-aligned overlay copy --------------- */
|
|
57
|
+
.hero-overlay { position: relative; overflow: hidden; background: var(--navy-ink); }
|
|
58
|
+
.hero-overlay > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
59
|
+
.hero-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,10,40,.62) 0%, rgba(0,10,40,.34) 45%, rgba(0,10,40,.08) 100%); }
|
|
60
|
+
.hero-overlay__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 9vw, 7rem); }
|
|
61
|
+
.hero-overlay .crumbs { color: #cdd8f5; }
|
|
62
|
+
.hero-overlay .crumbs a { color: #eaf0ff; }
|
|
63
|
+
.hero-overlay h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,10,40,.4); }
|
|
64
|
+
.hero-overlay p { color: #eaf0ff; font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 1rem; max-width: 46ch; }
|
|
65
|
+
|
|
66
|
+
/* --- Media / copy split (Our Story, Our Mission, Service) ------------------ */
|
|
67
|
+
.split .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
|
|
68
|
+
.split--rev .container { direction: rtl; }
|
|
69
|
+
.split--rev .split__copy, .split--rev .split__media { direction: ltr; }
|
|
70
|
+
.split__copy h2 { margin-bottom: 1rem; }
|
|
71
|
+
.split__copy p { color: var(--ink); margin-bottom: 1rem; max-width: 52ch; }
|
|
72
|
+
.split__copy .btn { margin-top: .4rem; }
|
|
73
|
+
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
|
|
74
|
+
.split--center .split__copy { text-align: center; }
|
|
75
|
+
.split--center .split__copy p { margin-inline: auto; }
|
|
76
|
+
.split--center .split__copy .btn { display: inline-flex; }
|
|
77
|
+
|
|
78
|
+
/* --- Trusted Brands band (centered) --------------------------------------- */
|
|
79
|
+
.brands-band .brand-chips { justify-content: center; max-width: 780px; margin-inline: auto; }
|
|
80
|
+
|
|
81
|
+
/* --- Centered CTA band (Service — decorative image absent from source) ----- */
|
|
82
|
+
.cta-band { text-align: center; }
|
|
83
|
+
.cta-band .container { max-width: 60ch; }
|
|
84
|
+
.cta-band p { color: var(--ink); margin-top: 1rem; }
|
|
85
|
+
.cta-band .btn { margin-top: 1.5rem; }
|
|
86
|
+
|
|
87
|
+
/* --- Category picker (Find Your Fav) -------------------------------------- */
|
|
88
|
+
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
|
|
89
|
+
.pick-card {
|
|
90
|
+
display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
|
|
91
|
+
min-height: 132px; padding: 22px 20px; background: #fff;
|
|
92
|
+
border: 1px solid var(--border); border-radius: var(--radius-lg);
|
|
93
|
+
transition: transform .14s, box-shadow .14s, border-color .14s;
|
|
94
|
+
}
|
|
95
|
+
.pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--surface-2); }
|
|
96
|
+
.pick-card h3 { color: var(--navy); font-size: 1.15rem; }
|
|
97
|
+
.pick-card span { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); }
|
|
98
|
+
.pick-card span::after { content: " →"; }
|
|
99
|
+
|
|
100
|
+
/* ============================================================================
|
|
101
|
+
Contact page — icon info band + form (clones /pages/contact-us)
|
|
102
|
+
========================================================================== */
|
|
103
|
+
.page-hero--center { text-align: center; background: none; color: inherit; }
|
|
104
|
+
.page-hero--center h1 { color: var(--ink); max-width: none; margin-inline: auto; }
|
|
105
|
+
.page-hero--center p { color: var(--muted); margin-inline: auto; }
|
|
106
|
+
|
|
107
|
+
.contact-band { background: var(--navy); border-radius: var(--radius-lg); color: #fff; }
|
|
108
|
+
.contact-band .contact-band__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); padding: clamp(28px, 5vw, 48px); text-align: center; }
|
|
109
|
+
.contact-band__item svg { width: 40px; height: 40px; margin: 0 auto 16px; stroke: #fff; fill: none; stroke-width: 1.6; }
|
|
110
|
+
.contact-band__item a, .contact-band__item span { color: #fff; font-size: 1.02rem; font-weight: 500; }
|
|
111
|
+
.contact-band__item a:hover { text-decoration: underline; }
|
|
112
|
+
|
|
113
|
+
.contact-form { margin-top: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 16px; }
|
|
114
|
+
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
|
115
|
+
.contact-form input, .contact-form textarea {
|
|
116
|
+
width: 100%; font: inherit; color: var(--ink); background: var(--surface);
|
|
117
|
+
border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 18px;
|
|
118
|
+
}
|
|
119
|
+
.contact-form textarea { min-height: 180px; resize: vertical; }
|
|
120
|
+
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
|
|
121
|
+
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,48,160,.14); }
|
|
122
|
+
.contact-form .btn-primary { width: 100%; padding-block: 1em; font-size: 1rem; }
|
|
123
|
+
|
|
124
|
+
/* ============================================================================
|
|
125
|
+
Blog index — post-card grid (clones /blogs/news "Latest News")
|
|
126
|
+
========================================================================== */
|
|
127
|
+
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
|
|
128
|
+
.blog-card {
|
|
129
|
+
display: flex; flex-direction: column; gap: 10px; padding: 24px;
|
|
130
|
+
background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
|
|
131
|
+
transition: transform .14s, box-shadow .14s, border-color .14s;
|
|
132
|
+
}
|
|
133
|
+
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--surface-2); }
|
|
134
|
+
.blog-card__date { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
|
|
135
|
+
.blog-card h2 { font-size: 1.18rem; line-height: 1.25; color: var(--ink); }
|
|
136
|
+
.blog-card h2 a:hover { color: var(--navy); }
|
|
137
|
+
.blog-card__more { margin-top: auto; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: .9rem; }
|
|
138
|
+
.blog-card__more:hover { text-decoration: underline; }
|
|
139
|
+
.blog-card__more::after { content: " →"; }
|
|
140
|
+
|
|
141
|
+
/* --- Responsive ----------------------------------------------------------- */
|
|
142
|
+
@media (max-width: 900px) {
|
|
143
|
+
.pick-grid { grid-template-columns: repeat(2, 1fr); }
|
|
144
|
+
.blog-grid { grid-template-columns: repeat(2, 1fr); }
|
|
145
|
+
}
|
|
146
|
+
@media (max-width: 760px) {
|
|
147
|
+
.split .container, .split--rev .container { grid-template-columns: 1fr; direction: ltr; }
|
|
148
|
+
.split--rev .split__media { order: -1; }
|
|
149
|
+
.contact-band .contact-band__inner { grid-template-columns: 1fr; }
|
|
150
|
+
.contact-form .row2 { grid-template-columns: 1fr; }
|
|
151
|
+
}
|
|
152
|
+
@media (max-width: 560px) {
|
|
153
|
+
.pick-grid { grid-template-columns: 1fr 1fr; }
|
|
154
|
+
.blog-grid { grid-template-columns: 1fr; }
|
|
155
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
Giant Vapes — "giant-navy" theme (swappable token + base layer)
|
|
3
|
+
Brand: deep navy #1b3b64 on white, warm gold accent #e0a83a. Mirrors
|
|
4
|
+
giantvapes.com. This file is the reskinnable layer: design tokens, reset, and
|
|
5
|
+
base element styles. Shared components live in pages/mkt.css; home-only in
|
|
6
|
+
pages/home.css. Token values mirror tenants/giantvapes/theme.json.
|
|
7
|
+
========================================================================== */
|
|
8
|
+
|
|
9
|
+
/* --- Design tokens -------------------------------------------------------- */
|
|
10
|
+
:root {
|
|
11
|
+
--navy: #1b3b64;
|
|
12
|
+
--navy-dark: #142d4d;
|
|
13
|
+
--navy-ink: #0f2138;
|
|
14
|
+
--ink: #16243d;
|
|
15
|
+
--muted: #5b6a82;
|
|
16
|
+
--bg: #ffffff;
|
|
17
|
+
--surface: #f5f7fa;
|
|
18
|
+
--surface-2: #eaeef4;
|
|
19
|
+
--border: #e3e8ef;
|
|
20
|
+
--gold: #e0a83a;
|
|
21
|
+
--gold-dark: #c8901f;
|
|
22
|
+
--sale: #8a5d10;
|
|
23
|
+
--ok: #2f8a5b;
|
|
24
|
+
|
|
25
|
+
--radius-sm: 6px;
|
|
26
|
+
--radius: 10px;
|
|
27
|
+
--radius-lg: 16px;
|
|
28
|
+
--shadow-sm: 0 1px 2px rgba(15, 33, 56, .06), 0 1px 3px rgba(15, 33, 56, .08);
|
|
29
|
+
--shadow-md: 0 6px 18px rgba(15, 33, 56, .10);
|
|
30
|
+
--shadow-lg: 0 18px 48px rgba(15, 33, 56, .16);
|
|
31
|
+
|
|
32
|
+
--container: 1240px;
|
|
33
|
+
--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
34
|
+
--font-display: "Montserrat", var(--font-body);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* --- Reset ---------------------------------------------------------------- */
|
|
38
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
39
|
+
* { margin: 0; }
|
|
40
|
+
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
|
|
41
|
+
body {
|
|
42
|
+
font-family: var(--font-body);
|
|
43
|
+
color: var(--ink);
|
|
44
|
+
background: var(--bg);
|
|
45
|
+
line-height: 1.55;
|
|
46
|
+
-webkit-font-smoothing: antialiased;
|
|
47
|
+
text-rendering: optimizeLegibility;
|
|
48
|
+
}
|
|
49
|
+
img, svg, video { display: block; max-width: 100%; height: auto; }
|
|
50
|
+
a { color: inherit; text-decoration: none; }
|
|
51
|
+
button { font: inherit; cursor: pointer; }
|
|
52
|
+
ul { list-style: none; padding: 0; }
|
|
53
|
+
|
|
54
|
+
/* --- Base typography ------------------------------------------------------ */
|
|
55
|
+
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
|
|
56
|
+
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
|
|
57
|
+
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
|
|
58
|
+
h3 { font-size: 1.2rem; }
|
|
59
|
+
p { color: var(--muted); }
|
|
60
|
+
|
|
61
|
+
/* --- Accessibility -------------------------------------------------------- */
|
|
62
|
+
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
|
|
63
|
+
.skip-link {
|
|
64
|
+
position: absolute; left: 8px; top: -48px; z-index: 200;
|
|
65
|
+
background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
|
|
66
|
+
transition: top .15s ease;
|
|
67
|
+
}
|
|
68
|
+
.skip-link:focus { top: 0; }
|
|
69
|
+
.sr-only {
|
|
70
|
+
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
71
|
+
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
|
72
|
+
}
|
|
73
|
+
@media (prefers-reduced-motion: reduce) {
|
|
74
|
+
html { scroll-behavior: auto; }
|
|
75
|
+
*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
|
|
76
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_vendor": "Giant Vapes",
|
|
3
|
+
"_note": "Per-vendor theme override (DeepPartial<ThemeTokens>). Matched from giantvapes.com; the brand adopter can regenerate this file. Keyed by tenant_id (giantvapes). Recovered from the old 'pilot' fixture (git 4ed56c3^) when giantvapes was reconstituted as its own colocated tenant.",
|
|
4
|
+
"color": {
|
|
5
|
+
"bg": "#ffffff",
|
|
6
|
+
"surface": "#f5f7fa",
|
|
7
|
+
"text": "#16243d",
|
|
8
|
+
"muted": "#5b6a82",
|
|
9
|
+
"primary": "#1b3b64",
|
|
10
|
+
"primary-contrast": "#ffffff",
|
|
11
|
+
"accent": "#e0a83a",
|
|
12
|
+
"border": "#e3e8ef",
|
|
13
|
+
"success": "#2f8a5b",
|
|
14
|
+
"sale": "#8a5d10"
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"display": {
|
|
18
|
+
"family": "Montserrat",
|
|
19
|
+
"weights": [
|
|
20
|
+
600,
|
|
21
|
+
700,
|
|
22
|
+
800
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"body": {
|
|
26
|
+
"family": "Inter",
|
|
27
|
+
"weights": [
|
|
28
|
+
400,
|
|
29
|
+
500,
|
|
30
|
+
600
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"brand": {
|
|
35
|
+
"logoLight": "https://giantvapes.com/cdn/shop/files/GiantLogo_white_200x.png?v=1738709402",
|
|
36
|
+
"ogImage": "https://giantvapes.com/cdn/shop/files/Giant_Logo_Black-01_56304d21-10fc-4a79-822e-dce1097f5c70.png?v=1738699970",
|
|
37
|
+
"headerVariant": "dark"
|
|
38
|
+
}
|
|
39
|
+
}
|