Skip to content

Commit

Permalink
on to preview section
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmondal03 committed Dec 21, 2023
1 parent 300f241 commit b6d0fdd
Show file tree
Hide file tree
Showing 24 changed files with 425 additions and 222 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"prisma": "^5.7.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.12.0",
"tailwind-merge": "^2.1.0",
"tailwindcss-animate": "^1.0.7",
"vaul": "^0.8.0",
Expand Down
6 changes: 5 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ model UserBio {
twitterLink String?
linkedinLink String?
portfolioLink String?
youtubeLink String?
discordLink String?
hashnodeLink String?
mediumLink String?
devdotToLink String?
projectLink String[]
// publishedOrDraft isPublished
displayProfile Boolean
@@unique([id, email, githubLink, twitterLink, linkedinLink, portfolioLink, projectLink])
Expand Down
1 change: 1 addition & 0 deletions src/actions/submit-user-bio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { db } from "@/server/db";
import { redirect } from "next/navigation";
import type { TUserBio } from "types";


export async function submitUserBio(data: TUserBio) {
Expand Down
2 changes: 2 additions & 0 deletions src/app/(pages)/(landing-page)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Metadata } from "next";

import type { ILayout } from "types";


export const metadata: Metadata = {
title: "Bio Sync",
Expand Down
21 changes: 21 additions & 0 deletions src/app/(pages)/dashboard/_components/buttons/github-button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Button } from "@/components/ui/button";
import { GithubIcon } from "lucide-react";
import Link from "next/link";

export default function GithubLinkButton() {
return (
<Link
target="_blank"
href={"https://github.com/rohitmondal03/bio-sync"}
className="hidden lg:block"
>
<Button
variant={"default"}
type="button"
className="btn w-full"
>
GitHub <GithubIcon className="icon" />
</Button>
</Link>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function PreviewButton() {
<Button
type="button"
variant={"default"}
className="btn"
className="btn block lg:hidden"
>
Preview <ScreenShare className="icon" />
</Button>
Expand Down
Loading

0 comments on commit b6d0fdd

Please sign in to comment.