-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀
worxpace
1 - Create landing page
- Loading branch information
1 parent
e8ede8a
commit ddd6f37
Showing
32 changed files
with
1,256 additions
and
37 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 @@ | ||
import { Button } from "@acme/ui/components"; | ||
import { cn } from "@acme/ui/lib"; | ||
|
||
import { theme } from "~/constants/theme"; | ||
import Logo from "./logo"; | ||
|
||
export default function Footer() { | ||
return ( | ||
<div | ||
className={cn( | ||
theme.flex.center, | ||
theme.background.navbar, | ||
"z-50 w-full p-6", | ||
)} | ||
> | ||
<Logo /> | ||
<div | ||
className={cn( | ||
theme.flex.gap2, | ||
"w-full justify-between text-muted-foreground md:ml-auto md:justify-end", | ||
)} | ||
> | ||
<Button variant="ghost" size="sm"> | ||
Privacy Policy | ||
</Button> | ||
<Button variant="ghost" size="sm"> | ||
Terms & Conditions | ||
</Button> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"use client"; | ||
|
||
import { ArrowRight } from "lucide-react"; | ||
|
||
import { Button } from "@acme/ui/components"; | ||
|
||
import { theme } from "~/constants/theme"; | ||
|
||
const Heading = () => { | ||
return ( | ||
<div className="max-w-3xl space-y-4"> | ||
<h1 className="text-3xl font-bold sm:text-5xl md:text-6xl"> | ||
Your Ideas , Documents, & Plans. Unified. Welcome to{" "} | ||
<span className="underline">Steeeee WorXpace</span> | ||
</h1> | ||
<h3 className="text-base font-medium sm:text-xl md:text-2xl"> | ||
Steeeee WorXpace is the connected workspace where <br /> | ||
better, faster work happens. | ||
</h3> | ||
|
||
<Button> | ||
Get Started <ArrowRight className={`${theme.size.icon} ml-2`} /> | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Heading; |
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,42 @@ | ||
import Image from "next/image"; | ||
|
||
import { cn } from "@acme/ui/lib"; | ||
|
||
import { theme } from "~/constants/theme"; | ||
|
||
export default function Heroes() { | ||
return ( | ||
<div className={cn(theme.flex.center, "max-w-5xl flex-col justify-center")}> | ||
<div className={theme.flex.center}> | ||
<div className="relative h-[300px] w-[300px] sm:h-[350px] sm:w-[350px] md:h-[400px] md:w-[400px] "> | ||
<Image | ||
src="/documents.png" | ||
fill | ||
className="object-contain dark:hidden" | ||
alt="Documents" | ||
/> | ||
<Image | ||
src="/documents-dark.png" | ||
fill | ||
className="hidden object-contain dark:block" | ||
alt="Documents" | ||
/> | ||
</div> | ||
<div className="relative hidden h-[400px] w-[400px] md:block"> | ||
<Image | ||
src="/reading.png" | ||
fill | ||
className="object-contain dark:hidden" | ||
alt="Reading" | ||
/> | ||
<Image | ||
src="/reading-dark.png" | ||
fill | ||
className="hidden object-contain dark:block" | ||
alt="Reading" | ||
/> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { default as Heading } from "./heading"; | ||
export { default as Heroes } from "./heroes"; | ||
export { default as Footer } from "./footer"; | ||
export { default as Navbar } from "./navbar"; |
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,31 @@ | ||
import { Poppins } from "next/font/google"; | ||
import Image from "next/image"; | ||
|
||
import { cn } from "@acme/ui/lib"; | ||
|
||
const font = Poppins({ | ||
subsets: ["latin"], | ||
weight: ["400", "600"], | ||
}); | ||
|
||
export default function Logo() { | ||
return ( | ||
<div className="hidden md:flex items-center gap-x-2"> | ||
<Image | ||
className="dark:hidden" | ||
src="/notion.svg" | ||
height="40" | ||
width="40" | ||
alt="Logo" | ||
/> | ||
<Image | ||
className="hidden dark:block" | ||
src="/notion-dark.svg" | ||
height="40" | ||
width="40" | ||
alt="Logo" | ||
/> | ||
<p className={cn("font-semibold", font.className)}>WorXpace</p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client"; | ||
|
||
import { ThemeToggle } from "@acme/ui/components"; | ||
import { useScrollTop } from "@acme/ui/hooks"; | ||
import { cn } from "@acme/ui/lib"; | ||
|
||
import { theme } from "~/constants/theme"; | ||
import Logo from "./logo"; | ||
|
||
export default function Navbar() { | ||
const scrolled = useScrollTop(); | ||
|
||
return ( | ||
<div | ||
className={cn( | ||
theme.background.navbar, | ||
theme.flex.center, | ||
"fixed top-0 z-50 w-full p-6", | ||
scrolled && "border-b shadow-sm", | ||
)} | ||
> | ||
<Logo /> | ||
<div | ||
className={cn( | ||
theme.flex.gap2, | ||
"w-full justify-between md:ml-auto md:justify-end", | ||
)} | ||
> | ||
<ThemeToggle /> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { PropsWithChildren } from "react"; | ||
|
||
import { Navbar } from "./_components"; | ||
|
||
export default function MarketingLayout({ children }: PropsWithChildren) { | ||
return ( | ||
<div className="h-full dark:bg-[#1F1F1F]"> | ||
<Navbar /> | ||
<main className="h-full pt-40">{children}</main> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Footer, Heading, Heroes } from "./_components"; | ||
|
||
const Marketing = () => { | ||
return ( | ||
<div className="min-h-full flex flex-col dark:bg-[#1F1F1F]"> | ||
<div className="flex flex-col items-center justify-center md:justify-start text-center gap-y-8 flex-1 px-6 pb-10"> | ||
<Heading /> | ||
<Heroes /> | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Marketing; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.