Skip to content

Commit 43ce3bb

Browse files
committed
extract header component
1 parent a9f804f commit 43ce3bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/header.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export default function Header() {
1717
}, []);
1818

1919
return (
20-
<header class="text-gray-500 bg-gray-900 body-font">
20+
<header class="text-gray-700 bg-white body-font">
2121
<div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
22-
<a class="flex title-font font-medium items-center text-white mb-4 md:mb-0" href="#home">
22+
<a class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0" href="#home">
2323
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-10 h-10 text-white p-2 bg-teal-700 rounded-full" viewBox="0 0 24 24">
2424
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
2525
</svg>
@@ -32,15 +32,15 @@ export default function Header() {
3232
<a class="mr-5 hover:text-white" href="#home">Twitter</a>
3333
<button onClick={() => Auth.federatedSignIn({ provider: 'COGNITO' })} class="mr-5 hover:text-white">Login</button>
3434
</nav>
35-
<button onClick={() => Auth.federatedSignIn({ provider: 'COGNITO' })} class="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0">Sign up
35+
<button onClick={() => Auth.federatedSignIn({ provider: 'COGNITO' })} class="inline-flex items-center bg-teal-700 border-0 py-1 px-3 focus:outline-none hover:bg-teal-500 rounded text-white mt-4 md:mt-0">Sign up
3636
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-1" viewBox="0 0 24 24">
3737
<path d="M5 12h14M12 5l7 7-7 7"></path>
3838
</svg>
3939
</button></> : <>
4040
<nav class="md:ml-auto flex flex-wrap items-center text-base justify-center">
4141
<a class="mr-5 hover:text-white" href="#home">Settings</a>
4242
</nav>
43-
<button onClick={() => Auth.signOut()} class="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0">Sign out
43+
<button onClick={() => Auth.signOut()} class="inline-flex items-center bg-white border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">Sign out
4444
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-1" viewBox="0 0 24 24">
4545
<path d="M5 12h14M12 5l7 7-7 7"></path>
4646
</svg>

0 commit comments

Comments
 (0)