File tree Expand file tree Collapse file tree 4 files changed +59
-16
lines changed Expand file tree Collapse file tree 4 files changed +59
-16
lines changed Original file line number Diff line number Diff line change
1
+ .column {
2
+ display : flex;
3
+ flex-direction : column;
4
+ gap : 0.5em ;
5
+ }
6
+
7
+ .HomePageLinks {
8
+ width : 440px ;
9
+ display : flex;
10
+ justify-content : center;
11
+ align-items : center;
12
+ gap : 4em ;
13
+ position : relative;
14
+ color : hsl (var (--primary ));
15
+ }
16
+
17
+ .HomePageLinkTitle {
18
+ text-decoration : underline;
19
+ text-underline-offset : 0.15em ;
20
+ text-decoration-color : hsl (var (--primary ) / 0.3 );
21
+ }
22
+
23
+ .HomePageLinkTitle : hover {
24
+ text-decoration-color : hsl (var (--primary ));
25
+ }
Original file line number Diff line number Diff line change
1
+ import { contentManager } from "@/lib/contentManager"
2
+ import styles from "./HomePage.module.css"
3
+ import Link from "next/link"
4
+
5
+ export default function ( ) {
6
+ const outline = contentManager . getOutline ( )
7
+
8
+ const firstColumn = outline . slice ( 0 , 4 )
9
+ const secondColumn = outline . slice ( 4 , 8 )
10
+
11
+ return (
12
+ < div className = { styles . HomePageLinks } >
13
+ < div className = { styles . column } >
14
+ { firstColumn . map ( ( ele , index ) => (
15
+ < Link key = { index } className = { styles . HomePageLink } href = { contentManager . getPathWithPrefix ( ele . steps [ 0 ] . fullPath ) as string } >
16
+ < span > { index + 1 } . </ span >
17
+ < span className = { styles . HomePageLinkTitle } > { ele . title } </ span >
18
+ </ Link >
19
+ ) ) }
20
+ </ div >
21
+ < div className = { styles . column } >
22
+ { secondColumn . map ( ( ele , index ) => (
23
+ < Link key = { index + 5 } className = { styles . HomePageLink } href = { contentManager . getPathWithPrefix ( ele . steps [ 0 ] . fullPath ) as string } >
24
+ < span > { index + 5 } . </ span >
25
+ < span className = { styles . HomePageLinkTitle } > { ele . title } </ span >
26
+ </ Link >
27
+ ) ) }
28
+ </ div >
29
+ </ div >
30
+ )
31
+ }
Original file line number Diff line number Diff line change
1
+ export { default as default } from "./HomePage"
Original file line number Diff line number Diff line change 1
1
import styles from "./styles/page.module.css" ;
2
- import Link from "next/link" ;
3
2
import cx from "classnames" ;
4
3
import { interFont , outfitFont } from "./styles/fonts" ;
5
- import RightArrow from "./styles/icons/RightArrow" ;
6
4
import CompanyLogos from "./components/CommunityLinks/CommunityLinks" ;
7
- import { contentManager } from "@/lib/contentManager " ;
5
+ import HomePage from "./components/HomePage/HomePage " ;
8
6
9
7
export default function Home ( ) {
10
- const outline = contentManager . getOutline ( ) ;
11
8
return (
12
9
< div className = { cx ( styles . main , outfitFont . className ) } >
13
10
< div className = { styles . wrapper } >
@@ -25,18 +22,7 @@ export default function Home() {
25
22
</ div >
26
23
</ div >
27
24
</ div >
28
- < Link
29
- href = {
30
- contentManager . getPathWithPrefix (
31
- outline [ 0 ] . steps [ 0 ] . fullPath ,
32
- ) as string
33
- }
34
- >
35
- < button className = { styles . mainBtn } >
36
- START NOW
37
- < RightArrow />
38
- </ button >
39
- </ Link >
25
+ < HomePage />
40
26
</ div >
41
27
< div className = { styles . footer } >
42
28
< div className = { cx ( styles . footerText , interFont . className ) } >
You can’t perform that action at this time.
0 commit comments