Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🕴️ Update project header #35

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/images/arrowLeftIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion app/waves/[waveId]/applications/[applicationId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { type ReactNode } from "react";
import Image from "next/image";
import Link from "next/link";
import { notFound } from "next/navigation";
import { getApplicationWithComments } from "@/drizzle/queries/applications";

import { cn } from "@/lib/cn";
import { parseMarkdown } from "@/lib/parseMarkdown";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { CategoryBadge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import arrowLeftIcon from "@/app/images/arrowLeftIcon.svg";
import projectPlaceholder from "@/app/images/projectPlaceholder.png";

import { AddCommentForm } from "./addCommentForm/addCommentForm";
Expand All @@ -30,7 +34,18 @@ export default async function Application({

return (
<div className="flex w-full flex-col gap-4">
<h2 className="text-2xl">{application.name}</h2>
<div className="mb-8 flex items-center justify-between">
<div className="flex items-center gap-4">
<Button size="icon" variant="outline" className="text-sm" asChild>
<Link href={`/waves/${application.waveId}`}>
<Image src={arrowLeftIcon} alt="" />
</Link>
</Button>
<h2 className="text-2xl font-bold">{application.name}</h2>
<CategoryBadge>Category</CategoryBadge>
</div>
<Button className="px-16">Vote</Button>
</div>
<div className="grid grid-cols-2 rounded-3xl border">
<div className="flex flex-col gap-6 p-10">
<ContentRow label="User submitting">
Expand Down
Loading