Repository navigation
Expand file tree
/
Copy pathcontent.js
More file actions
250 lines (231 loc) · 10.1 KB
/
Copy pathcontent.js
File metadata and controls
250 lines (231 loc) · 10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
/* ════════════════════════════════════════════════════════════
CONTEÚDO EDITÁVEL — Features, Vantagens e FAQ
────────────────────────────────────────────────────────────
Para ADICIONAR um item: copie um objeto existente do array,
cole no final (antes do "]") e troque os textos.
Para REMOVER um item: apague o objeto inteiro (de "{" até "},").
Para ALTERAR um item: edite apenas o texto entre aspas.
IMPORTANTE: sempre edite os dois idiomas (pt e en) juntos,
mantendo a mesma ordem dos itens nos dois arrays.
════════════════════════════════════════════════════════════ */
const siteContent = {
// ── FEATURES (seção com o mockup do app) ──────────────────
// icon: emoji exibido antes do título
features: {
pt: [
{
icon: "📅",
title: "Planeje os momentos futuros",
desc: "Organize encontros, viagens, aniversários e eventos importantes no calendário compartilhado do casal."
},
{
icon: "🔔",
title: "Viva os momentos agora",
desc: "Receba lembretes automáticos e notificações para que nenhuma data especial passe despercebida."
},
{
icon: "📸",
title: "Reviva os momentos passados",
desc: "Registre memórias e detalhes dos melhores capítulos do seu relacionamento."
},
{
icon: "💑",
title: "Feito para dois",
desc: "O DatePlan é desenvolvido exclusivamente para casais — um espaço privado e compartilhado onde os seus momentos pertencem apenas a vocês dois."
}
],
en: [
{
icon: "📅",
title: "Plan the moments ahead",
desc: "Organize dates, trips, anniversaries, and important events in your shared couple calendar."
},
{
icon: "🔔",
title: "Live the moments now",
desc: "Get automatic reminders and notifications so no special date goes unnoticed."
},
{
icon: "📸",
title: "Relive the moments past",
desc: "Record memories and details from the best chapters of your relationship."
},
{
icon: "💑",
title: "Built for two",
desc: "DatePlan is designed exclusively for couples — a private, shared space where your moments belong only to you two."
}
]
},
// ── VANTAGENS (seção "Focused on outcomes") ────────────────
// highlight: true deixa o card em destaque (fundo escuro)
advantages: {
pt: [
{
icon: "📅",
title: "Nunca perca uma data",
desc: "Lembretes inteligentes e um calendário compartilhado garantem que cada aniversário, dia especial e momento planejado receba a atenção que merece.",
highlight: true
},
{
icon: "🔒",
title: "Privacidade por design",
desc: "Seu relacionamento é seu. O DatePlan mantém seus momentos, memórias e planos completamente privados — só entre vocês dois.",
highlight: false
},
{
icon: "✨",
title: "Simples e intuitivo",
desc: "Sem curva de aprendizado. O DatePlan sai do caminho para que você foque no que importa — passar tempo de qualidade juntos.",
highlight: false
},
{
icon: "💾",
title: "A sua história, preservada",
desc: "Construa uma linha do tempo do seu relacionamento. Do primeiro encontro a cada marco importante, a sua história vive em um lugar especial.",
highlight: false
}
],
en: [
{
icon: "📅",
title: "Never miss a date",
desc: "Smart reminders and a shared calendar mean every anniversary, special day, and planned moment gets the attention it deserves.",
highlight: true
},
{
icon: "🔒",
title: "Private by design",
desc: "Your relationship is yours. DatePlan keeps your moments, memories, and plans completely private — just between the two of you.",
highlight: false
},
{
icon: "✨",
title: "Simple and intuitive",
desc: "No learning curve. DatePlan gets out of the way so you can focus on what matters — spending quality time together.",
highlight: false
},
{
icon: "💾",
title: "Your story, preserved",
desc: "Build a timeline of your relationship. From the first date to every milestone, your story lives in one beautiful place.",
highlight: false
}
]
},
// ── FAQ ─────────────────────────────────────────────────────
faq: {
pt: [
{
q: "Meu parceiro(a) precisa criar uma conta também?",
a: "Sim — o DatePlan é feito para dois. Ambos criam uma conta e se conectam dentro do app para compartilhar o calendário, memórias e momentos juntos."
},
{
q: "Meus dados são privados e seguros?",
a: "Com certeza. Seus momentos, memórias e planos são privados apenas para o casal. Não compartilhamos seus dados com terceiros e levamos sua privacidade muito a sério."
},
{
q: "O DatePlan é open source?",
a: "Sim! O código do app e da API está aberto no <a href=\"https://github.com/DatePlanApplication\" target=\"_blank\" rel=\"noopener\" style=\"color:var(--red);font-weight:600\">GitHub</a>. Você pode ler, auditar e contribuir com o projeto."
},
{
q: "O DatePlan está disponível no iOS?",
a: "O DatePlan está disponível atualmente no Android via Google Play. Uma versão para iOS está a caminho — fique ligado!"
},
{
q: "Posso usar o DatePlan em relacionamentos à distância?",
a: "Sim! O DatePlan funciona perfeitamente para casais à distância. Planeje visitas futuras, celebre aniversários e mantenha o calendário compartilhado sincronizado — onde quer que estejam."
},
{
q: "Como começar?",
a: "Baixe o DatePlan no Google Play, crie sua conta e convide seu parceiro(a). Em minutos vocês já estarão planejando o primeiro momento juntos."
}
],
en: [
{
q: "Does my partner need to create an account too?",
a: "Yes — DatePlan is built for two. Both partners create an account and connect with each other inside the app to share a calendar, memories, and moments together."
},
{
q: "Is my data private and secure?",
a: "Absolutely. Your moments, memories, and plans are private to your couple only. We don't share your data with third parties and take your privacy seriously."
},
{
q: "Is DatePlan open source?",
a: "Yes! The app and API code is open on <a href=\"https://github.com/DatePlanApplication\" target=\"_blank\" rel=\"noopener\" style=\"color:var(--red);font-weight:600\">GitHub</a>. You can read, audit, and contribute to the project."
},
{
q: "Is DatePlan available on iOS?",
a: "DatePlan is currently available on Android via Google Play. An iOS version is on the way — stay tuned!"
},
{
q: "Can I use DatePlan in long-distance relationships?",
a: "Yes! DatePlan works perfectly for long-distance couples. Plan future visits, celebrate anniversaries, and keep your shared calendar synced — no matter where you are."
},
{
q: "How do I get started?",
a: "Simply download DatePlan from Google Play, create your account, and invite your partner. You'll be planning your first moment together in minutes."
}
]
}
};
/* ════════════════════════════════════════════════════════════
RENDERIZAÇÃO — não precisa mexer aqui
════════════════════════════════════════════════════════════ */
function renderFeatures(lang) {
const items = siteContent.features[lang];
const leftCol = document.querySelector('.feat-left');
const rightCol = document.querySelector('.feat-right');
if (!leftCol || !rightCol) return;
leftCol.innerHTML = '';
rightCol.innerHTML = '';
items.forEach((item, i) => {
const card = document.createElement('div');
card.className = 'feat-card reveal visible';
card.innerHTML = `
<h3>${item.icon} ${item.title}</h3>
<p>${item.desc}</p>
`;
// Divide os itens: pares na esquerda, ímpares na direita
(i % 2 === 0 ? leftCol : rightCol).appendChild(card);
});
}
function renderAdvantages(lang) {
const items = siteContent.advantages[lang];
const grid = document.querySelector('.adv-grid');
if (!grid) return;
grid.innerHTML = '';
items.forEach(item => {
const card = document.createElement('div');
card.className = 'adv-card reveal visible' + (item.highlight ? ' highlight' : '');
card.innerHTML = `
<div class="adv-visual">${item.icon}</div>
<h3>${item.title}</h3>
<p>${item.desc}</p>
`;
grid.appendChild(card);
});
}
function renderFaq(lang) {
const items = siteContent.faq[lang];
const list = document.querySelector('.faq-list');
if (!list) return;
list.innerHTML = '';
items.forEach(item => {
const faqItem = document.createElement('div');
faqItem.className = 'faq-item reveal visible';
faqItem.innerHTML = `
<button class="faq-q" onclick="toggleFaq(this)">
<span>${item.q}</span>
<span class="icon">+</span>
</button>
<div class="faq-a">${item.a}</div>
`;
list.appendChild(faqItem);
});
}
function renderDynamicContent(lang) {
renderFeatures(lang);
renderAdvantages(lang);
renderFaq(lang);
}