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/#25 Create landing page #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
57 changes: 42 additions & 15 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions public-portal/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';

import { TemporalPod } from '#pods';
import { HomePod } from '#pods';

const RootPage = () => {
return <TemporalPod />;
return <HomePod />;
};

export default RootPage;
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import clsx from 'clsx';
import styles from './contact.styles.module.scss';

export const ContactComponent: React.FC = () => {
return (
<section className={styles.contact}>
<h3 className={clsx('txt-title', 'txt--accent')}>¿La quieres en tu pub / cervecería?</h3>
<p className="txt--contrast">
Pruébala gratis por un año.
<br />
Sin compromiso.
</p>
<div className={styles.contact_box}>
<p className="txt--primary">Contacto:</p>
<address>
<a href="mailto:info@beergeekmenu.com" className="link-info">
info@beergeekmenu.com
</a>
</address>
</div>
</section>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.contact {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
padding: 150px 42.5px;

.contact_box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: white;
padding: 15px, 0px;
border-radius: 9px;
width: 348px;
height: 90px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const ContentDividerSvg: React.FC = () => {
return (
<svg
width="100%"
height="48"
viewBox="0 0 412 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
style={{ position: 'relative', bottom: '47px' }}
>
<path d="M412 0V48L206 48L0 48V0L206 48L412 0Z" fill="#281F17" />
</svg>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { clsx } from 'clsx';
import styles from './content.styles.module.scss';
import { ContentDividerSvg } from './content-divider.component';

export const ContentComponent: React.FC = () => {
return (
<>
<ContentDividerSvg />

<section className={styles.content}>
<h3 className={clsx('txt-title', 'txt--accent')}>¿Cómo funciona?</h3>
<hr className={styles.content_divider} />
<p className={clsx(styles.content_text, 'txt--contrast')}>
Selecciona en la app las cervezas disponibles en tu local, después configura los detalles.
</p>
<p className={clsx(styles.content_text, 'txt--contrast')}>
Tus clientes elegirán fácilmente: <br /> escaneando el QR podrán acceder a fotos y detalles de cada cerveza.
</p>
<div className={styles.content_buttons}>
<button className="btn-accent">VER DEMO</button>
<button className="btn-light">SABER MÁS</button>
</div>
</section>
</>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 15px;
padding: 0 42.5px;

.content_divider {
width: 100%;
border-color: var(--color-txt-accent);
}

.content_text {
line-height: 20px;
text-wrap: balance;
width: 90%;
}

.content_buttons {
display: flex;
gap: 20px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import styles from './hero.styles.module.scss';

export const HeroComponent: React.FC = () => {
return (
<header className={styles.hero}>
<div className={styles.hero_container}>
<img src="/iso_logo.svg" alt="Logo de Beer Geek Menú" />
<div className={styles.hero_content}>
<h1 className={styles.hero_title}>
<span className={styles.hero_firt_letters}>B</span>EER <span className={styles.hero_firt_letters}>G</span>
EEK <span className={styles.hero_firt_letters}>M</span>ENÚ
</h1>
<h2 className={styles.hero_subtitle}>La carta perfecta para tu cervecería</h2>
</div>
</div>
</header>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
$container-height: 500px;
$logo-width: 62.87px;
$text-shadow: 0px 2px 15px #281f17;

.hero {
display: flex;
flex-direction: row;
justify-content: center;
align-items: start;
padding-top: 64px;
height: $container-height;

.hero_container {
display: flex;
justify-content: center;
align-items: center;
gap: 16px;

img {
width: 62.87px;
}

.hero_content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

.hero_title {
color: var(--color-txt-contrast);
font-size: var(--fs-hero-text);
text-shadow: $text-shadow;

.hero_firt_letters {
font-size: 1.45em;
}
}

.hero_subtitle {
color: var(--color-txt-contrast);
font-size: var(--fs-xl);
font-weight: var(--fw-light);
text-shadow: $text-shadow;
}
}
}
}
16 changes: 16 additions & 0 deletions public-portal/src/pods/home/home.pod.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { HeroComponent } from './components/hero/hero.component.module';
import { ContentComponent } from './components/content/content.component';
import { ContactComponent } from './components/contact/contact.component';
import styles from './home.styles.module.scss';

export const HomePod: React.FC = () => {
return (
<div className={styles.home_background}>
<HeroComponent />
<main className="bg-contrast-darker">
<ContentComponent />
<ContactComponent />
</main>
</div>
);
};
7 changes: 7 additions & 0 deletions public-portal/src/pods/home/home.styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$background-img: url('/home-hero-img.webp');

.home_background {
background-image: $background-img;
background-size: 200%;
background-repeat: no-repeat;
}
1 change: 1 addition & 0 deletions public-portal/src/pods/home/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './home.pod';
Loading