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

💄 redesign page, use vector maps #19

Merged
merged 15 commits into from
Oct 22, 2024
Merged
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SCAVENGER_HUNT_DISABLED=true
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"singleQuote": true,
"jsxSingleQuote": false,
"endOfLine": "lf",
"singleAttributePerLine": true
"singleAttributePerLine": true,
"plugins": ["prettier-plugin-tailwindcss"]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@
"editor.formatOnPaste": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.preferences.importModuleSpecifier": "non-relative",
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"other": "on",
"comments": "off",
"strings": "on"
}
}
Binary file modified bun.lockb
Binary file not shown.
20 changes: 20 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "styles/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
303 changes: 0 additions & 303 deletions components/TourMap.js

This file was deleted.

44 changes: 44 additions & 0 deletions components/guide/glossaryAccordion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/components/ui/accordion'
import { COMPONENTS } from '@/components/ui/markdownComponents'
import ReactMarkdown from 'react-markdown'

export interface GlossaryItem {
title: string
content: string
}

interface GlossaryAccordionProps {
glossary: GlossaryItem[]
}

export default function GlossaryAccordion({
glossary,
}: GlossaryAccordionProps) {
return (
<Accordion
type="single"
collapsible
>
{glossary.map((item) => (
<AccordionItem
value={item.title}
key={item.title}
>
<AccordionTrigger className="max-w-full py-6">
<div className="truncate pr-6">{item.title}</div>
</AccordionTrigger>
<AccordionContent className="text-base">
<ReactMarkdown components={COMPONENTS}>
{item.content}
</ReactMarkdown>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
)
}
Loading