Skip to content
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

Feature: FAQ #102

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
21 changes: 21 additions & 0 deletions src/components/cards/question-card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Card } from "../ui/card";

interface Props {
question: string;
answer: string;
Icon?: any;
}

export const QuestionCard = ({ question, answer, Icon }: Props) => {
return (
<Card className="flex flex-col gap-2 p-4">
<div className="flex items-center gap-4">
<Card>{Icon && <Icon className="h-10 w-10 p-2" />}</Card>
<h1 className="text-lg font-semibold">{question}</h1>
</div>
<div>
<p className="text-neutral-500 dark:text-neutral-400">{answer}</p>
</div>
</Card>
);
};
27 changes: 27 additions & 0 deletions src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
IconHeart,
IconHome2,
IconId,
IconMapQuestion,
IconNote,
IconProgress,
IconSettings,
Expand All @@ -39,6 +40,10 @@ export const miscNavigation = [
{ name: "Walnuts", href: "/island/walnuts", icon: IconProgress },
{ name: "Secret Notes", href: "/notes", icon: IconNote },
{ name: "Journal Scraps", href: "/island/scraps", icon: IconBook },
];

export const siteNavigation = [
{ name: "FAQ", href: "/faq", icon: IconMapQuestion },
{ name: "Account Settings", href: "/account", icon: IconSettings },
];

Expand Down Expand Up @@ -209,6 +214,28 @@ export function Sidebar({ className }: SidebarProps) {
</Button>
))}
</div>

<SidebarCategory>Site</SidebarCategory>
jacc marked this conversation as resolved.
Show resolved Hide resolved
<div className="space-y-1">
{siteNavigation.map((item) => (
<Button
jacc marked this conversation as resolved.
Show resolved Hide resolved
key={item.href}
variant={pathname === item.href ? "secondary" : "ghost"}
className={cn(
"w-full justify-start",
item.href === pathname
? ""
: "text-neutral-600 dark:text-neutral-400",
)}
asChild
>
<Link href={item.href}>
<item.icon className="mr-2 h-4 w-4" aria-hidden="true" />
{item.name}
</Link>
</Button>
))}
</div>
</nav>
</div>
);
Expand Down
68 changes: 68 additions & 0 deletions src/pages/faq.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import { QuestionCard } from "@/components/cards/question-card";
import { IconPencil } from "@tabler/icons-react";
import Head from "next/head";

const faq = [
{
question: "Can I edit my saves with stardew.app?",
answer:
"stardew.app is a perfection checklist, not a save file editor. While we allow you to upload your save files to the site, we do not store any more data than is needed to update you on your perfection status. We do not store your save file after upload and unfortunately cannot retrieve it for you.",
icon: IconPencil,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably just pull the icon out to the map. Seems unlikely there'd be a need for alternate icons.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honestly thought it would be fun to have different questions distinguishing across the questions, but take a look at them and let me know

},
{
question: "How do I upload my save file?",
answer:
"To upload your save file, click on the 'Upload Save' button on the homepage. You will be prompted to select your save file from your computer. Once you have selected your save file, you will be able to see your progress on the homepage.",
icon: IconPencil,
},
{
question: "Can I track multiple save files?",
answer:
"Yes! You can track multiple save files by uploading each save file separately. You can switch between save files by clicking on the 'Switch Save' button on the homepage.",
icon: IconPencil,
},
];

export default function FAQ() {
return (
<>
<Head>
jacc marked this conversation as resolved.
Show resolved Hide resolved
<meta
name="description"
content="Track and manage items needed for bundles in Stardew Valley's Community Center. Keep tabs on the items you've collected and monitor your progress towards completing the bundles. Discover what items are still needed to fulfill each bundle requirement and restore the Community Center to its former glory."
/>
<meta
name="og:description"
content="Track and manage items needed for bundles in Stardew Valley's Community Center. Keep tabs on the items you've collected and monitor your progress towards completing the bundles. Discover what items are still needed to fulfill each bundle requirement and restore the Community Center to its former glory."
/>
<meta
name="twitter:description"
content="Track and manage items needed for bundles in Stardew Valley's Community Center. Keep tabs on the items you've collected and monitor your progress towards completing the bundles. Discover what items are still needed to fulfill each bundle requirement and restore the Community Center to its former glory."
/>
<meta
name="keywords"
content="stardew valley bundle tracker, stardew valley community center bundles, stardew valley bundle items, stardew valley bundle progress, stardew valley community center restoration, stardew valley gameplay tracker, stardew valley, stardew, bundle tracker, stardew valley, stardew, stardew checkup, stardew bundles, stardew 100% completion, stardew perfection tracker, stardew, valley"
/>
</Head>
<main
className={`flex min-h-screen border-neutral-200 px-5 pb-8 pt-2 dark:border-neutral-800 md:border-l md:px-8`}
>
<div className="mx-auto mt-4 space-y-4">
<h1 className="ml-1 text-2xl font-semibold text-gray-900 dark:text-white">
Frequently Asked Questions about stardew.app!
</h1>
<div className="columns-3 gap-8">
{faq.map((item, index) => (
<QuestionCard
key={index}
question={item.question}
answer={item.answer}
Icon={item.icon}
/>
))}
</div>
</div>
</main>
</>
);
}