diff --git a/client/index.css b/client/index.css index d456db6..87bbabd 100644 --- a/client/index.css +++ b/client/index.css @@ -4,6 +4,7 @@ */ :root { + --background-color: #e7d900; --text-color: #1e1d6e; } body { diff --git a/client/layouts/Github.tsx b/client/layouts/Github.tsx deleted file mode 100644 index 3ed748d..0000000 --- a/client/layouts/Github.tsx +++ /dev/null @@ -1,44 +0,0 @@ -/** - * A collection of popular layouts and patterns made with CSS (https://csslayout.io) - * (c) 2019 - 2020 Nguyen Huu Phuoc - */ - -import React from 'react'; - -const Github: React.FC<{}> = () => { - return ( - - - - - - - - ); -}; - -export default Github; diff --git a/client/layouts/Header.tsx b/client/layouts/Header.tsx new file mode 100644 index 0000000..49f9379 --- /dev/null +++ b/client/layouts/Header.tsx @@ -0,0 +1,27 @@ +/** + * A collection of popular layouts and patterns made with CSS (https://csslayout.io) + * (c) 2019 - 2020 Nguyen Huu Phuoc + */ + +import * as React from 'react'; +import { Link } from 'react-router-dom'; + +import './header.css'; + +const Header: React.FC<{}> = () => { + return ( +
+
+
+ + + + Patterns + GitHub +
+
+
+ ); +}; + +export default Header; diff --git a/client/layouts/Layout.tsx b/client/layouts/Layout.tsx index 68e3633..e028996 100644 --- a/client/layouts/Layout.tsx +++ b/client/layouts/Layout.tsx @@ -3,22 +3,20 @@ * (c) 2019 - 2020 Nguyen Huu Phuoc */ -import React, { useEffect } from 'react'; +import * as React from 'react'; import Footer from './Footer'; -import Github from './Github'; +import Header from './Header'; const Layout: React.FC<{}> = ({ children }) => { - useEffect(() => { + React.useEffect(() => { window.scrollTo(0, 0); }, []); return ( <> - -
- {children} -
+
+ {children}