-
-
Notifications
You must be signed in to change notification settings - Fork 0
New pages #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
maamokun
wants to merge
5
commits into
main
Choose a base branch
from
feature/new-pages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
New pages #37
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import Link from "next/link"; | ||
| import { useTranslations } from "next-intl"; | ||
| import { | ||
| Mail, | ||
|
|
@@ -9,80 +8,70 @@ import { | |
| Gamepad2, | ||
| } from "lucide-react"; | ||
|
|
||
| import { Card, CardContent } from "@/components/ui/card"; | ||
| import { Button } from "@/components/animate-ui/components/buttons/button"; | ||
| import { ContactCard } from "@/components/ContactCard"; | ||
|
|
||
| export default function ContactPage() { | ||
| const t = useTranslations("contact"); | ||
|
|
||
| const contactCards = [ | ||
| { | ||
| icon: Mail, | ||
| title: t("mail"), | ||
| contactItems: [ | ||
| { | ||
| icon: Headset, | ||
| text: "[email protected]", | ||
| title: t("general-support"), | ||
| href: "mailto:[email protected]", | ||
| }, | ||
| { | ||
| icon: CreditCard, | ||
| text: "[email protected]", | ||
| title: t("billing-support"), | ||
| href: "mailto:[email protected]", | ||
| }, | ||
| { | ||
| icon: AlertTriangle, | ||
| text: "[email protected]", | ||
| title: t("abuse-reports"), | ||
| href: "mailto:[email protected]", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| icon: Phone, | ||
| title: t("phone"), | ||
| description: t("phone-disclaimer"), | ||
| contactItems: [ | ||
| { | ||
| icon: Phone, | ||
| text: "+81 090-9276-3628", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| icon: Gamepad2, | ||
| title: t("discord"), | ||
| contactItems: [], | ||
| actionButton: { | ||
| href: "https://discord.gg/2892hjFQn8", | ||
| label: t("join"), | ||
| }, | ||
| }, | ||
| ]; | ||
|
|
||
| return ( | ||
| <main> | ||
| <div className="flex flex-col space-y-5 justify-center items-center mt-10"> | ||
| <h1 className="text-4xl lg:text-6xl text-white font-bold"> | ||
| <main className="flex flex-col items-center justify-center w-full overflow-x-hidden"> | ||
| <div className="flex flex-col justify-center items-center pb-24 px-4 w-full max-w-7xl mx-auto gap-8 mt-10"> | ||
| <h1 className="text-4xl lg:text-6xl text-white font-bold text-center"> | ||
| {t("title")} | ||
| </h1> | ||
|
|
||
| <Card className="w-full min-h-20 bg-inherit border-primary border-4 mt-5"> | ||
| <CardContent className="flex flex-col items-center justify-center p-6 text-center text-gray-400 space-y-4"> | ||
| <div className="flex flex-row justify-center items-center space-x-5"> | ||
| <Mail className="w-12 h-12 text-primary" /> | ||
| <h3 className="text-3xl text-white">{t("mail")}</h3> | ||
| </div> | ||
| <div className="flex flex-col lg:flex-row justify-center items-center lg:space-x-8 space-y-3 lg:space-y-0"> | ||
| <div | ||
| className="flex flex-row justify-center items-center space-x-3 cursor-help" | ||
| title={t("general-support")} | ||
| > | ||
| <Headset className="w-6 h-6 text-primary" /> | ||
| <h3 className="text-xl">[email protected]</h3> | ||
| </div> | ||
| <div | ||
| className="flex flex-row justify-center items-center space-x-3 cursor-help" | ||
| title={t("billing-support")} | ||
| > | ||
| <CreditCard className="w-6 h-6 text-primary" /> | ||
| <h3 className="text-xl">[email protected]</h3> | ||
| </div> | ||
| <div | ||
| className="flex flex-row justify-center items-center space-x-3 cursor-help" | ||
| title={t("abuse-reports")} | ||
| > | ||
| <AlertTriangle className="w-6 h-6 text-primary" /> | ||
| <h3 className="text-xl">[email protected]</h3> | ||
| </div> | ||
| </div> | ||
| </CardContent> | ||
| </Card> | ||
|
|
||
| <Card className="w-full min-h-20 bg-inherit border-primary border-4"> | ||
| <CardContent className="flex flex-col items-center justify-center p-6 text-center text-gray-400 space-y-4"> | ||
| <div className="flex flex-row justify-center items-center space-x-5"> | ||
| <Phone className="w-12 h-12 text-primary" /> | ||
| <h3 className="text-3xl text-white">{t("phone")}</h3> | ||
| </div> | ||
| <div className="flex flex-row justify-center items-center space-x-5"> | ||
| <h3 className="text-xl">+81 090-9276-3628</h3> | ||
| </div> | ||
| </CardContent> | ||
| </Card> | ||
|
|
||
| <Card className="w-full min-h-20 bg-inherit border-primary border-4"> | ||
| <CardContent className="flex flex-col items-center justify-center p-6 text-center text-gray-400 space-y-4"> | ||
| <div className="flex flex-row justify-center items-center space-x-5"> | ||
| <Gamepad2 className="w-12 h-12 text-primary" /> | ||
| <h3 className="text-3xl text-white">{t("discord")}</h3> | ||
| </div> | ||
| <div className="flex flex-row justify-center items-center space-x-5"> | ||
| <Link href="https://discord.gg/2892hjFQn8"> | ||
| <Button variant="default" size="lg"> | ||
| {t("join")} | ||
| </Button> | ||
| </Link> | ||
| </div> | ||
| </CardContent> | ||
| </Card> | ||
|
|
||
| <h1 className="text-gray-400 text-center">{t("phone-disclaimer")}</h1> | ||
| <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 w-full gap-6"> | ||
| {contactCards.map((card, index) => ( | ||
| <ContactCard key={index} {...card} /> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| </main> | ||
| ); | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the array index as a
keyis not recommended as it can lead to unpredictable behavior if the array is sorted or items are added/removed. It's better to use a stable, unique identifier. In this case,card.titlewould be a great candidate for the key since the titles are unique.