Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions public/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { getTranslations } from "next-intl/server";
import { Link } from "@/i18n/navigation";
import { NewsletterForm } from "@/components/NewsletterForm";

const DISCORD_URL = "https://discord.gg/chEmpGdTtZ";

export async function Footer() {
const t = await getTranslations("footer");
const nav = await getTranslations("nav");
Expand Down Expand Up @@ -88,6 +90,11 @@ export async function Footer() {
<div>
<h4 className="font-semibold mb-4 text-slate-300">{t("community")}</h4>
<ul className="space-y-2 text-sm">
<li>
<a href={DISCORD_URL} target="_blank" rel="noopener noreferrer" className="text-slate-400 hover:text-white transition-colors">
{nav("discord")}
</a>
</li>
<li>
<a href="https://github.com/PerryTS/perry/issues" target="_blank" rel="noopener noreferrer" className="text-slate-400 hover:text-white transition-colors">
{t("issues")}
Expand Down
27 changes: 26 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { useParams } from "next/navigation";
import { Link } from "@/i18n/navigation";
import { locales, localeNames, type Locale } from "@/i18n/routing";

const DISCORD_URL = "https://discord.gg/chEmpGdTtZ";

export function Header() {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const t = useTranslations("nav");
Expand All @@ -22,7 +24,7 @@ export function Header() {
<span className="text-xl font-bold gradient-text">Perry</span>
</Link>

<div className="hidden md:flex items-center gap-8">
<div className="hidden md:flex items-center gap-5 lg:gap-8">
<Link
href="/showcase"
className="text-slate-400 hover:text-white transition-colors"
Expand Down Expand Up @@ -55,6 +57,21 @@ export function Header() {
>
{t("docs")}
</a>
<a
href={DISCORD_URL}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 text-slate-400 hover:text-white transition-colors"
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
aria-hidden="true"
alt=""
className="w-5 h-5"
src="/discord.svg"
/>
{t("discord")}
</a>
<a
href="https://github.com/PerryTS/perry"
target="_blank"
Expand Down Expand Up @@ -170,6 +187,14 @@ export function Header() {
>
{t("docs")}
</a>
<a
href={DISCORD_URL}
target="_blank"
rel="noopener noreferrer"
className="text-slate-400 hover:text-white transition-colors"
>
{t("discord")}
</a>
<a
href="https://github.com/PerryTS/perry"
className="text-slate-400 hover:text-white transition-colors"
Expand Down
1 change: 1 addition & 0 deletions src/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Überblick",
"pricing": "Preise",
"docs": "Dokumentation",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Overview",
"pricing": "Pricing",
"docs": "Docs",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Resumen",
"pricing": "Precios",
"docs": "Documentación",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Aperçu",
"pricing": "Tarifs",
"docs": "Documentation",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Gambaran Umum",
"pricing": "Harga",
"docs": "Dokumentasi",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Panoramica",
"pricing": "Prezzi",
"docs": "Documentazione",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "概要",
"pricing": "料金",
"docs": "ドキュメント",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "개요",
"pricing": "요금",
"docs": "문서",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Visão geral",
"pricing": "Preços",
"docs": "Documentação",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "ภาพรวม",
"pricing": "ราคา",
"docs": "เอกสาร",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Genel Bakış",
"pricing": "Fiyatlandırma",
"docs": "Dokümantasyon",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "Tổng quan",
"pricing": "Bảng giá",
"docs": "Tài liệu",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down
1 change: 1 addition & 0 deletions src/messages/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"overview": "概览",
"pricing": "价格",
"docs": "文档",
"discord": "Discord",
"github": "GitHub"
},
"hero": {
Expand Down