-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#167164932 landing page #7
Conversation
Remove the dummy component and route |
Move the membership and weekly novel component to the landing page component. Also remove the components in the folder and file name. We already know its a component because its in the component folder |
Change |
I thought there was only one without an api. I don't see any api calls here? |
Noted, would remove the dummy component |
Noted, would work on it |
Noted, would rename the component |
There is currently no particular api call for the landing page, but I can try and make use of the get novels api call to achieve the novel of the week |
You need to add support for wider screens. |
And the hero image, is that not supposed to be served by an API? |
And can you cherry-pick nero's navbar and make the necessary update so you page can be complete |
Okay, would do that |
Noted, would work on it |
This can also be served from the get novels api call |
1b504f2
to
0e7eb4c
Compare
src/components/App.js
Outdated
import Navbar from './layout/Navbar'; | ||
import LandingPage from './LandingPage/LandingPage'; | ||
import Footer from './layout/Footer/Footer'; | ||
import './app.scss'; | ||
|
||
const Welcome = () => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put this in a seperate component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
@@ -0,0 +1,95 @@ | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change all react file to use .jsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
#writingCaption { | ||
min-height:100%; | ||
background-size:cover; | ||
background:url(https://res.cloudinary.com/allebd/image/upload/v1567024807/dahlia/Rectangle_4.png) rgba(0,0,0,0.3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the css under a parent class in the component so it doesn't clash with other css classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
<h4>Quick Links</h4> | ||
<div className="subFooter"> | ||
<ul> | ||
<li><Link to="/">Privacy Policy</Link></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can set the to
property to#
so it doesnt leave the page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
import Materialize from 'materialize-css'; | ||
|
||
const AuthenticatedNav = () => { | ||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have the states, setStates and use effects in a separate file so that this component file on focuses on rendering the component. The file name can be AuthenticatedNav.js
while this file becomes AuthenticatedNav.jsx
as i requested above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
/> | ||
<a href="#!" type="button" data-target="mobile-demo" className="sidenav-trigger"> | ||
<img src="https://img.icons8.com/ios/50/000000/menu.png" alt="menu" className="font-icon" /> | ||
{/* <i className="fas fa-bars" />/ */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this if its not been used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
import UnauthenticatedNav from './UnauthenticatedNav'; | ||
|
||
const Navbar = () => { | ||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to a separate js file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
$color-white: #ffffff; | ||
$color-black: #000008; | ||
|
||
.navbar-fixed { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap css in a parent class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
Create Footer Component Create other component for landing page Create styling [Finishes #167164932]
0e7eb4c
to
b6c262c
Compare
|
||
const LandingPage = () => ( | ||
<div> | ||
<Navbar /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The navbar and footer component is general to all components so its not supposed to be here. it should be in the router file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
</div> | ||
</section> | ||
</div> | ||
<Footer /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to router file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted, Treated Accordingly
@@ -0,0 +1,26 @@ | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this file in folder and add its css file with it
@@ -0,0 +1,240 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Break up this scss file. See suggestion above
Pivotal tracker story
#167164932
What does this PR do?
User should be able to see a landing page
Summary of Task
How can this be tested?
Screenshots (if appropriate)
Sample of the landing page
Sample of landing page mobile view