File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function Markdown(props) {
43
43
44
44
const mdFile = markdownMap . get ( `${ id } ` ) ;
45
45
46
- console . log ( "idid=>" , id ) ;
46
+ // console.log("idid=>", id);
47
47
48
48
useEffect ( ( ) => {
49
49
//fetch("/doc/help.md");
Original file line number Diff line number Diff line change 3
3
* @Description :
4
4
*/
5
5
import { HomeWrapper } from "./styles" ;
6
+ import github from "../../assets/images/github-logo.png" ;
6
7
7
8
import { Markdown } from "../../components/Markdown" ;
8
9
9
10
export default function Home ( ) {
11
+ function go ( url ) {
12
+ window . open ( url , "_blank" ) ;
13
+ }
10
14
return (
11
15
< HomeWrapper >
12
16
< h1 className = "page-title" >
@@ -19,6 +23,14 @@ export default function Home() {
19
23
< div className = "page-content" >
20
24
< Markdown id = "m" />
21
25
</ div >
26
+ < div className = "page-footer" >
27
+ < div
28
+ className = "github-logo"
29
+ onClick = { ( ) => go ( "https://github.com/coderzii" ) }
30
+ >
31
+ < img src = { github } alt = "github" />
32
+ </ div >
33
+ </ div >
22
34
</ HomeWrapper >
23
35
) ;
24
36
}
Original file line number Diff line number Diff line change @@ -24,4 +24,12 @@ export const HomeWrapper = styled.div`
24
24
font-size: 12.8px;
25
25
line-height: 1.5;
26
26
}
27
+
28
+ .page-footer {
29
+ margin-top: 16px;
30
+ .github-logo img {
31
+ width: 32px;
32
+ height: 32px;
33
+ }
34
+ }
27
35
` ;
You can’t perform that action at this time.
0 commit comments