File tree Expand file tree Collapse file tree 4 files changed +77
-3
lines changed Expand file tree Collapse file tree 4 files changed +77
-3
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * CSS files with the .module.css suffix will be treated as CSS modules
3+ * and scoped locally.
4+ */
5+
6+ .heroBanner {
7+ background : # eed9ff ;
8+ padding : 3rem 0 ;
9+ text-align : center;
10+ position : relative;
11+ overflow : hidden;
12+ }
13+
14+ .heroLogo {
15+ object-fit : cover;
16+ }
17+
18+ .heroSubtitle ,
19+ .heroSubtitleSecondary {
20+ color : var (--marmicode-primary );
21+ font-family : Roboto;
22+ font-size : 30px ;
23+ letter-spacing : 10px ;
24+ line-height : 45px ;
25+ margin : 0 ;
26+ }
27+
28+ .heroSubtitleSecondary {
29+ font-size : 40px ;
30+ letter-spacing : 6px ;
31+ }
32+
33+ @media screen and (max-width : 996px ) {
34+ .heroBanner {
35+ padding : 2rem ;
36+ }
37+ }
38+
39+ .buttons {
40+ display : flex;
41+ flex-direction : column;
42+ align-items : center;
43+ justify-content : center;
44+ }
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import { Redirect } from '@docusaurus/router' ;
1+ import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
2+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
3+ import Layout from '@theme/Layout' ;
34
4- export default ( ) => < Redirect to = "/nx/intro" /> ;
5+ import styles from './index.module.css' ;
6+
7+ export default function Home ( ) : JSX . Element {
8+ const { siteConfig } = useDocusaurusContext ( ) ;
9+ return (
10+ < Layout
11+ title = { `Hello from ${ siteConfig . title } ` }
12+ description = "Description will go into a meta tag in <head />"
13+ >
14+ < HomepageHeader />
15+ </ Layout >
16+ ) ;
17+ }
18+
19+ function HomepageHeader ( ) {
20+ return (
21+ < header className = { styles . heroBanner } >
22+ < div className = "container" >
23+ < img
24+ alt = "Marmicode Pot"
25+ className = { styles . heroLogo }
26+ src = { useBaseUrl ( '/img/hero.png' ) }
27+ height = "300"
28+ />
29+ < p className = { styles . heroSubtitle } > MARMICODE</ p >
30+ < p className = { styles . heroSubtitleSecondary } > COOKBOOK</ p >
31+ </ div >
32+ </ header >
33+ ) ;
34+ }
You can’t perform that action at this time.
0 commit comments