-
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.
- Loading branch information
1 parent
8c26eec
commit ac5fc9e
Showing
35 changed files
with
303 additions
and
138 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
20 changes: 20 additions & 0 deletions
20
src/app/(pages)/dashboard/_components/buttons/github-link-button.tsx
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,20 @@ | ||
import { Button } from "@/components/ui/button"; | ||
import { Github } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
export default function GithublinkButton() { | ||
return ( | ||
<Link | ||
target="_blank" | ||
href={"https://github.com/rohitmondal03/Bio-Sync"} | ||
> | ||
<Button | ||
type="button" | ||
variant={"default"} | ||
className={`font-bold`} | ||
> | ||
Github <Github className={`ml-3 scale-90`} /> | ||
</Button> | ||
</Link> | ||
) | ||
} |
33 changes: 33 additions & 0 deletions
33
src/app/(pages)/dashboard/_components/buttons/preview-button.tsx
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,33 @@ | ||
import dynamic from "next/dynamic"; | ||
import { ScreenShare } from "lucide-react"; | ||
import classNames from "classnames"; | ||
|
||
const PreviewScreen = dynamic(() => import("../preview-screen")); | ||
const Button = dynamic(() => import("@/components/ui/button").then((mod) => mod.Button)) | ||
const Sheet= dynamic(() => import("@/components/ui/sheet").then((mod) => mod.Sheet)) | ||
const SheetContent= dynamic(() => import("@/components/ui/sheet").then((mod) => mod.SheetContent)) | ||
const SheetTrigger= dynamic(() => import("@/components/ui/sheet").then((mod) => mod.SheetTrigger)) | ||
|
||
|
||
export default function PreviewButton() { | ||
return ( | ||
<Sheet> | ||
<SheetTrigger asChild> | ||
<Button | ||
type="button" | ||
variant={"default"} | ||
className={`font-bold`} | ||
> | ||
Preview <ScreenShare className={`ml-3 scale-90`} /> | ||
</Button> | ||
</SheetTrigger> | ||
|
||
<SheetContent className={classNames({ | ||
"bg-black": true, | ||
"rounded-l-xl": true, | ||
})}> | ||
<PreviewScreen /> | ||
</SheetContent> | ||
</Sheet> | ||
) | ||
} |
27 changes: 27 additions & 0 deletions
27
src/app/(pages)/dashboard/_components/buttons/publish-button.tsx
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,27 @@ | ||
"use client" | ||
|
||
import { Send } from "lucide-react"; | ||
import dynamic from "next/dynamic"; | ||
import { useFormStatus } from "react-dom"; | ||
|
||
const Button= dynamic(() => import("@/components/ui/button").then((mod) => mod.Button)) | ||
|
||
|
||
export default function PublishBioButton() { | ||
const { pending } = useFormStatus(); | ||
|
||
return ( | ||
<Button | ||
type="submit" | ||
variant={"default"} | ||
className={`font-bold`} | ||
> | ||
{pending ? | ||
"Publishing..." | ||
: ( | ||
<>Publish <Send className={`ml-3 scale-90`} /></> | ||
) | ||
} | ||
</Button> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import { DialogContent, DialogHeader } from "@/components/ui/dialog"; | ||
import classNames from "classnames"; | ||
|
||
export default function PreviewScreen() { | ||
return ( | ||
<DialogContent className={classNames({ | ||
"w-screen border-zinc-500 border-2": true, | ||
})}> | ||
<DialogHeader> | ||
|
||
</DialogHeader> | ||
</DialogContent> | ||
<div className="text-white w-[100rem]"> | ||
Preview screen | ||
</div> | ||
) | ||
} |
File renamed without changes.
Oops, something went wrong.