Skip to content

Commit 3134a13

Browse files
committed
+ search form
1 parent 2a6f9ff commit 3134a13

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

Diff for: src/assets/css/site.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body {
1111
}
1212

1313
.wrap > .container {
14-
padding: 70px 15px 20px;
14+
padding: 0px 15px 20px;
1515
}
1616

1717
.footer {

Diff for: src/views/layouts/_search.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
<section style="clear:both;background-color:#eee">
3+
<br><br><br>
4+
<div class="container">
5+
<div class="col-xs-12 col-md-9" style="padding:0px 0 10px 0">
6+
<form name="search_query" method="get" action="/search/" id="search-form" autocomplete="off">
7+
<input type="search" id="query" name="query" required="required" autocomplete="off" placeholder="bower-asset/package-name" tabindex="1" class="form-control"/>
8+
</form>
9+
</div>
10+
</div>
11+
</section>
12+

Diff for: src/views/layouts/main.php

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
]);
4444
NavBar::end();
4545
?>
46+
<?= $this->render('_search') ?>
4647

4748
<div class="container">
4849
<?= Breadcrumbs::widget([

Diff for: src/views/site/index.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
$this->title = Yii::$app->params['logo-text'];
66
?>
77
<div class="site-index">
8-
<div class="jumbotron">
9-
<img src="/logo/composer.png" height="140px">
10-
<img src="/logo/bower.svg" height="100px" style="margin:10px">
11-
<img src="/logo/npm.svg" height="80px" style="margin:10px">
12-
<h3>Composer, Bower and NPM friends forever!</h3>
8+
<div style="text-align:center;margin:30px 0px 20px">
9+
<div>
10+
<img src="/logo/composer.png" height="140px">
11+
<img src="/logo/bower.svg" height="100px" style="margin:10px">
12+
<img src="/logo/npm.svg" height="80px" style="margin:10px">
13+
<h3>Composer, Bower and NPM friends forever!</h3>
14+
</div>
1315
</div>
1416

1517
<div class="body-content">

0 commit comments

Comments
 (0)