Browse Source

Fixes some layout issues with homepage

pull/1177/head
jlukic 10 years ago
parent
commit
2bc0a2042d
4 changed files with 29 additions and 8 deletions
  1. 14
      server/documents/index.html.eco
  2. 18
      server/files/javascript/home.js
  3. 2
      server/files/stylesheets/semantic.css
  4. 3
      server/layouts/default.html.eco

14
server/documents/index.html.eco

@ -108,13 +108,15 @@ type : 'Semantic'
<h3 class="ui header">
Semantic is growing fast. Want to see just how much? Sign up and we'll let you know
</h3>
<form method="post" action="//semantic-ui.us9.list-manage.com/subscribe/post?u=1bb099283b001a74133a94364&amp;id=1b77a619a7">
<div class="ui huge input">
<input type="text" name="EMAIL" placeholder="E-mail">
<form class="ui form" method="post" action="//semantic-ui.us9.list-manage.com/subscribe/post?u=1bb099283b001a74133a94364&amp;id=1b77a619a7">
<div class="field">
<div class="ui huge input">
<input type="text" name="EMAIL" data-validate="email" placeholder="E-mail">
</div>
<button type="submit" class="ui huge secondary submit button">
Sign-up
</button>
</div>
<button type="submit" class="ui huge secondary submit button">
Sign-up
</button>
</form>
</div>
</div>

18
server/files/javascript/home.js

@ -47,6 +47,24 @@ semantic.home.ready = function() {
}
};
$('.email.stripe form')
.form({
email: {
identifier : 'email',
rules: [
{
type : 'empty',
prompt : 'Please enter an e-mail'
},
{
type : 'email',
prompt : 'Please enter a valid e-mail address'
}
]
}
})
;
$('.masthead')
.visibility({

2
server/files/stylesheets/semantic.css

@ -204,7 +204,7 @@ a:hover {
position: relative;
z-index: 2;
margin: 0em;
min-height: 210px;
min-height: 180px;
padding-top: 70px;
padding-bottom: 30px;
background-color: #FFFFFF;

3
server/layouts/default.html.eco

@ -126,8 +126,9 @@
<% if 'development' in @getEnvironments(): %>
<script src="/build/uncompressed/definitions/globals/site.js"></script>
<script src="/build/uncompressed/definitions/behaviors/api.js"></script>
<script src="/build/uncompressed/definitions/behaviors/visibility.js"></script>
<script src="/build/uncompressed/definitions/behaviors/form.js"></script>
<script src="/build/uncompressed/definitions/behaviors/state.js"></script>
<script src="/build/uncompressed/definitions/behaviors/visibility.js"></script>
<script src="/build/uncompressed/definitions/modules/accordion.js"></script>
<script src="/build/uncompressed/definitions/modules/checkbox.js"></script>
<script src="/build/uncompressed/definitions/modules/dimmer.js"></script>

Loading…
Cancel
Save