This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
33 changed files
with
364 additions
and
237 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
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,7 @@ | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/t3-oss/create-t3-turbo/discussions | ||
url: https://github.com/saeidex/ubus/discussions | ||
about: Ask questions and discuss with other community members | ||
- name: Feature request | ||
url: https://github.com/t3-oss/create-t3-turbo/discussions/new?category=ideas | ||
url: https://github.com/saeidex/ubus/discussions/new?category=ideas | ||
about: Feature requests should be opened as discussions |
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.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { signOut } from "@ubus/auth"; | ||
import { Button } from "@ubus/ui/button"; | ||
|
||
export const Dashboard = () => { | ||
return ( | ||
<div> | ||
Dashboard | ||
<div> | ||
<form> | ||
<Button | ||
formAction={async () => { | ||
"use server"; | ||
await signOut(); | ||
}} | ||
> | ||
Sign out | ||
</Button> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
apps/nextjs/src/app/_components/landing-page/header/index.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,37 @@ | ||
import Link from "next/link"; | ||
import { IconMenu } from "@tabler/icons-react"; | ||
|
||
import { Button } from "@ubus/ui/button"; | ||
|
||
import { Logo } from "./logo"; | ||
import { NavBar } from "./navbar"; | ||
|
||
export const Header = () => { | ||
return ( | ||
<nav className="container border-outline"> | ||
<div className="mx-auto flex h-24 flex-wrap items-center justify-between"> | ||
<Link href="/"> | ||
<Logo /> | ||
</Link> | ||
<div className="flex gap-1.5 md:order-2"> | ||
<Link href={{ pathname: "/login" }}> | ||
<Button | ||
className="hidden text-on-surface hover:text-primary md:block" | ||
variant="link" | ||
> | ||
Login | ||
</Button> | ||
</Link> | ||
<Link href={{ pathname: "/signup" }}> | ||
<Button className="hidden md:block">Get started</Button> | ||
</Link> | ||
<Button className="md:hidden"> | ||
<span className="sr-only">Open main menu</span> | ||
<IconMenu /> | ||
</Button> | ||
</div> | ||
<NavBar /> | ||
</div> | ||
</nav> | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
apps/nextjs/src/app/_components/landing-page/header/logo.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,24 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
|
||
import { useThemeBasedValue } from "@ubus/hooks"; | ||
|
||
export const Logo = () => { | ||
const logoSrc = useThemeBasedValue("ubus.svg", "ubus-dark.svg"); | ||
|
||
return ( | ||
<div className="flex items-center space-x-3 rtl:space-x-reverse"> | ||
<Image | ||
src={logoSrc} | ||
width={32} | ||
height={24} | ||
className="h-8 w-6" | ||
alt="ubus logo" | ||
/> | ||
<span className="self-center whitespace-nowrap text-2xl font-semibold dark:text-white"> | ||
UBus | ||
</span> | ||
</div> | ||
); | ||
}; |
49 changes: 49 additions & 0 deletions
49
apps/nextjs/src/app/_components/landing-page/header/navbar.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,49 @@ | ||
"use client"; | ||
|
||
import Link from "next/link"; | ||
import { usePathname } from "next/navigation"; | ||
|
||
import type { INavLink } from "@ubus/configs"; | ||
import { landingNavLinks } from "@ubus/configs"; | ||
import { cn } from "@ubus/ui"; | ||
import { Button } from "@ubus/ui/button"; | ||
|
||
export const NavBar = () => { | ||
return ( | ||
<div className="hidden w-full items-center justify-between md:order-1 md:flex md:w-auto"> | ||
<ul className="mt-4 flex flex-col rounded-lg p-4 font-medium md:mt-0 md:flex-row md:gap-8 md:p-0"> | ||
{landingNavLinks.map((link) => ( | ||
<li key={link.href}> | ||
<NavLink className="px-0" link={link} /> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
}; | ||
|
||
export const NavLink = ({ | ||
link, | ||
className, | ||
}: { | ||
className?: string; | ||
link: INavLink; | ||
}) => { | ||
const pathname = usePathname(); | ||
return ( | ||
<> | ||
<Link href={{ href: link.href }}> | ||
<Button | ||
className={cn( | ||
"text-on-surface hover:text-primary", | ||
pathname === link.href && "text-primary", | ||
className, | ||
)} | ||
variant={"link"} | ||
> | ||
{link.label} | ||
</Button> | ||
</Link> | ||
</> | ||
); | ||
}; |
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,22 @@ | ||
import { Contact } from "./contact"; | ||
import { EssentialFeatures, KeyFeatures } from "./features"; | ||
import { Footer } from "./footer"; | ||
import { Header } from "./header"; | ||
import { Hero } from "./hero"; | ||
import { OurTeam } from "./our-team"; | ||
import { Testimonials } from "./testimonials"; | ||
|
||
export default function LandingPage() { | ||
return ( | ||
<> | ||
<Header /> | ||
<Hero /> | ||
<KeyFeatures /> | ||
<EssentialFeatures /> | ||
<Testimonials /> | ||
<OurTeam /> | ||
<Contact /> | ||
<Footer /> | ||
</> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.