Skip to content

Commit

Permalink
💄 redesign page, use vector maps (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildmodeOne authored Oct 22, 2024
1 parent 7fe2a9d commit 273db9f
Show file tree
Hide file tree
Showing 76 changed files with 3,837 additions and 2,631 deletions.
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

0 comments on commit 273db9f

Please sign in to comment.