diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 0000000..53ca478 --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,21 @@ +name: Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + test: + # if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + # Optional + LANGUAGE: Korean \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 2c247b9..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: AI Code Reviewer - -on: - pull_request: - types: - - opened - - synchronize -permissions: write-all -jobs: - review: - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - - name: AI Code Reviewer - uses: 3rdpage/ai-code-reviewer@main - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4" - exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas diff --git a/app/@home/screen/RootScreen.tsx b/app/@home/screen/RootScreen.tsx new file mode 100644 index 0000000..d26b259 --- /dev/null +++ b/app/@home/screen/RootScreen.tsx @@ -0,0 +1,23 @@ +import { Button } from '@/app.components/ui/button'; +import Image from 'next/image'; +import Link from 'next/link'; + +type Props = {}; + +const RootScreen = () => { + return ( +
+
+

장타로 단타로

+

매일 제공되는 주식 및 코인 시장 분석을 타로 카드를 통해 예측합니다.

+

투자의 흐름을 타로로 확인해보세요.

+
+ 장타로 단타로 + +
+ ); +}; + +export default RootScreen; diff --git a/app/layout.tsx b/app/layout.tsx index 2ec7808..b1440ab 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,14 +1,15 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; -import "./globals.css"; +import type { Metadata } from 'next'; +import { Inter } from 'next/font/google'; +import './globals.css'; -const inter = Inter({ subsets: ["latin"] }); +const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { - title: "장타로 단타로", - description: "'장타로 단타로'에서는 매일 제공되는 주식 및 코인 시장 분석을 타로 카드를 통해 예측합니다. 투자의 흐름을 타로로 확인해보세요.", - keywords: "타로 점, 주식 예측, 코인 타로, 투자 분석, 금융 타로 서비스, 매일 타로 점", - authors: [{ name: "세번째페이지", url: "https://github.com/3rdpage" }], + title: '장타로 단타로', + description: + "'장타로 단타로'에서는 매일 제공되는 주식 및 코인 시장 분석을 타로 카드를 통해 예측합니다. 투자의 흐름을 타로로 확인해보세요.", + keywords: '타로 점, 주식 예측, 코인 타로, 투자 분석, 금융 타로 서비스, 매일 타로 점', + authors: [{ name: '세번째페이지', url: 'https://github.com/3rdpage' }], }; export default function RootLayout({ diff --git a/app/page.tsx b/app/page.tsx index fb6d28c..5e55a99 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,8 +1,11 @@ +import RootScreen from './@home/screen/RootScreen'; -export default function Home() { +const RootPage = () => { return ( -
- +
+
); -} +}; + +export default RootPage; diff --git a/next.config.mjs b/next.config.mjs index 4678774..20a9b05 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + images: { + remotePatterns: [{ hostname: 'placecats.com' }], + }, +}; export default nextConfig; diff --git a/tailwind.config.ts b/tailwind.config.ts index a3e0d2a..19aac9a 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -3,7 +3,7 @@ import type { Config } from "tailwindcss" const config = { darkMode: ["class"], content: [ - './app/**/*.{ts,tsx}', + './**/*.{ts,tsx}', ], prefix: "", theme: {