Skip to content

Commit

Permalink
hero img, intro boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsambrotta committed Mar 13, 2017
1 parent 41406ff commit 39a7002
Show file tree
Hide file tree
Showing 14 changed files with 327 additions and 14 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ The source code behind OTS' main web site.

This project is built with the help of

* bootstrap
* [Bourbon](http://bourbon.io)
* [Bitter](bitters.bourbon.io)
* [Flexbox Grid](http://flexboxgrid.com/)
* jekyll

In order to be able to compile the site on your own computer, you can install
Expand Down
4 changes: 2 additions & 2 deletions _layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ <h2>{{page.tagline}}</h2>
</div>
</div>

<div class="container">
<section class="section-bkg container">
{{ content }}
</div>
</section>
</div>


Expand Down
8 changes: 8 additions & 0 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ header {
}
}

.section-bkg {
margin-top: 50px;
margin-bottom: 50px;
h2 {
font-weight: 200;
font-size: 3rem;
}
}

footer {
padding: 2em 3em 0.5em 3em;
Expand Down
2 changes: 2 additions & 0 deletions _sass/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
@import "media";
@import "tables";
@import "typography";
@import "icons";
@import "utility";
4 changes: 4 additions & 0 deletions _sass/base/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ html,
body {
height: 100%;
}

a {
cursor: pointer;
}
10 changes: 10 additions & 0 deletions _sass/base/_utility.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

// shapes
.u-circle-centered {
border-radius: 50%;
background-color: $brand-color;
width: 150px;
height: 150px;
margin: 0 auto;
margin-bottom: 20px;
}
20 changes: 20 additions & 0 deletions _sass/base/icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$svg-path: "/assets/statics/svg/";


.i-idea-baloons {
background-image: url(#{$svg-path}chat.svg);
width: 100px;
height: 100px;
}

.i-world-connections {
background-image: url(#{$svg-path}world-connection.svg);
width: 120px;
height: 120px;
}

.i-people-chat {
background-image: url(#{$svg-path}people-chat.svg);
width: 80px;
height: 80px;
}
44 changes: 41 additions & 3 deletions _sass/layouts/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,61 @@
background: transparent;
position: absolute;
width: 100%;
margin-top: 0;
margin-top: 10px;
}
.jumbo {
margin-top: 0;
height: 80vh;
min-height: 350px;
background-size: cover;
background-position-y: 20%;
.container {
color: $brand-color;
color: $white;
text-align: center;
position: absolute;
top: 50%;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-shadow: -1px 1px 3px rgba($white, 0.6);
h1, h2 {
padding: 0;
}
h1 {
font-size: 4rem;
margin-bottom: 20px;
}
}
}

.intro {
text-align: center;
p {
text-align: center;
}

h2 {
margin-bottom: 10px;
padding-bottom: 10px;
}
.intro__boxes {
margin-top: 60px;
.intro__boxes__box {
padding: 0 10px;
display: inline-block;
color: $brand-color-black;
.u-circle-centered {
display: flex;
justify-content: center;
align-items: center;
}
h3 {
font-weight: 200;
}
span {
display: inline-block;
margin-top: -5px;
}
}
}
}
}
Binary file added assets/statics/backgrounds/home-hero-bkg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/statics/backgrounds/main_header.jpg
Binary file not shown.
20 changes: 20 additions & 0 deletions assets/statics/svg/chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions assets/statics/svg/people-chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 39a7002

Please sign in to comment.