Skip to content

Commit

Permalink
Merge pull request #40 from GamerC0der/signupui
Browse files Browse the repository at this point in the history
Signup Page
  • Loading branch information
aramshiva authored Feb 2, 2025
2 parents bb5c169 + 9ce2c16 commit 9f0fdff
Show file tree
Hide file tree
Showing 10 changed files with 4,008 additions and 243 deletions.
1 change: 0 additions & 1 deletion .github/workflows/codeql.yml

This file was deleted.

30 changes: 19 additions & 11 deletions app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@ import Image from "next/image";
import Link from "next/link";

export default function Header() {
return (
<header className={`flex justify-between items-center p-9 w-full`}>
<Image src="logo.svg" alt="logo" width={200} height={200} />
<div className="flex space-x-7 self-center">
<Link href="/about" className="text-2xl">about</Link>
<Link href="/for_leaders" className="text-2xl">for_leaders</Link>
<Link href="/login" className="text-2xl">login</Link>
<Link href="/join"><Image src="cta.svg" alt="CTA button" width={175} height={175}/> </Link>
</div>
</header>
)
return (
<header className={`flex justify-between items-center p-9 w-full`}>
<Image src="logo.svg" alt="logo" width={200} height={200} />
<div className="flex space-x-7 self-center">
<Link href="/about" className="text-2xl">
about
</Link>
<Link href="/for_leaders" className="text-2xl">
for_leaders
</Link>
<Link href="/login" className="text-2xl">
login
</Link>
<Link href="/join">
<Image src="cta.svg" alt="CTA button" width={175} height={175} />{" "}
</Link>
</div>
</header>
);
}
31 changes: 20 additions & 11 deletions app/components/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import Image from "next/image"
import Image from "next/image";

export function Title() {
return (
<div className="flex flex-col items-center text-5xl pt-9">
<p className="pt-9">your very own</p>
<Image src="logo.svg" alt="logo" width={600} height={600} className="pt-9" />
<p className="pt-9">to code in</p>
<p className="pt-9 text-lg max-w-[40rem] text-center">hack together games, websites, tools, and more, in a web editor, with all the comforts of local dev. made by hack clubbers, for hack clubbers.</p>
<p className="pt-9 text-2xl font-bold">Coming Soon.</p>
</div>
)
}
return (
<div className="flex flex-col items-center text-5xl pt-9">
<p className="pt-9">your very own</p>
<Image
src="logo.svg"
alt="logo"
width={600}
height={600}
className="pt-9"
/>
<p className="pt-9">to code in</p>
<p className="pt-9 text-lg max-w-[40rem] text-center">
hack together games, websites, tools, and more, in a web editor, with
all the comforts of local dev. made by hack clubbers, for hack clubbers.
</p>
<p className="pt-9 text-2xl font-bold">Coming Soon.</p>
</div>
);
}
4 changes: 2 additions & 2 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
@tailwind utilities;

:root {
background-color: #0B0A18;
}
background-color: #0b0a18;
}
95 changes: 95 additions & 0 deletions app/join/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
"use client";

import Image from "next/image";
import { IBM_Plex_Mono } from "next/font/google";
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import { useState } from "react";

const font = IBM_Plex_Mono({ weight: "500", subsets: ["latin"] });

export default function Home() {
const [startDate, setStartDate] = useState<Date | null>(null);

return (
<div className={`h-screen w-screen ${font.className} flex`}>
<div className="w-1/2 relative">
<Image
src="/bg.svg"
alt="dots background"
className="w-full h-full object-cover"
fill
/>
</div>
<div className="w-1/2 bg-[#0B0A18] relative flex flex-col items-center justify-center px-8">
<div className="w-full text-white text-6xl font-semibold mb-8">
Sign Up
</div>
<div className="w-full flex justify-between mb-8">
<button className="bg-[#007A5A] text-white py-4 px-12 text-xl rounded-md focus:outline-none transform transition-all duration-300 hover:bg-[#005a42] hover:scale-105 hover:shadow-lg">
Login with Slack
</button>
<button className="bg-[#333] text-white py-4 px-12 text-xl rounded-md focus:outline-none transform transition-all duration-300 hover:bg-[#444] hover:scale-105 hover:shadow-lg">
Login with GitHub
</button>
</div>
<div className="w-full flex items-center mb-8">
<div className="flex-grow h-px bg-white"></div>
<p className="mx-4 text-white"> OR </p>
<div className="flex-grow h-px bg-white"></div>
</div>
<form className="w-full max-w-lg space-y-4">
<div className="flex items-center space-x-2">
<p className="text-white text-xl">{">"}</p>
<input
type="text"
id="username"
name="username"
className="w-full p-4 text-white bg-transparent border-2 border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-green-300"
placeholder="Username"
/>
</div>
<div className="flex items-center space-x-2">
<p className="text-white text-xl">{">"}</p>
<input
type="email"
id="email"
name="email"
className="w-full p-4 text-white bg-transparent border-2 border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-green-300"
placeholder="Email"
/>
</div>
<div className="flex items-center space-x-2">
<p className="text-white text-xl">{">"}</p>
<input
type="password"
id="password"
name="password"
className="w-full p-4 text-white bg-transparent border-2 border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-green-300"
placeholder="Password"
/>
</div>
<div className="flex items-center space-x-2">
<p className="text-white text-xl">{">"}</p>
<DatePicker
selected={startDate}
onChange={(date: Date | null) => setStartDate(date)}
className="w-full p-4 text-white bg-transparent border-2 border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-green-300"
placeholderText="Birthdate"
calendarClassName="react-datepicker__calendar"
wrapperClassName="w-full"
popperPlacement="bottom"
/>
</div>
<button
type="submit"
className="w-full bg-green-500 text-white py-3 text-lg rounded-md hover:bg-green-400 focus:outline-none transform transition-all duration-300 hover:scale-105 hover:shadow-lg"
>
Sign Up
</button>
</form>
</div>
<div className="absolute left-1/2 top-0 h-full border-l-4 border-green-800"></div>
</div>
);
}
6 changes: 3 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Image from "next/image";
import Header from "@/app/components/Header";
import { Title } from "@/app/components/Title";
import { IBM_Plex_Mono } from 'next/font/google'
import { IBM_Plex_Mono } from "next/font/google";

const font = IBM_Plex_Mono({ weight: "500", subsets: ['latin'] })
const font = IBM_Plex_Mono({ weight: "500", subsets: ["latin"] });

export default function Home() {
return (
Expand All @@ -15,7 +15,7 @@ export default function Home() {
alt="background"
className="w-full h-full object-cover"
fill
/>
/>
{/* bg code ^ */}
</div>
<div className="relative z-10 text-white">
Expand Down
Loading

0 comments on commit 9f0fdff

Please sign in to comment.