完成簡易首頁並加上.editorconfig
This commit is contained in:
parent
f4158b8661
commit
94390b435d
9
.editorconfig
Normal file
9
.editorconfig
Normal file
@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = false
|
13
app/Http/Controllers/HomeController.php
Normal file
13
app/Http/Controllers/HomeController.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('home.index');
|
||||
}
|
||||
}
|
@ -12,11 +12,11 @@
|
||||
"devDependencies": {
|
||||
"axios": "^0.18",
|
||||
"bootstrap": "^4.0.0",
|
||||
"popper.js": "^1.12",
|
||||
"cross-env": "^5.1",
|
||||
"jquery": "^3.2",
|
||||
"laravel-mix": "^2.0",
|
||||
"lodash": "^4.17.4",
|
||||
"popper.js": "^1.12",
|
||||
"vue": "^2.5.7"
|
||||
}
|
||||
}
|
||||
|
10477
public/css/app.css
vendored
10477
public/css/app.css
vendored
File diff suppressed because one or more lines are too long
47405
public/js/app.js
vendored
47405
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
4
public/mix-manifest.json
Normal file
4
public/mix-manifest.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"/js/app.js": "/js/app.js",
|
||||
"/css/app.css": "/css/app.css"
|
||||
}
|
@ -22,7 +22,9 @@
|
||||
$ php artisan key:generate
|
||||
|
||||
### 6. 重建資料庫
|
||||
待補...
|
||||
這個專案有包含資料庫遷移(Migration),所以只要下:
|
||||
$ php artisan migrate
|
||||
可以了,資料表都會自動產生
|
||||
|
||||
## 執行此專案
|
||||
### 快速啟動
|
||||
|
2
resources/assets/sass/_variables.scss
vendored
2
resources/assets/sass/_variables.scss
vendored
@ -1,6 +1,6 @@
|
||||
|
||||
// Body
|
||||
$body-bg: #f5f8fa;
|
||||
$body-bg: #fff;
|
||||
|
||||
// Typography
|
||||
$font-family-sans-serif: "Raleway", sans-serif;
|
||||
|
6
resources/views/home/index.blade.php
Normal file
6
resources/views/home/index.blade.php
Normal file
@ -0,0 +1,6 @@
|
||||
@extends('layout.app')
|
||||
|
||||
@section('content')
|
||||
<button class="btn btn-primary">我想成為KOL</button>
|
||||
<button class="btn btn-primary">我想成為品牌/代理商</button>
|
||||
@endsection
|
38
resources/views/layout/app.blade.php
Normal file
38
resources/views/layout/app.blade.php
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>部落客媒合系統</title>
|
||||
<link rel="stylesheet" href="/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<a class="navbar-brand" href="#">部落客媒合系統</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="#">KOL登入<span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">品牌/代理商登入</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">後台登入</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="mt-3">
|
||||
@yield('content')
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -10,13 +10,14 @@
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
// //首頁url
|
||||
// Route::get('/', 'HomeController@index');
|
||||
//
|
||||
/* Route::get('/', function () {
|
||||
return view('welcome');
|
||||
}); */
|
||||
|
||||
//首頁url
|
||||
Route::get('/', 'HomeController@index');
|
||||
|
||||
// //管理者相關url
|
||||
// Route::group(['prefix' => 'admin'], function () {
|
||||
// Route::get('/login', '');
|
||||
|
16
yarn.lock
16
yarn.lock
@ -3630,9 +3630,9 @@ ip@^1.1.0, ip@^1.1.5:
|
||||
version "1.1.5"
|
||||
resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"
|
||||
|
||||
ipaddr.js@1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b"
|
||||
ipaddr.js@1.8.0:
|
||||
version "1.8.0"
|
||||
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.8.0.tgz#eaa33d6ddd7ace8f7f6fe0c9ca0440e706738b1e"
|
||||
|
||||
is-absolute-url@^2.0.0:
|
||||
version "2.1.0"
|
||||
@ -5621,11 +5621,11 @@ proto-list@~1.2.1:
|
||||
resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
|
||||
|
||||
proxy-addr@~2.0.3:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341"
|
||||
version "2.0.4"
|
||||
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.4.tgz#ecfc733bf22ff8c6f407fa275327b9ab67e48b93"
|
||||
dependencies:
|
||||
forwarded "~0.1.2"
|
||||
ipaddr.js "1.6.0"
|
||||
ipaddr.js "1.8.0"
|
||||
|
||||
prr@~1.0.1:
|
||||
version "1.0.1"
|
||||
@ -6944,8 +6944,8 @@ uglify-es@^3.3.4:
|
||||
source-map "~0.6.1"
|
||||
|
||||
uglify-js@3.4.x:
|
||||
version "3.4.5"
|
||||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.5.tgz#650889c0766cf0f6fd5346cea09cd212f544be69"
|
||||
version "3.4.6"
|
||||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.6.tgz#bc546d53f3e02b05d97d0ca5a7abfe0fb0384ddb"
|
||||
dependencies:
|
||||
commander "~2.16.0"
|
||||
source-map "~0.6.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user