Skip to content

Commit

Permalink
before animation title underline
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogouveia3 committed Apr 21, 2024
1 parent 556d376 commit d32e101
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/app/components/SlideMain/SlideMain.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,3 @@
padding: var(--components-gap-50);
color: var(--white);
}

.title {
font: 800 6rem/0.8 var(--font-family-sans);
letter-spacing: -3px;
}

.subtitle {
font: 400 italic 4rem var(--font-family-sans);
letter-spacing: -3px;
}
16 changes: 7 additions & 9 deletions src/app/components/SlideMain/SlideMain.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { ReactNode } from "react";
import styles from "./SlideMain.module.css";

export default function Home() {
return (
<section className={styles.section}>
<h1 className={styles.title}>Ricardo Gouveia</h1>
<h2 className={styles.subtitle}>
<span>developer</span> & <span>designer</span>
</h2>
</section>
);
interface ComponentProps {
children?: ReactNode;
}

export default function Home({ children }: Readonly<ComponentProps>) {
return <section className={styles.section}>{children}</section>;
}
8 changes: 7 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ export default function Home() {
<Navbar centerButton={false} />
<IconBar />
</LateralBarContainer>
<SlideMain />
<SlideMain>
<h1 className={styles.title}>Ricardo Gouveia</h1>
<h2 className={styles.subtitle}>
<span className={styles.subtitleDev}>developer</span> &{" "}
<span className={styles.subtitleDsg}>designer</span>
</h2>
</SlideMain>
<LateralBarContainer>
<RoundLink
icon="/dribbble.png"
Expand Down
26 changes: 24 additions & 2 deletions src/app/styles/Hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
gap: var(--components-gap-50);
}

.section {
width: 100%;
.title {
font: 800 6rem/0.8 var(--font-family-sans);
letter-spacing: -3px;
}

.subtitle {
font: 400 italic 4rem/1.5 var(--font-family-sans);
letter-spacing: -3px;
}

.subtitleDev {
text-decoration: wavy underline;
text-underline-offset: 0.5rem;
text-decoration-skip-ink: none;
text-decoration-thickness: 0.225rem;
text-decoration-color: var(--medium-turquoise);
}

.subtitleDsg {
text-decoration: wavy underline;
text-underline-offset: 0.5rem;
text-decoration-skip-ink: none;
text-decoration-thickness: 0.225rem;
text-decoration-color: var(--begonia);
}

0 comments on commit d32e101

Please sign in to comment.