Skip to content

Commit

Permalink
added landing page"
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadgaz committed Sep 30, 2024
1 parent e8aeb22 commit ac69c68
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 1 deletion.
Binary file added app/(landing)/TitlingGothicFB.woff2
Binary file not shown.
107 changes: 106 additions & 1 deletion app/(landing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,108 @@
import logo from '@/assets/logo.svg';
import { Card, LinkBtn } from '@/components/atoms';
import { NavSearchBar } from '@/components/molecules';
import Image from 'next/image';
import SplineNext from '@splinetool/react-spline/next';
import localFont from 'next/font/local';
import {
IdentificationIcon,
MagnifyingGlassIcon,
Square2StackIcon,
} from '@heroicons/react/24/solid';

const titlingGothicFB = localFont({
src: './TitlingGothicFB.woff2',
display: 'swap',
});

export default function Page() {
return <main></main>;
return (
<main className="relative">
<section className="mx-auto w-full max-w-content-width px-md py-xxl">
<Card className="flex items-center justify-center gap-[3rem] overflow-visible bg-[rgb(var(--color-background)/0.85)] px-[3.5rem] py-[3.5rem] backdrop-blur-lg max-lg:flex-col">
<div className="flex flex-col gap-lg max-lg:items-center">
<div className="flex flex-col gap-sm max-lg:items-center">
<Image src={logo} alt="logo" width={60} height={60} />
<h3 className="font-bold text-neutral">ACM-CS@SJSU</h3>
<h1
className={`${titlingGothicFB.className} pb-xs text-[3.25rem] leading-[3.25rem]`}
>
Lenses™
</h1>

<h2 className="text-neutral max-lg:text-center max-lg:text-h6-mobile lg:text-h6-desktop">
Browse classes with peace of mind
</h2>
</div>
<NavSearchBar />
</div>
<SplineNext
style={{
width: '350px',
objectFit: 'cover',
height: '300px',
marginLeft: '4rem',
}}
scene="https://prod.spline.design/zxtbNi7bvatFum9j/scene.splinecode"
/>
</Card>
<div className="flex flex-wrap gap-md pb-[3.5rem] pt-md max-lg:flex-col">
<LinkBtn
variant="tertiary"
className="flex-1 p-0 text-inherit"
href="/courses"
aria-label="Browse Courses"
>
<Card className="w-full p-xl">
<div className="text-secondary">
<MagnifyingGlassIcon width={24} height={24} />
<h3 className="pb-sm pt-md !font-semibold lg:text-h6-desktop">
Browse Courses
</h3>
</div>
<p className="text-p text-neutral">
Browse our catalog of 10,000+ courses and apply filters.
</p>
</Card>
</LinkBtn>
<LinkBtn
variant="tertiary"
className="flex-1 p-0 text-inherit"
href="/professors"
aria-label="Review Professors"
>
<Card className="w-full p-xl">
<div className="text-primary">
<IdentificationIcon width={24} height={24} />
<h3 className="pb-sm pt-md !font-semibold lg:text-h6-desktop">
Review Professors
</h3>
</div>
<p className="text-p text-neutral">
View user submitted reviews based on SJSU professors.{' '}
</p>
</Card>
</LinkBtn>
<LinkBtn
variant="tertiary"
className="flex-1 p-0 text-inherit"
href="/compare"
aria-label="Compare"
>
<Card className="w-full p-xl">
<div className="text-good">
<Square2StackIcon width={24} height={24} />
<h3 className="pb-sm pt-md !font-semibold lg:text-h6-desktop">
Compare
</h3>
</div>
<p className="text-p text-neutral">
View rating or grade distributions side by side.
</p>
</Card>
</LinkBtn>
</div>
</section>
</main>
);
}
Binary file removed assets/hero-image.png
Binary file not shown.
82 changes: 82 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
},
"dependencies": {
"@heroicons/react": "^2.1.5",
"@next/font": "^14.2.13",
"@next/third-parties": "^14.2.11",
"@splinetool/react-spline": "^4.0.0",
"@splinetool/runtime": "^1.9.28",
"@tailwindcss/forms": "^0.5.9",
"apexcharts": "^3.53.0",
"clsx": "^2.1.1",
Expand Down

0 comments on commit ac69c68

Please sign in to comment.