File tree Expand file tree Collapse file tree 14 files changed +247
-264
lines changed
Expand file tree Collapse file tree 14 files changed +247
-264
lines changed Original file line number Diff line number Diff line change 11// import PureFooter from "./PureFooter"
22import React , { useState , useCallback } from "react"
33import Subscribe from "./Subscribe/Subscribe.tsx"
4+ import PureFooter from "./PureFooter/PureFooter.tsx"
45
56const Footer = ( ) => {
67 return (
78 < >
8- < Subscribe />
9- { /* <PureFooter></PureFooter> */ }
9+ < Subscribe />
10+ < PureFooter />
1011 </ >
1112 )
1213}
Original file line number Diff line number Diff line change 1+ .footerLayout {
2+ grid-template-areas : "logo about resource follow version" ;
3+ @apply grid w-full pb-[80px ] pt-[60px ] px-[20px ] grid-cols-2 gap-[1em ] bg-[var (--black-100 )] md:grid-cols-[2fr _2fr _2fr _2fr _4fr ] md:pb-[100px ];
4+ }
5+
6+ @media screen and (max-width : 768px ) {
7+ .footerLayout {
8+ grid-template-areas :
9+ "logo follow"
10+ "about resource"
11+ "version version" ;
12+ }
13+ }
14+
15+ .footerLayout .logo {
16+ grid-area : logo;
17+ }
18+
19+ .footerLayout .logo img {
20+ width : 100px ;
21+ height : auto;
22+ }
23+
24+ .footerLayout .about {
25+ grid-area : about;
26+ display : flex;
27+ flex-direction : column;
28+ align-items : flex-start;
29+ justify-content : flex-start;
30+ }
31+
32+ .footerLayout .title {
33+ color : # fff8f3 ;
34+ font-size : 18px ;
35+ font-style : normal;
36+ font-weight : 600 ;
37+ line-height : normal;
38+ letter-spacing : 0.18px ;
39+ }
40+
41+ .footerLayout .content {
42+ list-style : none;
43+ margin-bottom : 16px ;
44+ }
45+
46+ .footerLayout .content a {
47+ color : # fff8f3 ;
48+ font-size : 15px ;
49+ font-style : normal;
50+ font-weight : 400 ;
51+ line-height : normal;
52+ letter-spacing : 0.15px ;
53+ }
54+
55+ .footerLayout .content a : hover {
56+ color : var (--orange-500 );
57+ }
58+
59+ .footerLayout .follow {
60+ grid-area : follow;
61+ display : flex;
62+ flex-direction : column;
63+ align-items : flex-start;
64+ justify-content : flex-start;
65+ }
66+
67+ .footerLayout .follow .title {
68+ @apply hidden md:block;
69+ }
70+
71+ .footerLayout .follow a {
72+ color : # fff8f3 ;
73+ margin-right : 27px ;
74+ }
75+
76+ .footerLayout .follow a : hover {
77+ color : var (--orange-500 );
78+ }
79+
80+ .footerLayout .version {
81+ grid-area : version;
82+ color : # fff8f3 ;
83+ font-size : 15px ;
84+ font-style : normal;
85+ font-weight : 400 ;
86+ line-height : 25px ; /* 166.667% */
87+ letter-spacing : 0.15px ;
88+ @apply md:text-right;
89+ }
Original file line number Diff line number Diff line change 1+ import { useState , useEffect } from "preact/hooks"
2+ import { aboutList , mediaList , resourceList } from "../helper.tsx"
3+ import styles from "./PureFooter.module.css"
4+
5+ const Footer = ( ) => {
6+ return (
7+ < div className = { styles . footerLayout } >
8+ < a className = { styles . logo } href = "/" >
9+ < img src = "/scroll-logo-light.svg" />
10+ </ a >
11+ < div className = { styles . about } >
12+ < p className = { styles . title } > About Scroll</ p >
13+ < ul >
14+ { aboutList . map ( ( item ) => (
15+ < li key = { item . name } className = { styles . content } >
16+ < a href = { item . href } > { item . name } </ a >
17+ </ li >
18+ ) ) }
19+ </ ul >
20+ </ div >
21+ < div className = { styles . resource } >
22+ < p className = { styles . title } > Resources</ p >
23+ < ul >
24+ { resourceList . map ( ( item ) => (
25+ < li key = { item . name } className = { styles . content } >
26+ < a href = { item . href } > { item . name } </ a >
27+ </ li >
28+ ) ) }
29+ </ ul >
30+ </ div >
31+
32+ < div className = { styles . follow } >
33+ < p className = { styles . title } > Follow Us</ p >
34+ < div >
35+ { mediaList . map ( ( item ) => (
36+ < a external href = { item . href } key = { item . name } >
37+ {
38+ < item . icon />
39+ }
40+ </ a >
41+ ) ) }
42+ </ div >
43+ </ div >
44+
45+ < p className = { styles . version } > © Version 1.0.0 Scroll Ltd 2023</ p >
46+ </ div >
47+ )
48+ }
49+
50+ export default Footer
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5353}
5454
5555.success {
56- font-size : 16 px ;
56+ font-size : 20 px ;
5757 font-weight : 600 ;
5858 color : # fff ;
5959 background-color : # 1f1f1f ;
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ const EmailInput = (props) => {
1010 }
1111 }
1212
13- const test = ( ) => {
14- console . log ( "test" )
15- }
16-
17-
1813 return (
1914 < div className = { styles . container } >
2015 < div
@@ -23,7 +18,7 @@ const EmailInput = (props) => {
2318 ...( end && { width : "100%" } ) ,
2419 } }
2520 >
26- < button className = { styles . iconButton } onClick = { test } >
21+ < button className = { styles . iconButton } onClick = { onClick } >
2722 < img
2823 src = "/images/footer/arrow-right.svg"
2924 alt = "arrow-right"
You can’t perform that action at this time.
0 commit comments