generated from BuildForSDG/js-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Landingpage #12
Closed
Closed
Landingpage #12
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f55d516
newline
michaelgobz 6e501bf
feat: Configured react
briantical 9b5f19d
feat: configuring the home page
briantical 70a564d
fix: resizing the landing page
briantical 4970971
fix: resizing the landing page
briantical 6209166
fix : merging conflicts
briantical 22ed9ba
Merge branch 'developement' into landingpage
briantical File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,6 +1,7 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-react', | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#root { | ||
width: 100vw; | ||
height: 100vh; | ||
} |
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,10 @@ | ||
const app = async () => '#BuildforSDG'; | ||
export default app; | ||
import React from 'react'; | ||
import { Home } from './views'; | ||
|
||
import './App.css'; | ||
// Use bootstrap for styling | ||
import 'bootstrap/dist/css/bootstrap.min.css'; | ||
|
||
const App = () => <Home />; | ||
|
||
export default App; |
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,15 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
||
<h2 data-app-name></h2> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>URGO</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
|
||
<script src="./index.js"></script> | ||
|
||
</body> | ||
</html> | ||
</body> | ||
</html> |
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,11 +1,7 @@ | ||
import app from './app'; | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
|
||
const startApp = async () => { | ||
const header = document.querySelector('[data-app-name]'); | ||
if (!header) return; | ||
import App from './App'; | ||
|
||
const programName = await app(); | ||
header.textContent = programName; | ||
}; | ||
|
||
document.addEventListener('DOMContentLoaded', startApp); | ||
const root = document.getElementById('root'); | ||
render(<App />, root); |
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,23 @@ | ||
.footer { | ||
bottom: 0; | ||
width: 100%; | ||
min-height: 96px; | ||
position: absolute; | ||
color: rgb(255, 255, 255); | ||
background-color: rgb(34, 34, 34); | ||
} | ||
|
||
#footer_content { | ||
max-width: 960px; | ||
} | ||
|
||
.footer a, | ||
.footer a:hover { | ||
color: rgb(255, 255, 255); | ||
text-decoration: none; | ||
} | ||
|
||
.footer a:hover, | ||
.footer a:active { | ||
text-decoration: underline; | ||
} |
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,41 @@ | ||
import React from 'react'; | ||
import { Row, Col } from 'react-bootstrap'; | ||
import './Footer.css'; | ||
|
||
const Footer = () => ( | ||
<Row className="footer align-items-center justify-content-center"> | ||
<Col id="footer_content"> | ||
<Row className="justify-content-center align-items-center"> | ||
<Col className="col-4"> | ||
<a href="#" style={{ fontWeight: 'bold' }}> | ||
ngrok | ||
</a> | ||
</Col> | ||
<Col> | ||
<Row> | ||
<Col> | ||
<a href="#">Goals</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Team</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Contact</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Initiatives</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Login</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Faqs </a> | ||
</Col> | ||
</Row> | ||
</Col> | ||
</Row> | ||
</Col> | ||
</Row> | ||
); | ||
|
||
export default Footer; |
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,69 @@ | ||
.content { | ||
width: 100%; | ||
position: absolute; | ||
top: 0; | ||
bottom: 96px; | ||
} | ||
|
||
#homecontent { | ||
min-width: 960px; | ||
padding-top: 96px; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
|
||
#navcontent { | ||
width: 712px; | ||
min-height: 96px; | ||
margin-bottom: 48px; | ||
} | ||
|
||
#navcontent a { | ||
color: rgb(34, 34, 34); | ||
} | ||
|
||
#brand { | ||
width: 640px; | ||
} | ||
|
||
#brand p { | ||
font-style: italic; | ||
color: rgb(96, 95, 95); | ||
} | ||
|
||
#brand a { | ||
text-decoration: none; | ||
} | ||
|
||
#brand a div { | ||
height: 3rem; | ||
max-width: 20rem; | ||
border-radius: 1rem; | ||
color: rgb(255, 255, 255); | ||
background-color: rgb(0, 0, 0); | ||
justify-content: center; | ||
align-items: center; | ||
display: flex; | ||
padding: 0 0.5rem; | ||
} | ||
|
||
#about { | ||
width: 640px; | ||
margin-top: 48px; | ||
min-height: 96px; | ||
} | ||
|
||
.trend { | ||
font-weight: bold; | ||
} | ||
|
||
#about a { | ||
color: rgb(34, 34, 34); | ||
text-decoration: none; | ||
} | ||
|
||
#sidebar { | ||
background-color: rgb(34, 34, 34); | ||
} |
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,61 @@ | ||
import React from 'react'; | ||
import { Container, Row, Col } from 'react-bootstrap'; | ||
|
||
import Footer from '../Footer'; | ||
import './Home.css'; | ||
|
||
const Home = () => ( | ||
<Container fluid style={{ width: '100%', height: '100%' }}> | ||
<Row className="content"> | ||
<Col id="homecontent"> | ||
<Row id="navcontent" className="justify-content-center align-items-center"> | ||
<Col className="col-3"> | ||
<a href="#" style={{ fontWeight: 'bold' }}> | ||
ngrok | ||
</a> | ||
</Col> | ||
<Col> | ||
<Row> | ||
<Col> | ||
<a href="#">Goals</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Team</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Contact</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Initiatives</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Login</a> | ||
</Col> | ||
<Col> | ||
<a href="#">Faqs </a> | ||
</Col> | ||
</Row> | ||
</Col> | ||
</Row> | ||
<Row id="brand" className="justify-content-center align-items-center"> | ||
<h2>Uganda Governments Revenue Online</h2> | ||
<p>You and I can help improve Our Country and local communitys Revenue</p> | ||
<a href="#"> | ||
<div>MOBILIZE AND BE PART OF GROWTH</div> | ||
</a> | ||
</Row> | ||
<Row id="about" className="justify-content-center align-items-center"> | ||
<Col className="trend col-6">#sdgcompetition2020</Col> | ||
<Col className="col-4">Copyright@Team-266</Col> | ||
<Col className="col-2"> | ||
<a href="#">Github</a> | ||
</Col> | ||
</Row> | ||
</Col> | ||
<Col id="sidebar" /> | ||
</Row> | ||
<Footer /> | ||
</Container> | ||
); | ||
|
||
export default Home; |
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,4 @@ | ||
import Home from './Home'; | ||
import Footer from './Footer'; | ||
|
||
export { Home, Footer }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
before we merge we need to make it responsive so its pending
and thats when we shall resolve the checks via codacy
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.
Kindly provide the designs for the mobile view for me to proceed
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.
please check the slack channel
https://www.figma.com/file/s7kKafXNQ6bu8LF8IIIi3H/UGRO-MOBILE-00?node-id=0%3A1
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
I will update you shortly