-
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.
- Loading branch information
Kartik Chausali
authored and
Kartik Chausali
committed
Sep 26, 2024
1 parent
3470b9a
commit f0b7bea
Showing
15 changed files
with
863 additions
and
255 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import Image from "next/image"; | ||
import { buttonVariants } from "@/components/ui/button" | ||
|
||
import roomate from '../icons/roommate.png' | ||
|
||
import Link from 'next/link' | ||
import Features from "./Features"; | ||
import Navigation from "./Navigation"; | ||
export default function AppBar(){ | ||
return <div className="flex justify-center items-center bg-nav-background"> | ||
<div className="flex gap-2 justify-center items-center border rounded-lg w-fit p-2 m-2"> | ||
<div className="flex items-center"> | ||
<Image src={roomate} alt="room" className="h-10 w-10 rounded-lg"/> | ||
<span className="text-white">RoomieConnect</span> | ||
</div> | ||
<Navigation/> | ||
<Link href="https://github.com/kartik-chausali/Roomie-Connect" className="text-nav-default flex items-center">Contribute <svg xmlns="http://www.w3.org/2000/svg" className="bg-white h-5 w-5 rounded-full" xmlSpace="preserve" viewBox="0 0 16 16" id="github"> | ||
<path d="M7.999 0C3.582 0 0 3.596 0 8.032a8.031 8.031 0 0 0 5.472 7.621c.4.074.546-.174.546-.387 0-.191-.007-.696-.011-1.366-2.225.485-2.695-1.077-2.695-1.077-.363-.928-.888-1.175-.888-1.175-.727-.498.054-.488.054-.488.803.057 1.225.828 1.225.828.714 1.227 1.873.873 2.329.667.072-.519.279-.873.508-1.074-1.776-.203-3.644-.892-3.644-3.969 0-.877.312-1.594.824-2.156-.083-.203-.357-1.02.078-2.125 0 0 .672-.216 2.2.823a7.633 7.633 0 0 1 2.003-.27 7.65 7.65 0 0 1 2.003.271c1.527-1.039 2.198-.823 2.198-.823.436 1.106.162 1.922.08 2.125.513.562.822 1.279.822 2.156 0 3.085-1.87 3.764-3.652 3.963.287.248.543.738.543 1.487 0 1.074-.01 1.94-.01 2.203 0 .215.144.465.55.386A8.032 8.032 0 0 0 16 8.032C16 3.596 12.418 0 7.999 0z"></path> | ||
</svg> | ||
</Link> | ||
<Link href="" className={buttonVariants({variant:"login"})}>Login</Link> | ||
<Link href="" className={buttonVariants({variant:"outline"})}>SignUp</Link> | ||
</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,5 @@ | ||
export default function Features(){ | ||
return <div> | ||
Features | ||
</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,76 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import { | ||
NavigationMenu, | ||
NavigationMenuContent, | ||
NavigationMenuIndicator, | ||
NavigationMenuItem, | ||
NavigationMenuLink, | ||
NavigationMenuList, | ||
NavigationMenuTrigger, | ||
navigationMenuTriggerStyle, | ||
NavigationMenuViewport, | ||
} from "@/components/ui/navigation-menu" | ||
import Image from "next/image"; | ||
import Link from 'next/link' | ||
import Features from "./Features" | ||
import roomate from '../icons/roommate.png' | ||
import React from "react"; | ||
import { cn } from "@/lib/utils"; | ||
export default function Navigation(){ | ||
return (<NavigationMenu> | ||
<NavigationMenuList> | ||
|
||
<NavigationMenuItem> | ||
<NavigationMenuTrigger className="text-nav-default">Features</NavigationMenuTrigger> | ||
<NavigationMenuContent> | ||
<ul className="grid gap-3 p-4 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]"> | ||
<li className="row-span-3"> | ||
<NavigationMenuLink asChild> | ||
<a className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md" href="/"> | ||
|
||
<Image src = {roomate} alt="logo"/> | ||
<div className="mb-2 mt-4 text-lg font-medium"> | ||
Roomie_Connect | ||
</div> | ||
|
||
<p className="text-sm leading-tight text-muted-foreground"> | ||
Looking for a Roomate or a Room near you? | ||
</p> | ||
|
||
</a> | ||
|
||
</NavigationMenuLink> | ||
</li> | ||
<ListItem href="/" title="Introduction">Looking for a roomate?</ListItem> | ||
|
||
</ul> | ||
</NavigationMenuContent> | ||
</NavigationMenuItem> | ||
|
||
<NavigationMenuItem> | ||
<NavigationMenuTrigger className="text-nav-default"> | ||
Contact | ||
</NavigationMenuTrigger> | ||
</NavigationMenuItem> | ||
</NavigationMenuList> | ||
</NavigationMenu>) | ||
} | ||
|
||
const ListItem = React.forwardRef<React.ElementRef<"a"> , React.ComponentPropsWithoutRef<"a"> >( ( {className, title, children, ...props}, ref ) => { | ||
return (<li> | ||
<NavigationMenuLink asChild> | ||
<a ref={ref} className={cn( | ||
"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", | ||
className | ||
)} | ||
{...props}> | ||
<div className="text-sm font-medium leading-none">{title}</div> | ||
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground"> | ||
{children} | ||
</p> | ||
</a> | ||
</NavigationMenuLink> | ||
</li>) | ||
} ) | ||
|
||
ListItem.displayName = "ListItem" |
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
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
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,101 +1,11 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import Image from "next/image"; | ||
import AppBar from "./components/AppBar"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]"> | ||
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start"> | ||
<Image | ||
className="dark:invert" | ||
src="https://nextjs.org/icons/next.svg" | ||
alt="Next.js logo" | ||
width={180} | ||
height={38} | ||
priority | ||
/> | ||
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]"> | ||
<li className="mb-2"> | ||
Get started by editing{" "} | ||
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold"> | ||
app/page.tsx | ||
</code> | ||
. | ||
</li> | ||
<li>Save and see your changes instantly.</li> | ||
</ol> | ||
|
||
<div className="flex gap-4 items-center flex-col sm:flex-row"> | ||
<a | ||
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5" | ||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Image | ||
className="dark:invert" | ||
src="https://nextjs.org/icons/vercel.svg" | ||
alt="Vercel logomark" | ||
width={20} | ||
height={20} | ||
/> | ||
Deploy now | ||
</a> | ||
<a | ||
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44" | ||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Read our docs | ||
</a> | ||
</div> | ||
</main> | ||
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center"> | ||
<a | ||
className="flex items-center gap-2 hover:underline hover:underline-offset-4" | ||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Image | ||
aria-hidden | ||
src="https://nextjs.org/icons/file.svg" | ||
alt="File icon" | ||
width={16} | ||
height={16} | ||
/> | ||
Learn | ||
</a> | ||
<a | ||
className="flex items-center gap-2 hover:underline hover:underline-offset-4" | ||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Image | ||
aria-hidden | ||
src="https://nextjs.org/icons/window.svg" | ||
alt="Window icon" | ||
width={16} | ||
height={16} | ||
/> | ||
Examples | ||
</a> | ||
<a | ||
className="flex items-center gap-2 hover:underline hover:underline-offset-4" | ||
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Image | ||
aria-hidden | ||
src="https://nextjs.org/icons/globe.svg" | ||
alt="Globe icon" | ||
width={16} | ||
height={16} | ||
/> | ||
Go to nextjs.org → | ||
</a> | ||
</footer> | ||
<div className=""> | ||
<AppBar/> | ||
</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,20 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "app/globals.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
} | ||
} |
Oops, something went wrong.