Skip to content

Commit

Permalink
Merge pull request #26 from fac-13/style
Browse files Browse the repository at this point in the history
Style
  • Loading branch information
Nicos authored Apr 19, 2018
2 parents 4a269c4 + c480ce4 commit 8fdbafc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 13 deletions.
58 changes: 52 additions & 6 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ body {
main {
}

.header{
color: white;
text-align: center;
font-size: 2rem;
}

.nav__container {
position: fixed;
position: fixed;
display: block;
top: 0;
height: 9vh;
Expand All @@ -37,17 +43,39 @@ width: 100%;
}
.section__banner {
height: 100vh;
background: url('../images/background.jpg');
background: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)), url('../images/background.jpg') ;
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
}
.section__coins {
width: 100%;
margin: 0 auto;
}
.coins__list {
background-color: white;
margin: 200px;
/* background-color: white; */
margin: 0 auto;
display: grid;
height: 35vh;
width: 60%;
grid-template-columns: repeat(5,1fr);
grid-gap: 5%;
text-align: center;
}
.coin__list--item {
}

.coin__list--item img {
height: auto;
width: 100%;
transform-style: preserve-3d;
transition: transform 1s;
}

.coin__list--item img:hover {
transform: rotateY( 360deg );
}
.coin__logo {
}

Expand Down Expand Up @@ -81,22 +109,40 @@ margin: auto;
}

.coin-article__body {

}

.coin-article__body div{
border: black solid 1px;
border: black solid 1px;
padding: 10px;
}

.coin-article__footer {
background-color: gray;
}



/* .footer__container {}
.error {}
.error__desc {}
.error__msg {}
.error__image {}
*/

/* Media Queries */
@media only screen and (max-width: 600px) {

.coins__list{
width: 90%;
}

.header{
font-size: 1.5rem;
}

.coins__list {
height: 20vh;
}
}
13 changes: 6 additions & 7 deletions src/views/home.hbs
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<section class="section__banner">

<h1>The future is FACoin!!</h1>
<h3>And the future looks rich</h3>
<h1 class="header">Choose a coin to find more info:</h1>

<div class="section__coins">
<ul class="coins__list">
<div class="coins__list">

{{#each allCoins}}

<li class="coin__list--item">
<div class="coin__list--item">
<a href="/{{this.symbol}}">
{{!-- <div class="coin__logo" style="background-image: url(/images/coins/{{ this.symbol }}.svg)"></div> --}}
<img src="/images/coins/{{ this.symbol }}.svg"/>
<span>{{ this.symbol }}</span>
</a>
</li>
</div>


{{/each}}

</ul>
</div>
</div>
</section>

0 comments on commit 8fdbafc

Please sign in to comment.