Skip to content

Commit

Permalink
feat: add code to get Udemy course for FREE 馃 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszsokola committed Jan 10, 2024
1 parent cec7db7 commit e054153
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ export default function Home() {
<main>
<Board />
</main>
<div>
<h2>
馃殌 Unlock the Code: <span>Build Your Own 2048 Game!</span>
</h2>
<p>
Be one of the <i>first 100 users</i> to{" "}
<a
href="https://www.udemy.com/course/2048-in-react-and-nextjs/?couponCode=2048FREE"
target="_blank"
rel="noopener"
>
join my Udemy course
</a>{" "}
and create your 2048 masterpiece for FREE with code <b>2048FREE</b>.
</p>
</div>
<footer>
<div className={styles.socials}>
<a
Expand Down
24 changes: 24 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,40 @@ body {
line-height: calc(var(--pixel-size) * 3.5);
}

a {
color: var(--primary-text-color);
font-weight: bold;
}

a:hover,
a:focus {
opacity: 0.8;
}

h1 {
font-size: calc(var(--pixel-size) * 5);
line-height: calc(var(--pixel-size) * 5);
margin: calc(var(--pixel-size) * 1.5) calc(var(--pixel-size) * 0);
}

h2 {
font-size: calc(var(--pixel-size) * 2.5);
line-height: calc(var(--pixel-size) * 3.75);
margin: calc(var(--pixel-size) * 2.5) calc(var(--pixel-size) * 0);
}

h2 > span {
display: block;
}

@media (min-width: 512px) {
h1 {
font-size: calc(var(--pixel-size) * 8.5);
line-height: calc(var(--pixel-size) * 8.5);
margin: calc(var(--pixel-size) * 2.25) calc(var(--pixel-size) * 0);
}

h2 > span {
display: inline;
}
}

0 comments on commit e054153

Please sign in to comment.