Skip to content

Commit 85fee59

Browse files
committed
FAQ
1 parent be449b0 commit 85fee59

14 files changed

Lines changed: 148 additions & 22 deletions

File tree

content/faq/_index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "FAQ"
3+
date: 2025-05-25T00:00:00Z
4+
draft: false
5+
description: "Frequently asked questions about CodeFryDev—free tools, games, AI apps, privacy, and support."
6+
keywords: ["FAQ", "CodeFryDev help", "free tools", "support", "privacy"]
7+
---
8+
9+
Answers to common questions about our free browser tools, games, AI apps, privacy practices, and how to get support.

layouts/contact-us/contact-us.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h2 id="contact-form-heading" class="contact-form-card__title m-0">Send us a mes
140140
</a>
141141
</li>
142142
<li>
143-
<a href="/#faq" class="contact-link no-underline group home-hash-link">
143+
<a href="/faq/" class="contact-link no-underline group">
144144
<span class="contact-link__icon" aria-hidden="true"></span>
145145
<span class="contact-link__body">
146146
<span class="contact-link__title">FAQ</span>

layouts/faq/faq.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{ partial "home/modern-page-start.html" (dict "page" . "navActive" "" "headExtra" `<meta name="keywords" content="FAQ, CodeFryDev help, free tools, support, privacy">`) }}
2+
3+
<article class="faq-page pt-6 pb-20 sm:pt-10 sm:pb-24">
4+
<header class="about-hero max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 mb-10 sm:mb-14">
5+
<div class="about-hero__panel">
6+
<div class="about-hero__glow" aria-hidden="true"></div>
7+
<div class="about-hero__inner md:max-w-2xl">
8+
<p class="about-hero__eyebrow">Help center</p>
9+
{{- if .Content -}}
10+
<div class="about-hero__quote m-0">{{ .Content }}</div>
11+
{{- end -}}
12+
</div>
13+
</div>
14+
</header>
15+
16+
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
17+
{{ partial "faq/accordion.html" (dict "headingLevel" "h1" "headingId" "faq-page-heading" "showEyebrow" false "showTitle" true "title" .Title "scrollClass" "flex flex-col gap-3") }}
18+
19+
<div class="faq-page__cta mt-12 text-center">
20+
<p class="text-slate-600 text-base m-0 mb-4">Still need help?</p>
21+
<a href="/contact-us/" class="about-btn about-btn--primary inline-flex items-center justify-center gap-2 no-underline">
22+
Contact us
23+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="18" height="18" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>
24+
</a>
25+
</div>
26+
</div>
27+
</article>
28+
29+
{{ partial "home/modern-page-end.html" (dict "page" .) }}

layouts/partials/enhanced-jsonld.html

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"contactPoint": {
4242
"@type": "ContactPoint",
4343
"contactType": "customer service",
44-
"url": "{{ .Site.BaseURL }}contact-us"
44+
"url": "{{ .Site.BaseURL }}contact-us/"
4545
},
4646
"about": {
4747
"@type": "AboutPage",
@@ -95,9 +95,9 @@
9595
</script>
9696

9797
{{- /* ============================================ */ -}}
98-
{{- /* FAQ Schema (home only) */ -}}
98+
{{- /* FAQ Schema (/faq/ only) */ -}}
9999
{{- /* ============================================ */ -}}
100-
{{- if and .IsHome hugo.Data.faq -}}
100+
{{- if and (eq .Section "faq") hugo.Data.faq.faqs -}}
101101
{{- if hugo.Data.faq.faqs -}}
102102
{{- $faqItems := slice -}}
103103
{{- range hugo.Data.faq.faqs -}}
@@ -198,6 +198,23 @@
198198
{{- $pageSchema = $pageSchema | append $aboutUs -}}
199199
{{- end -}}
200200

201+
{{- /* Contact-us page */ -}}
202+
{{- if eq .Section "contact-us" -}}
203+
{{- $contactPage := dict
204+
"@type" "ContactPage"
205+
"@id" (printf "%s#contactpage" .Permalink)
206+
"url" .Permalink
207+
"name" "Contact us"
208+
"description" (.Description | default "Get in touch with CodeFryDev for support, feedback, partnerships, and press inquiries.")
209+
"inLanguage" (.Site.LanguageCode | default "en-US")
210+
"isPartOf" (dict "@id" (print .Site.BaseURL "#website"))
211+
"publisher" (dict "@id" (print .Site.BaseURL "#organization"))
212+
"mainEntity" (dict "@id" (print .Site.BaseURL "#organization"))
213+
"contactPoint" (dict "@type" "ContactPoint" "contactType" "customer support" "url" .Permalink "availableLanguage" (slice "English"))
214+
-}}
215+
{{- $pageSchema = $pageSchema | append $contactPage -}}
216+
{{- end -}}
217+
201218
{{- /* Store page */ -}}
202219
{{- if eq .Section "store" -}}
203220
{{- $store := dict "@type" "Store" "name" "CodeFryDev Store" "description" "Official store for CodeFryDev products and applications" "url" .Permalink "seller" (dict "@id" (print .Site.BaseURL "#organization")) "paymentAccepted" "Free" "currenciesAccepted" "USD" -}}
@@ -236,6 +253,10 @@
236253
{{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "History" "item" .Permalink) -}}
237254
{{- else if eq $section "press" -}}
238255
{{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "Press & Media" "item" .Permalink) -}}
256+
{{- else if eq $section "contact-us" -}}
257+
{{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "Contact us" "item" .Permalink) -}}
258+
{{- else if eq $section "faq" -}}
259+
{{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "FAQ" "item" .Permalink) -}}
239260
{{- else if eq $section "cfddc" -}}
240261
{{- if ne $path "/cfddc/" -}}
241262
{{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "CFDDC" "item" (print .Site.BaseURL "cfddc/")) -}}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{{- $headingLevel := .headingLevel | default "h2" -}}
2+
{{- $headingId := .headingId | default "faq-heading" -}}
3+
{{- $showEyebrow := .showEyebrow | default true -}}
4+
{{- $showTitle := .showTitle | default true -}}
5+
{{- $title := .title | default "Frequently asked questions" -}}
6+
{{- $scrollClass := .scrollClass | default "home-faq-scroll flex-1 min-h-0 overflow-y-auto pr-1 -mr-1 flex flex-col gap-3 pb-4" -}}
7+
{{- $questionTag := cond (eq $headingLevel "h1") "h2" "h3" -}}
8+
9+
{{- if hugo.Data.faq.faqs -}}
10+
<div class="faq-accordion w-full flex flex-col min-h-0">
11+
{{- if $showTitle -}}
12+
<div class="text-center mb-6 shrink-0">
13+
{{- if $showEyebrow -}}
14+
<p class="inline-block px-4 py-1.5 mb-4 text-sm font-medium text-slate-700 bg-white rounded-full border border-gray-200 shadow-sm m-0">FAQ</p>
15+
{{- end -}}
16+
{{- if eq $headingLevel "h1" -}}
17+
<h1 id="{{ $headingId }}" class="text-3xl md:text-4xl font-bold text-[#0B162C] tracking-tight m-0">{{ $title }}</h1>
18+
{{- else -}}
19+
<h2 id="{{ $headingId }}" class="text-3xl md:text-4xl font-bold text-[#0B162C] tracking-tight m-0">{{ $title }}</h2>
20+
{{- end -}}
21+
</div>
22+
{{- end -}}
23+
<div class="{{ $scrollClass }}">
24+
{{- range hugo.Data.faq.faqs -}}
25+
<details class="bg-white rounded-2xl border border-gray-100 shadow-sm px-6 py-4 group shrink-0">
26+
<summary class="cursor-pointer list-none flex justify-between items-center gap-4">
27+
{{- if eq $questionTag "h2" -}}
28+
<h2 class="text-[15px] font-semibold text-slate-900 m-0 flex-1 text-left">{{ .question }}</h2>
29+
{{- else -}}
30+
<h3 class="text-[15px] font-semibold text-slate-900 m-0 flex-1 text-left">{{ .question }}</h3>
31+
{{- end -}}
32+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16" class="shrink-0 text-slate-500 group-open:rotate-180 transition-transform" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
33+
</summary>
34+
<p class="text-slate-600 text-[14px] leading-relaxed mt-4 mb-0">{{ .answer }}</p>
35+
</details>
36+
{{- end -}}
37+
</div>
38+
</div>
39+
{{- end -}}

layouts/partials/header.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
{{- $pageTitle = "Press & Media - CodeFryDev | Press Kit & Contact" -}}
3939
{{- else if eq .Section "contact-us" -}}
4040
{{- $pageTitle = "Contact Us - CodeFryDev | Support & Inquiries" -}}
41+
{{- else if eq .Section "faq" -}}
42+
{{- $pageTitle = "FAQ - CodeFryDev | Help & Common Questions" -}}
4143
{{- else if eq .Section "cfddc" -}}
4244
{{- if .Params.year -}}
4345
{{- $pageTitle = printf "CFDDC %s (%s) | CodeFryDev Developer Conference" (substr .Params.year 2 2) .Params.year -}}

layouts/partials/home/breadcrumbs.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
{{- $items = $items | append (dict "name" "Press & Media" "current" true) -}}
3636
{{- else if eq $section "contact-us" -}}
3737
{{- $items = $items | append (dict "name" "Contact us" "current" true) -}}
38+
{{- else if eq $section "faq" -}}
39+
{{- $items = $items | append (dict "name" "FAQ" "current" true) -}}
3840
{{- else if eq $section "cfddc" -}}
3941
{{- if ne $path "/cfddc/" -}}
4042
{{- $items = $items | append (dict "name" "CFDDC" "url" "/cfddc/") -}}

layouts/partials/home/faq.html

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
{{- if hugo.Data.faq.faqs -}}
22
<section id="faq" data-section-label="FAQ" class="flex flex-col bg-gray-50/50 relative pt-24 pb-12 home-faq" aria-labelledby="faq-heading">
33
<div class="max-w-3xl mx-auto px-4 w-full h-full flex flex-col min-h-0">
4-
<div class="text-center mb-6 shrink-0">
5-
<p class="inline-block px-4 py-1.5 mb-4 text-sm font-medium text-slate-700 bg-white rounded-full border border-gray-200 shadow-sm m-0">FAQ</p>
6-
<h2 id="faq-heading" class="text-3xl md:text-4xl font-bold text-[#0B162C] tracking-tight m-0">Frequently asked questions</h2>
7-
</div>
8-
<div class="home-faq-scroll flex-1 min-h-0 overflow-y-auto pr-1 -mr-1 flex flex-col gap-3 pb-4">
9-
{{- range hugo.Data.faq.faqs -}}
10-
<details class="bg-white rounded-2xl border border-gray-100 shadow-sm px-6 py-4 group shrink-0">
11-
<summary class="cursor-pointer list-none flex justify-between items-center gap-4">
12-
<h3 class="text-[15px] font-semibold text-slate-900 m-0 flex-1 text-left">{{ .question }}</h3>
13-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16" class="shrink-0 text-slate-500 group-open:rotate-180 transition-transform" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
14-
</summary>
15-
<p class="text-slate-600 text-[14px] leading-relaxed mt-4 mb-0">{{ .answer }}</p>
16-
</details>
17-
{{- end -}}
18-
</div>
4+
{{ partial "faq/accordion.html" (dict "headingLevel" "h2" "headingId" "faq-heading" "showEyebrow" true "showTitle" true) }}
195
</div>
206
</section>
217
{{- end -}}

layouts/partials/home/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</summary>
5858
<ul class="site-footer__links">
5959
<li><a href="/search/">Search</a></li>
60-
<li><a href="/#faq">FAQ</a></li>
60+
<li><a href="/faq/">FAQ</a></li>
6161
<li><a href="/Updates/">Updates</a></li>
6262
<li><a href="/tncprivacy">Privacy &amp; Terms</a></li>
6363
<li><a href="/contact-us/">Contact</a></li>

layouts/partials/home/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</li>
4545

4646
<li>
47-
<a href="{{ if .IsHome }}#faq{{ else }}/#faq{{ end }}" class="{{ $linkIdle }} home-hash-link">FAQ</a>
47+
<a href="/faq/" class="{{ if eq $navActive "faq" }}{{ $linkActive }}{{ else }}{{ $linkIdle }}{{ end }}">FAQ</a>
4848
</li>
4949
</ul>
5050

@@ -165,7 +165,7 @@
165165
<li><a href="/ai/" class="block px-4 py-3 rounded-xl font-medium text-slate-800 hover:bg-slate-50 no-underline">AI Tools</a></li>
166166
<li><a href="/designlab/" class="block px-4 py-3 rounded-xl font-medium text-slate-800 hover:bg-slate-50 no-underline">Design Lab</a></li>
167167
<li><a href="/about-us/" class="block px-4 py-3 rounded-xl font-medium text-slate-800 hover:bg-slate-50 no-underline">About us</a></li>
168-
<li><a href="{{ if .IsHome }}#faq{{ else }}/#faq{{ end }}" class="block px-4 py-3 rounded-xl font-medium text-slate-800 hover:bg-slate-50 no-underline home-hash-link">FAQ</a></li>
168+
<li><a href="/faq/" class="block px-4 py-3 rounded-xl font-medium text-slate-800 hover:bg-slate-50 no-underline">FAQ</a></li>
169169
</ul>
170170
</div>
171171
</div>

0 commit comments

Comments
 (0)