Skip to content

Commit 5204056

Browse files
authored
Añadir preguntas faq, trust-factors, modo oscuro, paleta catpuccin (#37)
* Add landing trust signals * Show trust signals on landing * Update hero download CTA * Improve landing FAQ copy * Update landing footer links * Simplify trust signals layout * Remove Discord from landing footer * Añadir html de google para verificar * Eliminar html * Añadir html de google para verificacion Ahora donde tiene que ir * Refine trust signal dividers * Force patched PostCSS version * Adjust trust signal borders * Restore package lock sync * Use Catppuccin Latte colors * Add landing theme toggle component * Add theme toggle to header * Add Catppuccin Mocha theme variables * Simplify theme toggle * Simplify footer background * Use system theme by default * Restore footer wave * Update landing navigation links * Add top anchor to hero * Tune features anchor spacing * Tune screenshots anchor spacing * Tune FAQ anchor spacing * Tune download anchor spacing * Make logo scroll to top reliably
1 parent e3e815e commit 5204056

12 files changed

Lines changed: 375 additions & 162 deletions

File tree

landing/app/globals.css

Lines changed: 111 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,113 @@
44
--font-sans: "Geist", "Geist Fallback", system-ui, sans-serif;
55
--font-mono: "Geist Mono", "Geist Mono Fallback", monospace;
66

7-
--color-background: #ffffff;
8-
--color-foreground: #0f0f0f;
9-
--color-muted: #f5f5f5;
10-
--color-muted-foreground: #737373;
11-
--color-primary: #7c3aed;
12-
--color-primary-foreground: #ffffff;
13-
--color-secondary: #f3f4f6;
14-
--color-secondary-foreground: #1f2937;
15-
--color-accent: #8b5cf6;
16-
--color-border: #e5e5e5;
17-
--color-card: #ffffff;
18-
--color-card-foreground: #0f0f0f;
7+
--color-background: var(--theme-background);
8+
--color-foreground: var(--theme-foreground);
9+
--color-muted: var(--theme-muted);
10+
--color-muted-foreground: var(--theme-muted-foreground);
11+
--color-primary: var(--theme-primary);
12+
--color-primary-foreground: var(--theme-primary-foreground);
13+
--color-secondary: var(--theme-secondary);
14+
--color-secondary-foreground: var(--theme-secondary-foreground);
15+
--color-accent: var(--theme-accent);
16+
--color-border: var(--theme-border);
17+
--color-card: var(--theme-card);
18+
--color-card-foreground: var(--theme-card-foreground);
1919

2020
--radius: 0.75rem;
2121
}
2222

23+
:root,
24+
:root[data-theme="latte"] {
25+
--theme-background: #eff1f5;
26+
--theme-foreground: #4c4f69;
27+
--theme-muted: #e6e9ef;
28+
--theme-muted-foreground: #6c6f85;
29+
--theme-primary: #8839ef;
30+
--theme-primary-foreground: #eff1f5;
31+
--theme-secondary: #dce0e8;
32+
--theme-secondary-foreground: #4c4f69;
33+
--theme-accent: #8839ef;
34+
--theme-border: #ccd0da;
35+
--theme-card: #eff1f5;
36+
--theme-card-foreground: #4c4f69;
37+
--theme-shadow: 76, 79, 105;
38+
--theme-primary-rgb: 136, 57, 239;
39+
color-scheme: light;
40+
}
41+
42+
@media (prefers-color-scheme: dark) {
43+
:root:not([data-theme]) {
44+
--theme-background: #1e1e2e;
45+
--theme-foreground: #cdd6f4;
46+
--theme-muted: #313244;
47+
--theme-muted-foreground: #a6adc8;
48+
--theme-primary: #cba6f7;
49+
--theme-primary-foreground: #1e1e2e;
50+
--theme-secondary: #45475a;
51+
--theme-secondary-foreground: #cdd6f4;
52+
--theme-accent: #cba6f7;
53+
--theme-border: #45475a;
54+
--theme-card: #181825;
55+
--theme-card-foreground: #cdd6f4;
56+
--theme-shadow: 17, 17, 27;
57+
--theme-primary-rgb: 203, 166, 247;
58+
color-scheme: dark;
59+
}
60+
}
61+
62+
:root[data-theme="mocha"] {
63+
--theme-background: #1e1e2e;
64+
--theme-foreground: #cdd6f4;
65+
--theme-muted: #313244;
66+
--theme-muted-foreground: #a6adc8;
67+
--theme-primary: #cba6f7;
68+
--theme-primary-foreground: #1e1e2e;
69+
--theme-secondary: #45475a;
70+
--theme-secondary-foreground: #cdd6f4;
71+
--theme-accent: #cba6f7;
72+
--theme-border: #45475a;
73+
--theme-card: #181825;
74+
--theme-card-foreground: #cdd6f4;
75+
--theme-shadow: 17, 17, 27;
76+
--theme-primary-rgb: 203, 166, 247;
77+
color-scheme: dark;
78+
}
79+
2380
* {
2481
border-color: var(--color-border);
2582
}
2683

2784
html {
2885
scroll-behavior: smooth;
2986
scroll-padding-top: 5rem;
87+
transition:
88+
background-color 240ms ease,
89+
color 240ms ease;
3090
}
3191

3292
body {
3393
background: var(--color-background);
3494
color: var(--color-foreground);
3595
font-family: var(--font-sans);
96+
transition:
97+
background-color 240ms ease,
98+
color 240ms ease;
99+
}
100+
101+
a,
102+
button,
103+
section,
104+
header,
105+
footer,
106+
.feature-card,
107+
.faq-item,
108+
.faq-toggle {
109+
transition:
110+
background-color 240ms ease,
111+
border-color 240ms ease,
112+
color 240ms ease,
113+
box-shadow 240ms ease;
36114
}
37115

38116
@keyframes heroIn {
@@ -71,40 +149,36 @@ body {
71149
transform-style: preserve-3d;
72150
transition:
73151
transform 120ms ease,
74-
background-color 140ms ease,
75-
border-color 140ms ease,
76-
color 140ms ease,
77-
box-shadow 140ms ease;
152+
background-color 240ms ease,
153+
border-color 240ms ease,
154+
color 240ms ease,
155+
box-shadow 240ms ease;
78156
will-change: transform;
79157
}
80158

81159
.tilt-link:hover {
82-
box-shadow: 0 6px 14px rgba(15, 15, 15, 0.1);
160+
box-shadow: 0 6px 14px rgba(var(--theme-shadow), 0.12);
83161
}
84162

85163
.feature-card {
86164
color: inherit;
87-
transition:
88-
background-color 160ms ease,
89-
border-color 160ms ease,
90-
box-shadow 160ms ease;
91165
}
92166

93167
.feature-card:hover {
94-
background: rgba(124, 58, 237, 0.04);
95-
border-color: rgba(124, 58, 237, 0.32);
96-
box-shadow: 0 6px 14px rgba(15, 15, 15, 0.08);
168+
background: rgba(var(--theme-primary-rgb), 0.06);
169+
border-color: rgba(var(--theme-primary-rgb), 0.32);
170+
box-shadow: 0 6px 14px rgba(var(--theme-shadow), 0.1);
97171
}
98172

99173
.feature-card:hover .feature-icon {
100-
background: rgba(124, 58, 237, 0.14);
174+
background: rgba(var(--theme-primary-rgb), 0.14);
101175
}
102176

103177
.feature-card-reveal {
104178
opacity: 0;
105179
transform: translateY(16px);
106180
transition-property: opacity, transform, background-color, border-color, box-shadow;
107-
transition-duration: 520ms, 520ms, 160ms, 160ms, 160ms;
181+
transition-duration: 520ms, 520ms, 240ms, 240ms, 240ms;
108182
transition-timing-function: ease, ease, ease, ease, ease;
109183
transition-delay: var(--feature-delay, 0ms), var(--feature-delay, 0ms), 0ms, 0ms, 0ms;
110184
}
@@ -114,16 +188,8 @@ body {
114188
transform: translateY(0);
115189
}
116190

117-
.faq-item {
118-
transition: background-color 180ms ease;
119-
}
120-
121191
.faq-item:hover {
122-
background: rgba(124, 58, 237, 0.025);
123-
}
124-
125-
.faq-trigger {
126-
transition: color 180ms ease;
192+
background: rgba(var(--theme-primary-rgb), 0.04);
127193
}
128194

129195
.faq-trigger:hover {
@@ -140,12 +206,12 @@ body {
140206
border-radius: 9999px;
141207
background: var(--color-muted);
142208
transition:
143-
background-color 180ms ease,
209+
background-color 240ms ease,
144210
transform 180ms ease;
145211
}
146212

147213
.faq-trigger:hover .faq-toggle {
148-
background: rgba(124, 58, 237, 0.1);
214+
background: rgba(var(--theme-primary-rgb), 0.1);
149215
}
150216

151217
.faq-toggle span {
@@ -155,7 +221,7 @@ body {
155221
border-radius: 9999px;
156222
background: var(--color-muted-foreground);
157223
transition:
158-
background-color 180ms ease,
224+
background-color 240ms ease,
159225
transform 220ms ease;
160226
}
161227

@@ -168,7 +234,7 @@ body {
168234
}
169235

170236
.faq-trigger[aria-expanded="true"] .faq-toggle {
171-
background: rgba(124, 58, 237, 0.12);
237+
background: rgba(var(--theme-primary-rgb), 0.12);
172238
transform: rotate(180deg);
173239
}
174240

@@ -203,29 +269,19 @@ body {
203269
scroll-behavior: auto;
204270
}
205271

272+
*,
273+
*::before,
274+
*::after {
275+
transition: none !important;
276+
}
277+
206278
.tilt-link,
207279
.tilt-link:hover {
208280
transform: none;
209-
transition:
210-
background-color 140ms ease,
211-
border-color 140ms ease,
212-
color 140ms ease;
213281
}
214282

215283
.feature-card-reveal {
216284
opacity: 1;
217285
transform: none;
218-
transition:
219-
background-color 160ms ease,
220-
border-color 160ms ease,
221-
box-shadow 160ms ease;
222-
}
223-
224-
.faq-answer,
225-
.faq-item,
226-
.faq-trigger,
227-
.faq-toggle,
228-
.faq-toggle span {
229-
transition: none;
230286
}
231287
}

landing/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Header } from "@/components/header";
22
import { Hero } from "@/components/hero";
3+
import { TrustSignals } from "@/components/trust-signals";
34
import { Features } from "@/components/features";
45
import { Screenshots } from "@/components/screenshots";
56
import { FAQ } from "@/components/faq";
@@ -12,6 +13,7 @@ export default function Home() {
1213
<Header />
1314
<main>
1415
<Hero />
16+
<TrustSignals />
1517
<Features />
1618
<Screenshots />
1719
<FAQ />

landing/components/download-cta.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const developerSteps = [
2626

2727
export function DownloadCTA() {
2828
return (
29-
<section id="descargar" className="scroll-mt-20 bg-background px-4 py-20 sm:px-6 lg:px-8">
29+
<section id="descargar" className="bg-background px-4 py-20 sm:px-6 lg:px-8">
3030
<div className="mx-auto max-w-6xl">
3131
<div className="mx-auto mb-12 max-w-3xl text-center">
3232
<h2 className="mb-4 text-3xl font-bold text-foreground sm:text-4xl">
@@ -63,13 +63,13 @@ export function DownloadCTA() {
6363
</ol>
6464

6565
<TiltLink
66-
href="https://github.com/2844dev/FreeTPV/releases"
66+
href="https://github.com/2844dev/FreeTPV/releases/latest"
6767
target="_blank"
6868
rel="noopener noreferrer"
6969
className="inline-flex h-12 w-full items-center justify-center gap-2 rounded-lg bg-primary px-6 text-base font-medium text-primary-foreground transition-colors hover:bg-primary/90 sm:w-auto"
7070
>
7171
<Download className="h-5 w-5" />
72-
Descargar para Windows
72+
Descargar última versión para Windows
7373
</TiltLink>
7474
</div>
7575

0 commit comments

Comments
 (0)