Skip to content

Commit 9074b83

Browse files
author
Ben Tadiar
committed
Started restyling skeleton application
1 parent 00fac66 commit 9074b83

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

app/views/base.html.php

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<!-- CSS Stuff -->
1010
<link href="<?=$view['assets']->getUrl('components/bootstrap/dist/css/bootstrap.min.css');?>" rel="stylesheet">
11+
<link href="<?=$view['assets']->getUrl('components/fontawesome/css/font-awesome.css');?>" rel="stylesheet">
1112
<link href="<?=$view['assets']->getUrl('css/main.css');?>" rel="stylesheet">
1213
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600" rel="stylesheet" type="text/css">
1314
<?php $view['slots']->output('include_css'); ?>
@@ -31,6 +32,7 @@
3132
</div>
3233
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
3334
<script>window.jQuery || document.write('<script src="<?=$view['assets']->getUrl('components/jquery/dist/jquery.min.js');?>"><\/script>')</script>
35+
<script src="<?=$view['assets']->getUrl('components/jquery-ui/jquery-ui.js');?>"></script>
3436
<script src="<?=$view['assets']->getUrl('components/bootstrap/dist/js/bootstrap.min.js');?>"></script>
3537
<?php $view['slots']->output('include_js_body'); ?>
3638
</body>

bower.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "ppi/skeletonapp",
33
"dependencies": {
44
"bootstrap": "3.3.2",
5-
"modernizr": "2.8.3"
5+
"modernizr": "2.8.3",
6+
"fontawesome": "4.3.0",
7+
"jquery-ui": "1.11.4"
68
},
79
"private": true
810
}

modules/Application/resources/views/index/index.html.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<?php $view->extend('::base.html.php'); ?>
22

3+
<?php $view['slots']->start('include_js_body'); ?>
4+
<script src="<?=$view['assets']->getUrl('js/home.js');?>"></script>
5+
<?php $view['slots']->stop(); ?>
6+
37
<div id="landing">
48
<div class="landing-wrapper">
59
<img src="<?=$view['assets']->getUrl('modules/framework/images/ppi-logo-white.png'); ?>" />
610
<div class="buttons">
711
<a href="http://ppi.readthedocs.org/en/2.1/" target="_blank">Read the Docs</a><!--
8-
--><a href="https://github.com/ppi/framework" target="_blank">Discover on GitHub</a>
12+
--><a href="https://github.com/ppi/framework" target="_blank">Discover on GitHub</a><!--
13+
--><a class="find-out-more" href="#landing-two">Find out More <i class="fa fa-fw fa-caret-down"></i></a>
914
</div>
1015
</div>
1116
</div>

public/css/main.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,15 @@ h3 {
4949
border:1px solid #303030;
5050
outline:none;
5151
}
52+
#landing .landing-wrapper .buttons a {
53+
margin-left:5px;
54+
}
5255
#landing .landing-wrapper .buttons a:first-child {
53-
margin-right:5px;
56+
margin-left:0;
57+
}
58+
#landing .landing-wrapper .buttons a:last-child {
59+
background:#202020;
60+
border-color:#161616;
5461
}
5562

5663
.list-container {

public/js/home.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
jQuery(document).ready(function($) {
2-
3-
$('.flashes .alert').alert();
4-
1+
$(document).ready(function($) {
2+
$('.find-out-more').on('click', function(event){
3+
event.preventDefault();
4+
$('html, body').animate({
5+
scrollTop: $('#landing-two').position().top
6+
}, 1500, 'easeInOutCubic');
7+
});
58
});

0 commit comments

Comments
 (0)