-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add some example ui components using shadcn/ui
- Loading branch information
Showing
24 changed files
with
727 additions
and
199 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 🌥️ CI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-nestjs: | ||
name: 🐯 Deploy NestJS App | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🛎️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: 📥 Install Dependencies | ||
run: pnpm install | ||
|
||
- name: 🏗️ Build | ||
run: pnpm build | ||
|
||
- name: 🎈 Setup Fly | ||
uses: superfly/flyctl-actions/[email protected] | ||
|
||
- name: 🚀 Deploy | ||
run: flyctl deploy --config ./apps/nestjs/fly.toml --dockerfile ./apps/nestjs/Dockerfile --remote-only --build-arg COMMIT_SHA=${{ github.sha }} | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 🌥️ CI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-remix: | ||
name: 💿 Deploy Remix App | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🛎️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: 📥 Install Dependencies | ||
run: pnpm install | ||
|
||
- name: 🏗️ Build | ||
run: pnpm build | ||
|
||
- name: 🎈 Setup Fly | ||
uses: superfly/flyctl-actions/[email protected] | ||
|
||
- name: 🚀 Deploy | ||
run: flyctl deploy --config ./apps/remix/fly.toml --dockerfile ./apps/remix/Dockerfile --remote-only --build-arg COMMIT_SHA=${{ github.sha }} | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |
This file contains 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 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 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,20 +1,28 @@ | ||
import { Card } from '@repo/ui' | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
const meta: Meta<typeof Card> = { | ||
component: Card, | ||
const meta: Meta<typeof Card.Root> = { | ||
component: Card.Root, | ||
} | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof Card> | ||
|
||
export const Primary: Story = { | ||
render: props => <Card {...props}>Hello</Card>, | ||
name: 'Card', | ||
args: { | ||
children: 'Some card content!', | ||
title: 'Card Title', | ||
href: '#some-link', | ||
}, | ||
name: 'card', | ||
render: () => ( | ||
<Card.Root> | ||
<Card.Header> | ||
<Card.Title>Card Title</Card.Title> | ||
<Card.Description>Card Description</Card.Description> | ||
</Card.Header> | ||
<Card.Content> | ||
<p>Card Content</p> | ||
</Card.Content> | ||
<Card.Footer> | ||
<p>Card Footer</p> | ||
</Card.Footer> | ||
</Card.Root> | ||
), | ||
} |
This file contains 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 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 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,46 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
/* Based on Kent's repo: https://github.com/kentcdodds/kentcdodds.com/tree/main */ | ||
@layer utilities { | ||
.bg-primary { | ||
@apply bg-white dark:bg-gray-900; | ||
} | ||
|
||
.bg-secondary { | ||
@apply bg-gray-100 dark:bg-gray-800; | ||
} | ||
|
||
.bg-alt { | ||
@apply bg-gray-200 dark:bg-gray-700; | ||
} | ||
|
||
.bg-inverse { | ||
@apply bg-black dark:bg-white; | ||
} | ||
|
||
.border-primary { | ||
@apply border-gray-900 dark:border-white; | ||
} | ||
|
||
.border-secondary { | ||
@apply border-gray-200 dark:border-gray-600; | ||
} | ||
|
||
.text-primary { | ||
@apply text-black dark:text-white; | ||
} | ||
|
||
.text-secondary { | ||
@apply text-gray-500 dark:text-slate-500; | ||
} | ||
|
||
.text-inverse { | ||
@apply text-white dark:text-black; | ||
} | ||
|
||
.text-prose { | ||
@apply prose dark:prose-invert; | ||
} | ||
} |
Oops, something went wrong.