-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
15 changed files
with
107 additions
and
46 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import Header from "@/components/layout/header"; | ||
import ButtonGradient from "@/components/svg/button-gradient"; | ||
|
||
export default function Home() { | ||
return ( | ||
<main> | ||
<h1>Nextjs 14 SaaS landing page</h1> | ||
<div className="overflow-hidden pt-[4.75rem] lg:pt-[5.25rem]"> | ||
<Header /> | ||
</div> | ||
<ButtonGradient /> | ||
</main> | ||
); | ||
} |
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,43 @@ | ||
import { cn } from "@/lib/utils"; | ||
import ButtonSvg from "@/components/svg/button-svg"; | ||
import React from "react"; | ||
import Link from "next/link"; | ||
|
||
type Props = { | ||
className: string; | ||
href?: string; | ||
children: React.ReactNode; | ||
onClick?: () => void; | ||
px?: string; | ||
white?: boolean; | ||
}; | ||
|
||
const Button = ({ className, href, children, onClick, px = "px-7", white = false }: Props) => { | ||
const buttonClasses = cn( | ||
`button relative inline-flex items-center justify-center h-11`, | ||
`transition-colors hover:text-color-1`, | ||
px, | ||
white ? "text-n-8" : "text-n-1", | ||
className || "" | ||
); | ||
|
||
const spanClasses = cn("relative z-10"); | ||
|
||
const renderButton = () => ( | ||
<button className={buttonClasses}> | ||
<span className={spanClasses}>{children}</span> | ||
{ButtonSvg(white)} | ||
</button> | ||
); | ||
|
||
const renderLink = () => ( | ||
<Link href={href} className={buttonClasses}> | ||
<span className={spanClasses}>{children}</span> | ||
{ButtonSvg(white)} | ||
</Link> | ||
); | ||
|
||
return href ? renderLink() : renderButton(); | ||
}; | ||
|
||
export default Button; |
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,9 @@ | ||
import React from "react"; | ||
|
||
type Props = {}; | ||
|
||
const Header = (props: Props) => { | ||
return <div>Header</div>; | ||
}; | ||
|
||
export default Header; |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
6 changes: 3 additions & 3 deletions
6
public/assets/svg/section-svg.tsx → components/svg/section-svg.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
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,6 @@ | ||
import { clsx, type ClassValue } from "clsx"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
export function cn(...inputs: ClassValue[]) { | ||
return twMerge(clsx(inputs)); | ||
} |
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