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) {
4343
4444 const mdFile = markdownMap . get ( `${ id } ` ) ;
4545
46- console . log ( "idid=>" , id ) ;
46+ // console.log("idid=>", id);
4747
4848 useEffect ( ( ) => {
4949 //fetch("/doc/help.md");
Original file line number Diff line number Diff line change 33 * @Description :
44 */
55import { HomeWrapper } from "./styles" ;
6+ import github from "../../assets/images/github-logo.png" ;
67
78import { Markdown } from "../../components/Markdown" ;
89
910export default function Home ( ) {
11+ function go ( url ) {
12+ window . open ( url , "_blank" ) ;
13+ }
1014 return (
1115 < HomeWrapper >
1216 < h1 className = "page-title" >
@@ -19,6 +23,14 @@ export default function Home() {
1923 < div className = "page-content" >
2024 < Markdown id = "m" />
2125 </ 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 >
2234 </ HomeWrapper >
2335 ) ;
2436}
Original file line number Diff line number Diff line change @@ -24,4 +24,12 @@ export const HomeWrapper = styled.div`
2424 font-size: 12.8px;
2525 line-height: 1.5;
2626 }
27+
28+ .page-footer {
29+ margin-top: 16px;
30+ .github-logo img {
31+ width: 32px;
32+ height: 32px;
33+ }
34+ }
2735` ;
You can’t perform that action at this time.
0 commit comments