Skip to content

Commit 577620e

Browse files
committed
feat: ✨ add tagline to landing
1 parent bae26d4 commit 577620e

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

apps/cookbook/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic';
44

55
const config: Config = {
66
title: 'Marmicode Cookbook',
7-
tagline: 'Opinionated cookbook to build apps that scale',
7+
tagline: 'Ingredients & Recipes for Cooking Delicious Apps',
88
favicon: 'img/favicon.png',
99

1010
url: process.env.DEPLOY_URL || 'https://cookbook.marmicode.io',

apps/cookbook/src/pages/index.module.css

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
.heroBanner {
77
background: #eed9ff;
8-
padding: 3rem 0;
8+
color: var(--marmicode-primary);
9+
font-family: Roboto;
10+
padding: 2rem 0;
911
text-align: center;
1012
position: relative;
1113
overflow: hidden;
@@ -15,10 +17,7 @@
1517
object-fit: cover;
1618
}
1719

18-
.heroSubtitle,
19-
.heroSubtitleSecondary {
20-
color: var(--marmicode-primary);
21-
font-family: Roboto;
20+
.heroSubtitle {
2221
font-size: 30px;
2322
letter-spacing: 10px;
2423
line-height: 45px;
@@ -28,6 +27,17 @@
2827
.heroSubtitleSecondary {
2928
font-size: 40px;
3029
letter-spacing: 6px;
30+
line-height: 45px;
31+
}
32+
33+
.heroTagline {
34+
font-size: 20px;
35+
letter-spacing: 2px;
36+
line-height: 30px;
37+
margin: auto;
38+
max-width: 270px;
39+
text-align: justify;
40+
text-align-last: justify;
3141
}
3242

3343
@media screen and (max-width: 996px) {
@@ -38,7 +48,8 @@
3848

3949
.buttons {
4050
display: flex;
41-
flex-direction: column;
4251
align-items: center;
52+
flex-direction: row;
4353
justify-content: center;
54+
margin: 2rem 0;
4455
}

apps/cookbook/src/pages/index.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import Link from '@docusaurus/Link';
12
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
23
import useBaseUrl from '@docusaurus/useBaseUrl';
34
import Layout from '@theme/Layout';
45

56
import styles from './index.module.css';
7+
import clsx from 'clsx';
68

79
export default function Home(): JSX.Element {
810
const { siteConfig } = useDocusaurusContext();
@@ -17,6 +19,7 @@ export default function Home(): JSX.Element {
1719
}
1820

1921
function HomepageHeader() {
22+
const { siteConfig } = useDocusaurusContext();
2023
return (
2124
<header className={styles.heroBanner}>
2225
<div className="container">
@@ -26,8 +29,19 @@ function HomepageHeader() {
2629
src={useBaseUrl('/img/hero.png')}
2730
height="300"
2831
/>
29-
<p className={styles.heroSubtitle}>MARMICODE</p>
30-
<p className={styles.heroSubtitleSecondary}>COOKBOOK</p>
32+
<p className={clsx(styles.heroSubtitle)}>MARMICODE</p>
33+
<p className={clsx(styles.heroSubtitle, styles.heroSubtitleSecondary)}>
34+
COOKBOOK
35+
</p>
36+
<p className={styles.heroTagline}>{siteConfig.tagline}</p>
37+
<div className={styles.buttons}>
38+
<Link className="button button--lg" to="/angular/testing">
39+
Angular Testing
40+
</Link>
41+
<Link className="button button--lg" to="/nx/intro">
42+
Nx
43+
</Link>
44+
</div>
3145
</div>
3246
</header>
3347
);

0 commit comments

Comments
 (0)