diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 00000000..0e41c4c6 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,22 @@ +name: Vercel Production Deployment + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches: + - main +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} diff --git a/app/(sub-page)/components/navigation-bar.tsx b/app/(sub-page)/components/navigation-bar.tsx index 840ec575..34efdf10 100644 --- a/app/(sub-page)/components/navigation-bar.tsx +++ b/app/(sub-page)/components/navigation-bar.tsx @@ -5,6 +5,7 @@ import SideNavigationBar from './side-navigation-bar'; import UserInfoNavigator from '@/app/ui/user/user-info-navigator/user-info-navigator'; import SignButtonGroup from '@/app/ui/user/user-info-navigator/sign-button-group'; import Link from 'next/link'; +import NavigationItems from './navigation-items'; export default function NavigationBar() { return ( @@ -13,7 +14,10 @@ export default function NavigationBar() { main-logo - } content={
콘텐츠
} footer={} /> + } content={} footer={} /> +
+ + ); diff --git a/app/(sub-page)/components/navigation-items.tsx b/app/(sub-page)/components/navigation-items.tsx new file mode 100644 index 00000000..51636d32 --- /dev/null +++ b/app/(sub-page)/components/navigation-items.tsx @@ -0,0 +1,45 @@ +import { auth } from '@/app/business/services/user/user.query'; +import Button from '@/app/ui/view/atom/button/button'; +import Link from 'next/link'; +import { ChevronRightIcon } from 'lucide-react'; + +export default async function NavigationItems() { + const userInfo = await auth(); + + return ( +
+ {userInfo ? ( + <> + + + + ) : ( + + )} + + +
+ ); +} + +interface NavigationItemProps { + href: string; + label: string; +} + +export function NavigationItem({ href, label }: NavigationItemProps) { + return ( + +