homepage work first draft
This commit is contained in:
parent
292d31aa1e
commit
08e03c11f6
12 changed files with 90 additions and 3 deletions
62
app/assets/javascripts/particles-bg.js
Normal file
62
app/assets/javascripts/particles-bg.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -251,13 +251,36 @@ body.action-home {
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.homeLogo {
|
||||||
|
position: fixed;
|
||||||
|
top: 10px;
|
||||||
|
left: 20px;
|
||||||
|
font-family: 'noto-sans-bold-italic', sans-serif;
|
||||||
|
font-size: 22px;
|
||||||
|
color: #6D6D6D;
|
||||||
|
}
|
||||||
|
|
||||||
|
#particles-bg {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.homeWrapper.homeText {
|
.homeWrapper.homeText {
|
||||||
margin-top: 5%;
|
margin-top: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.homeWrapper {
|
.homeWrapper {
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
border-radius: 3px;
|
||||||
color: #6D6D6D;
|
color: #6D6D6D;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
padding: 30px;
|
||||||
|
background: white;
|
||||||
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
@media only screen and (max-width : 800px) {
|
@media only screen and (max-width : 800px) {
|
||||||
.homeWrapper {
|
.homeWrapper {
|
||||||
|
@ -307,9 +330,8 @@ body.action-home {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 2px solid #a354cd;
|
border: 2px solid #a354cd;
|
||||||
margin: 0 auto;
|
margin: 12px auto;
|
||||||
color: #a354cd;
|
color: #a354cd;
|
||||||
margin-bottom: 12px;
|
|
||||||
font-family: 'noto-sans-bold', sans-serif;
|
font-family: 'noto-sans-bold', sans-serif;
|
||||||
}
|
}
|
||||||
.requestInviteCTA:hover {
|
.requestInviteCTA:hover {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -8,6 +8,8 @@
|
||||||
<% content_for :title, "Home | Metamaps" %>
|
<% content_for :title, "Home | Metamaps" %>
|
||||||
<% content_for :mobile_title, "Home" %>
|
<% content_for :mobile_title, "Home" %>
|
||||||
<div id="yield">
|
<div id="yield">
|
||||||
|
<div class="homeLogo">METAMAPS</div>
|
||||||
|
<div id="particles-bg"></div>
|
||||||
<div class="homeWrapper homeText">
|
<div class="homeWrapper homeText">
|
||||||
<div class="homeTitle">Make sense, together.</div>
|
<div class="homeTitle">Make sense, together.</div>
|
||||||
<div class="homeIntro">
|
<div class="homeIntro">
|
||||||
|
@ -22,6 +24,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div><!-- end yield -->
|
</div><!-- end yield -->
|
||||||
|
|
||||||
|
<%= javascript_include_tag "particles-bg" %>
|
||||||
<script>
|
<script>
|
||||||
Metamaps.currentSection = ''
|
Metamaps.currentSection = ''
|
||||||
Metamaps.currentPage = ''
|
Metamaps.currentPage = ''
|
||||||
|
|
|
@ -9,5 +9,5 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Precompile additional assets.
|
# Precompile additional assets.
|
||||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||||
config.assets.precompile += %w( application-secret.css application-secret.js webpacked/metamaps.bundle.js )
|
config.assets.precompile += %w( application-secret.css application-secret.js particles-bg.js webpacked/metamaps.bundle.js )
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue