Skip to content
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

46 Fixing landing page #19

Merged
merged 1 commit into from
Mar 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions tr-site/src/app/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@

<body>
<app-menu></app-menu>
<div class="container home text-center">
<div class="home-text">
<div class="text-center">
<img class="logo-img trlogo" [src]="trashRadarLogo">
<div class="row">
<div class="col-lg-12">
<div class="">
<h5>Directing your local public servants to trash that needs pickup!</h5>
<p>
Have you found an area with a large buildup of uncollected trash? Use this app to mark the location, upload photographs of the trash, and tweet a reminder to your local authorities to come pick it up.
Have you found an area with a large buildup of uncollected trash? Use this app to mark the location, upload
photographs of the trash, and tweet a reminder to your local authorities to come pick it up.
</p>
</div>
</div>
<div class="login-subscribe">
<button class="btn btn-outline-success my-2 my-sm-0">Login</button>
<button class="btn btn-outline-success my-2 my-sm-0">Subscribe</button>
</div>
<a class="alert-link" href="#">Terms and Conditions</a>
<h4>Sponsored By</h4>
<a [href]="spryGroupUrl"><img class="logo-img" [src]="spryGroupLogo"></a>
</div>
<div class="login-subscribe">
<button class="btn btn-outline-success my-2 my-sm-0">Login</button>
<button class="btn btn-outline-success my-2 my-sm-0">Subscribe</button>
</div>
<a class="alert-link" href="#">Terms and Conditions</a>
<h4>Sponsored By</h4>
<a [href]="spryGroupUrl"><img class="logo-img" [src]="spryGroupLogo"></a>
</div>
</div>
</body>
4 changes: 2 additions & 2 deletions tr-site/src/app/home/home.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import "~bootstrap/scss/bootstrap";
@import '../../styles/landing';

body {
padding-top: 65px;
body {
padding-top: 65px;
}

.home {
Expand Down
45 changes: 30 additions & 15 deletions tr-site/src/app/landing/detail/detail.component.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
<div class="home text-center">
<svg version="1.1" class="trlogo" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 750 333.4" style="enable-background:new 0 0 750 333.4;" xml:space="preserve">
<g logo></g>
</svg>
<div class="home-text">
<section id="about">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<svg version="1.1" class="trlogo" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 750 333.4" style="enable-background:new 0 0 750 333.4;" xml:space="preserve">
<g logo></g>
</svg>
<h5>Directing your local public servants to trash that needs pickup!</h5>
<p>
Have you found an area with a large buildup of uncollected trash? Use this app to mark the location, upload photographs of the trash, and tweet a reminder to your local authorities to come pick it up.
</p>
</div>
</div>
<div class="login-subscribe">
<button routerLink="/login" class="btn btn-outline-success my-2 my-sm-0">Login</button>
<button class="btn btn-outline-success my-2 my-sm-0">Subscribe</button>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<p>Have you found an area with a large buildup of uncollected trash? Use this app to mark the location, upload
photographs of the trash, and tweet a reminder to your local authorities to come pick it up.</p>
</div>
</div>
<a class="alert-link" href="#">Terms and Conditions</a>
<h4>Sponsored By</h4>
<a [href]="spryGroupUrl"><img class="logo-img" src="./assets/img/spry-group-logo.png"></a>
</div>
<div class="row text-center">
<div class="col-lg-4 col-lg-offset-4">
<div class="login-subscribe">
<button routerLink="/login" class="btn btn-outline-success my-2 my-sm-0">Login</button>
<button class="btn btn-outline-success my-2 my-sm-0">Subscribe</button>
</div>
</div>
</div>
<div class="row text-center">
<div class="col-lg-4 col-lg-offset-4">
<a class="alert-link" href="#">Terms and Conditions</a>
<h4>Sponsored By</h4>
<a [href]="spryGroupUrl"><img class="logo-img" src="./assets/img/spry-group-logo.png"></a>
</div>
</div>
</div>
</section>
7 changes: 6 additions & 1 deletion tr-site/src/app/landing/detail/detail.component.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
@import "~bootstrap/scss/bootstrap";
@import '../../../styles/landing';

.trlogo {
width: 45%;
}
section#about {
padding: 4em;
}
.login-subscribe {
padding: 2em 0;
}

g[logo] {
fill: #18BC9C;
Expand Down
1 change: 0 additions & 1 deletion tr-site/src/app/landing/header/header.component.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@import "~bootstrap/scss/bootstrap";
@import '../../../styles/landing';
42 changes: 30 additions & 12 deletions tr-site/src/app/landing/nav-bar/nav-bar.component.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
<div id="skipnav"><a href="#maincontent">Skip to main content</a></div>
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top navbar-custom">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="#page-top">Trash Radar</a>
</div>

<!-- Navigation -->
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top navbar-custom">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<a class="navbar-brand" href="#page-top">Trash Radar</a>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
<a href="#page-top"></a>
</li>
<li class="page-scroll">
<a href="#portfolio">Portfolio</a>
</li>
<li class="page-scroll">
<a href="#detail">Detail</a>
</li>
<li class="page-scroll">
<a href="#about">About</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
6 changes: 6 additions & 0 deletions tr-site/src/assets/css/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions tr-site/src/assets/js/bootstrap.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions tr-site/src/assets/js/jquery.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions tr-site/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/assets/css/bootstrap.min.css" media="screen">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>Loading...</app-root>
</body>
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
</html>
3 changes: 3 additions & 0 deletions tr-site/src/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/* You can add global styles to this file, and also import other style files */
body {
margin: 0;
}
9 changes: 7 additions & 2 deletions tr-site/src/styles/landing.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "~bootstrap/scss/bootstrap";
@import "_fonts";

body {
Expand Down Expand Up @@ -100,6 +99,12 @@ header .intro-text .skills {
font-size: 1.75em;
}
}
nav#mainNav {
margin-bottom: 0;
ul {
display: inline;
}
}
.navbar-custom {
background: #2C3E50;
font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
Expand Down Expand Up @@ -511,4 +516,4 @@ fieldset[disabled] .btn-success.active {
}
div#maincontent {
outline: none;
}
}