Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
oogxdd committed Jul 26, 2020
1 parent 2a6cb95 commit 9d15d64
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 25 deletions.
23 changes: 16 additions & 7 deletions src/atomic/molecules/footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,28 @@ import React from 'react'
const Links = () => (
<ul className="footer-nav">
<li>
<a href="/">Help center</a>
<a href="https://www.iubenda.com/terms-and-conditions/31556758">
Privacy Policy
</a>
</li>
<li>
<a href="/">Privacy Policy</a>
<a href="https://www.iubenda.com/terms-and-conditions/31556758">
Terms of Service
</a>
</li>
<li>
<a href="/">Terms of Service</a>
<a href="https://calmpaper.com/books/8/1">About Us</a>
</li>
<li>
<a href="/">About Us</a>
</li>
<li>
<a href="/">Contact Us</a>
<a
href="/"
onClick={(e) => {
e.preventDefault()
document.getElementById('voicestorychatButton').click()
}}
>
Contact Us
</a>
</li>
</ul>
)
Expand Down
36 changes: 19 additions & 17 deletions src/components/Layout/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ const User = ({ user }) => (
)

const LoginBtn = () => (
<a
href={`${process.env.REACT_APP_BACKEND_URL}/auth/google`}
className="btn-login"
>
Log In
</a>
<li className="header-nav__item" style={{ position: 'relative' }}>
<a
className="header-nav__link"
href={`${process.env.REACT_APP_BACKEND_URL}/auth/google`}
>
Log In
</a>
</li>
)

export default ({ home }) => {
Expand All @@ -57,24 +59,24 @@ export default ({ home }) => {
<Create />
</li>
)}
{!home && !user && (
<li className="header-nav__item">
<a
href={`${process.env.REACT_APP_BACKEND_URL}/auth/google`}
className="btn-login"
>
Sign Up
</a>
</li>
)}
{user && (
<li className="header-nav__item" style={{ position: 'relative' }}>
<Notifications />
</li>
)}
{user ? <User user={user} /> : <LoginBtn />}
</ul>
</nav>
{user ? <User user={user} /> : <LoginBtn />}
{!user && (
<li className="header-nav__item">
<a
href={`${process.env.REACT_APP_BACKEND_URL}/auth/google`}
className="btn-login"
>
Sign Up
</a>
</li>
)}
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home/Hero/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default () => (
className="main-search"
style={{ display: 'flex', justifyContent: 'center' }}
>
<a href={`https://calmpaper.com/books/8`}>
<a href={`https://calmpaper.com/books/8/1`}>
<button type="submit" style={{ position: 'relative', width: 139 }}>
Learn more
</button>
Expand Down

1 comment on commit 9d15d64

@vercel
Copy link

@vercel vercel bot commented on 9d15d64 Jul 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.