Skip to content

Commit e8630ab

Browse files
author
shellus
committed
调整样式,增加功能入口
1 parent b9a73c4 commit e8630ab

File tree

5 files changed

+76
-13
lines changed

5 files changed

+76
-13
lines changed

public/css/app.css

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,72 @@
1+
2+
/*-----------------全局样式-----------------*/
3+
body{
4+
color: #fff;
5+
background-color: #343434;
6+
}
7+
.navbar-default {
8+
background-color: #2b2b2b;;
9+
border-radius: 0;
10+
border-color: transparent;
11+
border-bottom-color: #525252;
12+
}
13+
.navbar-default .navbar-nav>li>a {
14+
color: #fff;
15+
}
16+
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
17+
color: #d0d0d0;
18+
background-color: transparent;
19+
}
20+
.thumbnail {
21+
background-color: #494949;
22+
border-radius: 0;
23+
}
24+
.thumbnail .caption {
25+
padding: 9px;
26+
color: #fff;
27+
}
28+
a {
29+
color: #b9d3e9;
30+
}
31+
a:focus, a:hover {
32+
color: #77beff;
33+
}
34+
.panel-default {
35+
border-color: #4e4e4e;
36+
background-color: #494949;
37+
}
38+
.panel-footer{
39+
background-color: transparent;
40+
41+
}
42+
.form-control {
43+
background-color: #d7d7d7;
44+
}
45+
.pagination>li>a, .pagination>li>span {
46+
background-color: #d7d7d7;
47+
}
48+
.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover {
49+
background-color: #d7d7d7;
50+
}
51+
button, input, optgroup, select, textarea {
52+
color: #000;
53+
}
54+
55+
/*-----------------内容区块样式-----------------*/
56+
157
.body-content{
258
min-height: 1000px;
359
}
460

5-
.new_articles-list a {
61+
.new_article-list a {
662
font-size: 1.2em;
763
line-height: 2em;
864
}
9-
body{
10-
font-size: 14px;
11-
line-height: 1.42857143;
65+
.article-list a {
66+
font-size: 1.1em;
67+
line-height: 1.8em;
1268
}
69+
1370
.nav{
1471
font-size: 1.4em;
1572
}

resources/views/article/list.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<div class="panel panel-default">
77
<div class="panel-heading">列表</div>
88
<div class="panel-body">
9-
<ul>
10-
@foreach ($models as $model)
11-
<li><a href="{{ $model->showUrl() }}">{{ $model->title }}</a></li>
12-
@endforeach
13-
</ul>
9+
<div class="article-list">
10+
@include('partials.article_list',['articles' => $models])
11+
</div>
1412
</div>
15-
{!! $models -> render() !!}
13+
<div class="text-center">
14+
{!! $models -> render() !!}
15+
</div>
1616
</div>
1717
</div>
1818
</div>

resources/views/index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
<h3>最新记录</h3>
88
<hr>
9-
<div class="new_articles-list">
9+
(采集thinkphp.cn到articles表,作为测试数据 : )
10+
<div class="new_article-list">
1011
@include('partials.article_list',['articles' => \App\Article::getNewList()])
1112
</div>
1213
@endsection

resources/views/item/list.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="col-md-12">
1818
<form method="GET" action="{{ route('goods.index') }}">
1919
<div class="input-group input-group-lg search-box">
20-
<input type="text" class="form-control" name="s" value="{{ request('s') }}" placeholder="大家都在搜 路由器">
20+
<input type="text" class="form-control" name="s" value="{{ request('s') }}" placeholder="大家都在搜 手机">
2121
<span class="input-group-btn">
2222
<button class="btn btn-default" type="submit">搜索</button>
2323
</span>

resources/views/layout.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
99
<link href="{{ asset('/css/app.css') }}" rel="stylesheet">
1010
<title>{{ $title }} - {{ config('app.site_title') }}</title>
11+
<style>
12+
13+
</style>
1114
@yield('head')
1215
</head>
1316
<body>
@@ -43,6 +46,7 @@
4346
{{ Auth::user()->displayName() }}
4447
<span class="caret"></span></a>
4548
<ul class="dropdown-menu" role="menu">
49+
<li><a href="{{ route('shop_cart.index') }}">购物车</a></li>
4650
<li><a href="{{ route('user.edit') }}">编辑资料</a></li>
4751
<li><a href="{{ url('/logout') }}">退出</a></li>
4852
</ul>
@@ -60,12 +64,13 @@
6064
<div class="col-xs-12 col-md-3 side">
6165
<h3>右侧</h3>
6266
<hr>
67+
(推荐系统,TODO : )
6368
</div>
6469
</div>
6570
</div>
6671
<footer>
6772
<div class="container">
68-
娃娃脾气.版权所有
73+
<a href="https://shellus.github.io/">shellus</a> .版权所有
6974
</div>
7075

7176
</footer>

0 commit comments

Comments
 (0)