-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Team-BomBomBom/feat/book_study_dashboard#β¦
β¦BBB-99 Feat: #BBB-99 μμ μ€ν°λ λμ보λ λμμΈ
- Loading branch information
Showing
19 changed files
with
729 additions
and
47 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 @@ | ||
.env |
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,47 @@ | ||
FROM node:20-alpine AS base | ||
|
||
FROM base AS deps | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
||
# Install dependencies based on the preferred package manager | ||
COPY package.json package-lock.json ./ | ||
RUN npm ci | ||
|
||
FROM base AS builder | ||
WORKDIR /app | ||
COPY --from=deps /app/node_modules ./node_modules | ||
COPY . . | ||
ENV NEXT_PUBLIC_API_SERVER_URL https://www.dev-study.com | ||
RUN npm run build | ||
|
||
FROM base AS runner | ||
WORKDIR /app | ||
|
||
ENV NODE_ENV production | ||
# Uncomment the following line in case you want to disable telemetry during runtime. | ||
# ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
RUN addgroup --system --gid 1001 nodejs | ||
RUN adduser --system --uid 1001 nextjs | ||
|
||
COPY --from=builder /app/public ./public | ||
|
||
# Set the correct permission for prerender cache | ||
RUN mkdir .next | ||
RUN chown nextjs:nodejs .next | ||
|
||
# Automatically leverage output traces to reduce image size | ||
# https://nextjs.org/docs/advanced-features/output-file-tracing | ||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ | ||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static | ||
|
||
USER nextjs | ||
|
||
EXPOSE 3000 | ||
|
||
ENV PORT 3000 | ||
|
||
# server.js is created by next build from the standalone output | ||
# https://nextjs.org/docs/pages/api-reference/next-config-js/output | ||
CMD node server.js |
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
'use client'; | ||
import { | ||
Avatar, | ||
AvatarFallback, | ||
AvatarImage | ||
} from '@/components/ui/avatar/avatar'; | ||
import { Button } from '@/components/ui/button/button'; | ||
import { Label } from '@/components/ui/label/label'; | ||
import { Textarea } from '@/components/ui/textarea/textarea'; | ||
|
||
export default function Post() { | ||
return ( | ||
<div className="flex px-4 py-6 md:px-6 lg:py-16 md:py-12 "> | ||
<article className="prose prose-gray mx-auto dark:prose-invert w-[600px]"> | ||
<div className="space-y-2 not-prose mb-3"> | ||
<h1 className="text-4xl font-extrabold tracking-tight lg:text-5xl lg:leading-[3.5rem]"> | ||
μ€ν°λ μ μ₯ μ νλ | ||
</h1> | ||
<div className="flex items-center gap-4"> | ||
<div className="flex items-center gap-2"> | ||
<Avatar className="w-8 h-8 border"> | ||
<AvatarImage src="/placeholder-user.jpg" alt="@shadcn" /> | ||
<AvatarFallback>JD</AvatarFallback> | ||
</Avatar> | ||
<div className="text-sm font-medium">λ©ν </div> | ||
</div> | ||
<div className="text-muted-foreground text-sm">2024. 08. 13</div> | ||
</div> | ||
</div> | ||
<p>1. 9μ 1λΆμ 9μκ° μλλ€</p> | ||
<p>2. μ€νμ μμ§μ λ¬Ένλ μνμ </p> | ||
<p>3. μ‘λ΄μ λ§μ΄ λλλ κ²μ΄ κ²½μλ ₯μ΄λ€</p> | ||
<p>4. ν΄κ°λ ν΄κ·Ό μ λμΉμ£Όλ λλ΄μ νμ§ μλλ€</p> | ||
<p>5. λ³΄κ³ λ ν©νΈμ κΈ°λ°νλ€</p> | ||
<p>6. νμμ 100% μμ¨μ μΌλ‘ μ°Έμνλ€</p> | ||
<br></br> | ||
<h2 className="text-lg">λκΈ</h2> | ||
<div className="space-y-4 mt-3"> | ||
<div className="flex items-start gap-4"> | ||
<Avatar className="w-10 h-10 border"> | ||
<AvatarImage src="/placeholder-user.jpg" alt="@shadcn" /> | ||
<AvatarFallback>JD</AvatarFallback> | ||
</Avatar> | ||
<div className="grid gap-1"> | ||
<div className="font-medium">μ₯λ―Όμ</div> | ||
<div className="text-muted-foreground"> | ||
μ κ²©μ£Όλ‘ ν κ² κ°μλ° κ°λ₯ν κΉμ? | ||
</div> | ||
</div> | ||
</div> | ||
<div className="flex items-start gap-4"> | ||
<Avatar className="w-10 h-10 border"> | ||
<AvatarImage src="/placeholder-user.jpg" alt="@shadcn" /> | ||
<AvatarFallback>JD</AvatarFallback> | ||
</Avatar> | ||
<div className="grid gap-1"> | ||
<div className="font-medium">μ΄νμ’ </div> | ||
<div className="text-muted-foreground">νμΈνμ΅λλ€!</div> | ||
</div> | ||
</div> | ||
<div className="flex items-start gap-4"> | ||
<Avatar className="w-10 h-10 border"> | ||
<AvatarImage src="/placeholder-user.jpg" alt="@shadcn" /> | ||
<AvatarFallback>JD</AvatarFallback> | ||
</Avatar> | ||
<div className="grid gap-1"> | ||
<div className="font-medium">μ‘μΉν</div> | ||
<div className="text-muted-foreground">λ΅ νμΈνμ΅λλ€</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="mt-8"> | ||
<form className="grid gap-4"> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="comment">λκΈ μΆκ°...</Label> | ||
<Textarea id="comment" placeholder="..." rows={3} /> | ||
</div> | ||
<div className="flex justify-end "> | ||
<Button | ||
type="submit" | ||
className="hover:bg-gray-600 bg-gray-900 text-white" | ||
> | ||
μμ± | ||
</Button> | ||
</div> | ||
</form> | ||
</div> | ||
</article> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.