-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
984 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ node_modules | |
.env | ||
dist | ||
coverage | ||
.vscode/ | ||
.vscode/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
PORT= | ||
NODE_ENV= | ||
NODE_ENV= | ||
SERVER_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "hello@cypress.io", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
describe('Authors Haven Frontend Pages', () => { | ||
it('should show welcome message', () => { | ||
it('should show novel of the week title', () => { | ||
cy.visit('/'); | ||
cy.get('h1') | ||
.should('have.text', 'Authors Haven'); | ||
cy.get('#weekNovel') | ||
.find('h2') | ||
.should('have.text', 'Novel of the Week'); | ||
}); | ||
it('Display text of Routes', () => { | ||
cy.visit('/hello'); | ||
cy.get('h1') | ||
.should('have.text', 'Hello AnDahlian'); | ||
cy.get('h3') | ||
.should('have.text', 'You Rock!!!'); | ||
|
||
it('should show membership title', () => { | ||
cy.visit('/'); | ||
cy.get('#membership') | ||
.find('h2') | ||
.should('have.text', 'Membership'); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import Router from './Router/Router'; | ||
import './app.scss'; | ||
|
||
const App = () => ( | ||
<Router /> | ||
); | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import './banner.scss'; | ||
|
||
const Banner = () => ( | ||
<div> | ||
<section id="banner"> | ||
<div className="bannerGradient"> | ||
<h2>THE MAN IN THE FOREST OF DREAMS</h2> | ||
<div className="bannerText"> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, | ||
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
Ut enim ad minim veniam, quis nostrud exercitation ullamco | ||
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure | ||
dolor in reprehenderit in voluptate velit esse cillum dolore | ||
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat | ||
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</p> | ||
</div> | ||
<button type="button" className="btnLarge">View Snippet</button> | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
|
||
export default Banner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* banner.scss | ||
* | ||
* Dahlia Frontend - Andela Simulations Challenge ©️ 2019 | ||
* Andela Simulations Challenge ©️ 2019 | ||
* https://github.com/andela/dahlia-ah-frontend | ||
* | ||
* SCSS Designed by TeamDahlia. | ||
*/ | ||
|
||
$grey: #e5e5e5; | ||
$white: #ffffff; | ||
$black: #000008; | ||
|
||
/* Banner */ | ||
#banner { | ||
background: url(https://res.cloudinary.com/allebd/image/upload/v1567031693/dahlia/banner.png); | ||
background-repeat: no-repeat; | ||
background-position: center top; | ||
background-size: 100% auto; | ||
height: 800px; | ||
color: $white; | ||
|
||
.bannerGradient { | ||
width: 690px; | ||
height: 100%; | ||
overflow: hidden; | ||
background: rgba(0,0,0,0.3); | ||
box-shadow: 0px 0px 40px 40px rgba(0,0,0,0.3); | ||
align-items: center; | ||
padding: 4em; | ||
padding-top: 16em; | ||
|
||
h2 { | ||
font-size: 3.5em; | ||
line-height: 1.2; | ||
margin: 0; | ||
} | ||
} | ||
} | ||
|
||
@media(max-width: 1200px){ | ||
#banner { | ||
background-size: auto; | ||
height: 100%; | ||
} | ||
} | ||
|
||
@media(max-width: 900px){ | ||
#banner { | ||
.bannerGradient { | ||
width: 100%; | ||
padding-top: 30%; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from 'react'; | ||
import Banner from './Banner/Banner'; | ||
import NovelOfTheWeek from './NovelOfTheWeek/NovelOfTheWeek'; | ||
import './landingPage.scss'; | ||
|
||
const LandingPage = () => ( | ||
<div> | ||
<div className="landingPage"> | ||
<Banner /> | ||
<NovelOfTheWeek /> | ||
<section id="writingCaption"> | ||
<p>The Best Place To Express Yourself and Collaborate</p> | ||
<button type="button" className="btnLarge">Start Writing</button> | ||
</section> | ||
<section id="membership"> | ||
<h2>Membership</h2> | ||
<div className="membershipBox"> | ||
<div className="freeMembership"> | ||
<div> | ||
<h4>Free</h4> | ||
<ul> | ||
<li>Read Novels</li> | ||
<li>Bookmark Novels</li> | ||
<li>Follow Authors</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<p>SIGN UP</p> | ||
</div> | ||
</div> | ||
<div className="subscribeMembership"> | ||
<div> | ||
<h4>Subscription</h4> | ||
<ul> | ||
<li>Read Novels</li> | ||
<li>Bookmark Novels</li> | ||
<li>Follow and Collaborate with other Authors</li> | ||
<li>Like and Comment on Novels</li> | ||
<li>Novel Review and Analytics</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<p>SUBSCRIBE</p> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default LandingPage; |
40 changes: 40 additions & 0 deletions
40
src/components/LandingPage/NovelOfTheWeek/NovelOfTheWeek.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import './novelOfTheWeek.scss'; | ||
|
||
const NovelOfTheWeek = () => ( | ||
<div> | ||
<section id="weekNovel"> | ||
<h2>Novel of the Week</h2> | ||
<div className="weekNovelBox"> | ||
<div className="weekNovelImage"> | ||
<img src="https://res.cloudinary.com/allebd/image/upload/v1567031973/dahlia/weeklynovel.png" alt="weekly novel" /> | ||
</div> | ||
<div className="weekNovelDescription"> | ||
<div> | ||
<h3>One Way Trip</h3> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, | ||
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
Ut enim ad minim veniam, quis nostrud exercitation ullamco | ||
laboris nisi ut aliquip ex ea commodo consequat. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. | ||
Excepteur sint occaecat cupidatat non proident, | ||
sunt in culpa qui officia deserunt mollit anim id est laborum.. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. | ||
Excepteur sint occaecat cupidatat non proident, | ||
sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
Excepteur sint occaecat cupidatat non proident, | ||
sunt in culpa qui officia deserunt mollit anim id est | ||
laborum upidatat non proident, sunt in culpa qui officia. | ||
</p> | ||
<button type="button" className="btnMedium">View Snippet</button> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
|
||
export default NovelOfTheWeek; |
68 changes: 68 additions & 0 deletions
68
src/components/LandingPage/NovelOfTheWeek/novelOfTheWeek.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* novelOfTheWeek.scss | ||
* | ||
* Dahlia Frontend - Andela Simulations Challenge ©️ 2019 | ||
* Andela Simulations Challenge ©️ 2019 | ||
* https://github.com/andela/dahlia-ah-frontend | ||
* | ||
* SCSS Designed by TeamDahlia. | ||
*/ | ||
|
||
$grey: #e5e5e5; | ||
$white: #ffffff; | ||
$black: #000008; | ||
|
||
/* Novel of the Week Section */ | ||
#weekNovel { | ||
display: grid; | ||
grid-template-rows: auto; | ||
grid-template-areas: "weekNovel-title" | ||
"weekNovel-box"; | ||
background: $grey; | ||
align-self: center; | ||
text-align: center; | ||
width: 100%; | ||
padding-top: 5px; | ||
padding-bottom: 5%; | ||
|
||
h2 { | ||
grid-area: weekNovel-title; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
font-size: 36px; | ||
} | ||
} | ||
|
||
.weekNovelBox { | ||
grid-area: weekNovel-box; | ||
display: grid; | ||
padding: 20px; | ||
padding-top: 0; | ||
grid-template-columns: auto auto; | ||
|
||
.weekNovelImage { | ||
padding: 20px; | ||
|
||
img { | ||
width: 300px; | ||
height: 300px; | ||
} | ||
} | ||
|
||
.weekNovelDescription { | ||
text-align: left; | ||
padding: 20px; | ||
|
||
h3 { | ||
font-size: 1.17em; | ||
} | ||
} | ||
} | ||
|
||
|
||
@media(max-width: 900px){ | ||
.weekNovelBox { | ||
grid-template-columns: 1fr; | ||
text-align: center; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/components/LandingPage/__snapshots__/landingPage.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App component renders correctly 1`] = `ReactWrapper {}`; |
Oops, something went wrong.