Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: make hero section prototype #116

Merged
merged 14 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,655 changes: 7,655 additions & 0 deletions src/assets/hero/bg-desktop-svg.tsx

Large diffs are not rendered by default.

3,387 changes: 3,387 additions & 0 deletions src/assets/hero/bg-mobile-svg.tsx

Large diffs are not rendered by default.

3,300 changes: 3,300 additions & 0 deletions src/assets/hero/desktop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,383 changes: 1,383 additions & 0 deletions src/assets/hero/mobile.svg
juancwu marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export { HeroBackgroundMobile } from './hero/bg-mobile-svg';
export { HeroBackgroundDesktop } from './hero/bg-desktop-svg';

import {
MailIcon,
LinkedInIcon,
Expand Down
3 changes: 2 additions & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export { Menu } from './Navbar/Menu';
* @section FooterSection
*
*/
export { FooterSection } from './sections/Footer.section';
export { HeroSection } from "./sections/Hero.section"
export { FooterSection } from './sections/Footer.section';
26 changes: 26 additions & 0 deletions src/components/sections/Hero.section.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { HeroBackgroundMobile, HeroBackgroundDesktop } from '@assets';

const HeroSection = () => {
return (
<div className="relative isolate">
<div className="-z-10">
<HeroBackgroundMobile className={'block sm:hidden'} />
<HeroBackgroundDesktop className={'hidden sm:block'} />
</div>
<div className="relative -mt-72 space-y-4 text-center sm:absolute sm:left-0 sm:top-0 sm:mt-0 sm:p-10 lg:p-14 sm:space-y-2 sm:text-left lg:space-y-7">
<img
className="mx-auto aspect-square w-24 sm:mx-0 lg:w-28 xl:w-32"
src="src/assets/logo.svg"
alt="Hawkhack logo"
/>
<h1 className="bg-gradient-to-b from-[#2B6469] to-[#00CEDB] bg-clip-text text-transparent text-4xl font-extrabold lg:text-5.5xl xl:text-7xl">
HawkHack 2024
</h1>
<p className="text-2xl font-bold sm:hidden">April 5th - 7th</p>
<p className="text-2xl font-bold sm:hidden">In Person</p>
</div>
</div>
);
};

export { HeroSection };
4 changes: 2 additions & 2 deletions src/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FooterSection } from '@components';
import { Navbar } from '@components';
import { Navbar, HeroSection, FooterSection } from '@components';

const Landing: React.FC = () => {
return (
<div>
<Navbar />
<HeroSection />
<FooterSection />
</div>
);
Expand Down