chore: Updated shadcn-ui template
a0feeed3
1 file(s) · +10 −14
| 30 | 30 | <h1 className="text-5xl font-black">bhvr</h1> |
|
| 31 | 31 | <h2 className="text-2xl font-bold">Bun + Hono + Vite + React</h2> |
|
| 32 | 32 | <p>A typesafe fullstack monorepo</p> |
|
| 33 | + | <div className='flex items-center gap-4'> |
|
| 33 | 34 | <Button |
|
| 34 | 35 | onClick={sendRequest} |
|
| 35 | 36 | > |
|
| 36 | 37 | Call API |
|
| 37 | 38 | </Button> |
|
| 39 | + | <Button |
|
| 40 | + | variant='secondary' |
|
| 41 | + | asChild |
|
| 42 | + | > |
|
| 43 | + | <a target='_blank' href="https://bhvr.dev"> |
|
| 44 | + | Docs |
|
| 45 | + | </a> |
|
| 46 | + | </Button> |
|
| 47 | + | </div> |
|
| 38 | 48 | {data && ( |
|
| 39 | 49 | <pre className="bg-gray-100 p-4 rounded-md"> |
|
| 40 | 50 | <code> |
|
| 43 | 53 | </code> |
|
| 44 | 54 | </pre> |
|
| 45 | 55 | )} |
|
| 46 | - | <pre className="bg-gray-100 p-4 rounded-md"> |
|
| 47 | - | <code> |
|
| 48 | - | {`. |
|
| 49 | - | ├── client/ # React frontend |
|
| 50 | - | ├── server/ # Hono backend |
|
| 51 | - | ├── shared/ # Shared TypeScript definitions |
|
| 52 | - | │ └── src/types/ # Type definitions used by both client and server |
|
| 53 | - | └── package.json # Root package.json with workspaces |
|
| 54 | - | `} |
|
| 55 | - | </code> |
|
| 56 | - | </pre> |
|
| 57 | - | <p className="text-gray-600"> |
|
| 58 | - | Click the beaver to learn more |
|
| 59 | - | </p> |
|
| 60 | 56 | </div> |
|
| 61 | 57 | ) |
|
| 62 | 58 | } |
|