<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#"><i class="fas fa-heart mr-1" style="color:#00cc99;"></i>六角血拚買賣</a>
<div class="dropdown ml-auto">
<button class="btn btn-cart" data-toggle="dropdown">
<i class="fas fa-cart-plus"></i>
<span class="badge badge-pill badge-danger">12</span>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuReference" style="min-width:400px;">
<div class="px-4 py-3">
<table class="table">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">商品名稱</th>
<th scope="col">數量</th>
<th scope="col">小計</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">
<a data-toggle="modal" data-target="#removeModal" data-whatever="金牌西裝" href="#">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td>金牌西裝</td>
<td>1件</td>
<td class="text-right">$520</td>
</tr>
<tr>
<th scope="row">
<a data-toggle="modal" data-target="#removeModal" data-whatever="金牌女裝" href="#">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td>金牌女裝</td>
<td>1件</td>
<td class="text-right">$480</td>
</tr>
</tbody>
</table>
<a href="#" class="btn btn-primary btn-block"> 結帳去</a>
</div>
</div>
</div>
</nav>
<div class="jumbotron jumbotron-fluid jumbo-bg d-flex align-items-end">
<div class="container">
<div class="bg-lighter py-3">
<h2 class="display-4">買到剁手手</h2>
<p class="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="list-group sticky-top" id="myList" >
<a href="#suit" class="list-group-item list-group-item-action active" data-toggle="list" role="tab">
<i class="fas fa-user-tie"></i>
金牌專賣店
</a>
<a href="#gift" class="list-group-item list-group-item-action" data-toggle="list" role="tab">
<i class="fas fa-gift mr-1"></i>禮品區</a>
<a href="#vedio" class="list-group-item list-group-item-action disabled" data-toggle="list" role="tab"><i class="fas fa-tv mr-1"></i>影音專區</a>
<a href="#pet" class="list-group-item list-group-item-action" data-toggle="list" role="tab">
<i class="fas fa-paw mr-1"></i>寵物專用</a>
<a href="#furniture" class="list-group-item list-group-item-action" data-toggle="list" role="tab"><i class="fas fa-bed mr-1"></i>居家用品</a>
</div>
</div>
<div class="col-md-8">
<div class="row">
<div class="col-md-9">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="請輸入關鍵字" aria-label="Recipient's username" aria-describedby="button-addon2">
<div class="input-group-append">
<button class="btn btn-outline-warning" type="button" id="button-addon2">Search</button>
</div>
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane active" id="suit" role="tabpanel">
<div class="row">
<div class="col-lg-4 col-md-12">
<div class="card h-100 border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1490114538077-0a7f8cb49891?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary">M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12">
<div class="card h-100 border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1584273143981-41c073dfe8f8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary">M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1490114538077-0a7f8cb49891?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem commodi debitis sunt modi cupiditate amet numquam accusantium, magni id eveniet.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary">M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12 mt-3">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1589532956128-25bc26e049de?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary">M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12 mt-3">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1490114538077-0a7f8cb49891?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary">M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="gift" role="tabpanel">
<div class="row">
<div class="col-lg-4 col-md-12">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1513885535751-8b9238bd345a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary disabled" tabindex=-1>M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="pet" role="tabpanel">
<div class="row">
<div class="col-lg-4 col-md-12">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1507146426996-ef05306b995a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary disabled" tabindex=-1>M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="furniture" role="tabpanel">
<div class="row">
<div class="col-lg-4 col-md-12">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1567538096630-e0c55bd6374c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary disabled" tabindex=-1>M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12">
<div class="card border-0 box-shadow">
<img src="https://images.unsplash.com/photo-1533090481720-856c6e3c1fdc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer card-footer-bg border-top-0 text-center">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-outline-secondary">SM</button>
<button type="button" class="btn btn-outline-secondary disabled" tabindex=-1>M</button>
<button type="button" class="btn btn-outline-secondary">XL</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<section>
<div class="container mt-5">
<nav aria-label="breadcrumb">
<ol class="breadcrumb bg-transparent pl-0">
<li class="breadcrumb-item"><a href="#">首頁</a></li>
<li class="breadcrumb-item"><a href="#">金牌專賣店</a></li>
<li class="breadcrumb-item active" aria-current="page">金牌西裝</li>
</ol>
</nav>
<div class="row">
<div class="col-md-4">
<div class="sticky-top sticky-top-dis">
<h1 class="h2">金牌西裝</h1>
<div class="d-flex align-items-end">
<del class="text-muted">$售價 1299</del>
<h3 class="ml-auto mb-0 text-danger">網路價 NT$520</h3>
</div>
<hr>尺寸:
<div class="btn-group btn-group-toggle btn-group-sm ml-1" data-toggle="buttons">
<label class="btn btn-outline-secondary active">
<input type="radio" name="options" id="option1" checked> SM
</label>
<label class="btn btn-outline-secondary disabled">
<input type="radio" name="options" id="option2" disabled> M
</label>
<label class="btn btn-outline-secondary">
<input type="radio" name="options" id="option3"> XL
</label>
</div>
<div class="input-group">
<select class="form-control mr-1">
<option value="1">1件</option>
<option value="2">2件</option>
<option value="3">3件</option>
</select>
<a href="#" class="btn btn-primary">加入購物車</a>
</div>
</div>
</div>
<div class="col-md-8" style="position:relative;">
<h2>帥氣的西裝無人能敵</h2>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Possimus soluta quam eveniet aut cum molestiae temporibus itaque architecto totam beatae?</p>
<h3 class="text-center">合身剪裁</h3>
<img src="https://images.unsplash.com/photo-1472417583565-62e7bdeda490?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="img-fluid w-100" alt="Responsive image">
<h3 class="text-center mt-4">簡單就好</h3>
<img src="https://images.unsplash.com/photo-1567849859756-79bf6a9d62f1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="img-fluid w-100" alt="Responsive image">
<h3 class="text-center mt-4">不佔空間</h3>
<img src="https://images.unsplash.com/photo-1547822281-5c9d3ab15297?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60" class="img-fluid w-100" alt="Responsive image">
<div class="bg-light mt-2">
<h3>購買說明</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error, itaque eligendi officiis illum, molestias quam sequi amet molestiae repellendus nostrum officia earum non, et quo nemo explicabo fugit cum possimus?</p>
</div>
</div>
</div>
</div>
</section>
<hr>
<section>
<div class="container mt-5">
<h2 class="text-muted text-center mb-4 h1">六角血拚 結帳區</h2>
<div class="form-row">
<div class="col-sm-4">
<div class="alert alert-primary alert-rounded" role="alert">
1.輸入訂單資料
</div>
</div>
<div class="col-sm-4">
<div class="alert alert-secondary alert-rounded" role="alert">
2.金流付款
</div>
</div>
<div class="col-sm-4">
<div class="alert alert-secondary alert-rounded" role="alert">
3.完成
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header d-flex align-items-end" id="headingOne">
<button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
顯示購物車細節
</button>
<p class="h4">$520</p>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
<table class="table">
<thead>
<tr>
<th scope="col" width="50"></th>
<th scope="col" width="50">
</th>
<th scope="col" width="200">商品名稱</th>
<th scope="col" width="100">數量</th>
<th scope="col" width="50">小計</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">
<a data-toggle="modal" data-target="#removeModal" data-whatever="金牌西裝" href="#">
<i class="fas fa-trash-alt"></i>
</a>
</th>
<td>
<div class="card border-secondary">
<div class="card-body card-bg" style="background-image:url(https://images.unsplash.com/photo-1426523038054-a260f3ef5bc9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60);">
</div>
</div>
</td>
<td>金牌西裝</td>
<td>1件</td>
<td class="text-right">$520</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="4" class="text-right">運費 </td>
<td class="text-right">$60</td>
</tr>
<tr>
<td colspan="4" class="text-right">合計 </td>
<td class="text-right">$580</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div class="card mt-3">
<div class="card-header">
訂購人資訊
</div>
<div class="card-body">
<form class="needs-validation" novalidate>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputname">姓名</label>
<input type="name" class="form-control" id="inputname" placeholder="請輸入姓名" required>
<div class="invalid-feedback">
請輸入姓名
</div>
</div>
<div class="form-group col-md-6">
<label for="inputEmail4">Email</label>
<input type="email" class="form-control" id="inputEmail4" placeholder="Email" required>
<div class="invalid-feedback">
請輸入Email
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputNation">國家</label>
<input type="text" class="form-control" id="inputNation" placeholder="台灣" required>
<div class="invalid-feedback">
請輸入國家
</div>
</div>
<div class="form-group col-md-4">
<label for="inputCity">城市</label>
<select id="inputCity" class="form-control">
<option selected>台北市</option>
<option>台中市</option>
</select>
</div>
<div class="form-group col-md-2">
<label for="inputZip">郵遞區號</label>
<input type="text" class="form-control" id="inputZip" required>
<div class="invalid-feedback">
請輸入郵遞區號
</div>
</div>
</div>
<div class="form-group">
<label for="inputAddress">地址</label>
<input type="text" class="form-control" id="inputAddress" placeholder="忠孝東路的左邊" required>
<div class="invalid-feedback">
請輸入地址
</div>
</div>
<div class="d-flex justify-content-end">
<button type="button" class="btn btn-secondary mr-1">繼續選購</button>
<button class="btn btn-primary" type="submit">確認付帳</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<hr>
<section>
<h2 class="mt-5 mb-4 text-center text-muted h1">六角血拚 結帳完成</h2>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="alert alert-success text-center alert-rounded" role="alert">
完成
</div>
<div class="card">
<div class="card-header text-center">購買資訊</div>
<div class="card-body">
<table class="table">
<thead>
<tr>
<th scope="col" width="50"></th>
<th scope="col" width="200">商品名稱</th>
<th scope="col" width="100">數量</th>
<th scope="col" width="50">小計</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="card border-secondary">
<div class="card-body card-bg" style="background-image:url(https://images.unsplash.com/photo-1426523038054-a260f3ef5bc9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=60);">
</div>
</div>
</td>
<td>金牌西裝</td>
<td>1件</td>
<td class="text-right">$520</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3" class="text-right">運費 </td>
<td class="text-right font-weight-bold">$60</td>
</tr>
<tr>
<td colspan="3" class="text-right">合計 </td>
<td class="text-right font-weight-bold">$580</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div class="card mt-3">
<div class="card-header text-center">填寫人資訊</div>
<div class="card-body">
<table class="table">
<tbody>
<tr>
<td class="font-weight-bold">Email</td>
<td>ag3456***@gmail.com</td>
</tr>
<tr>
<td class="font-weight-bold">姓名 </td>
<td>咬 * 手手</td>
</tr>
<tr>
<td class="font-weight-bold">電話</td>
<td>987654***</td>
</tr>
<tr>
<td class="font-weight-bold">地址 </td>
<td>重慶南路一段122號</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
<footer class="bg-light mt-4 text-center p-4">
<h6 class="text-muted">© Copright 2020 六角血拼賣賣
<a href="#" title="twitter"><i class="fab fa-twitter"></i></a>
<a href="#" title="instagram"><i class="fab fa-instagram"></i></a>
<a href="#" title="facebool"><i class="fab fa-facebook-square"></i></a>
</h6>
<p class="text-muted">Made with Bootstrap4</p>
</footer>
<div class="modal fade" data-backdrop="static" id="removeModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-danger text-white">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">否</button>
<button type="button" class="btn btn-outline-danger px-5">是</button>
</div>
</div>
</div>
</div>
<div class="js-back-to-top">
<i class="fas fa-4x fa-caret-square-up"></i>
</div>
body{
font-family:"微軟正黑體";
}
.btn-cart{
position: relative;
background-color: transparent;
}
.btn-cart:hover{
cursor: pointer;
}
.btn-cart .badge{
position: absolute;
top: 0;
right:0;
}
.dropdown-menu-right{
right:0;
left:auto;
}
.jumbo-bg{
background-image: url(https://images.unsplash.com/photo-1536593998369-f0d25ed0fb1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80);
background-size: cover;
background-position: center center;
min-height: 500px;
}
.card-bg{
background-size: cover;
background-position: center center;
}
.bg-lighter{
background-color: rgba(255, 255, 255, .45);
}
.card-footer-bg{
background-color: transparent;
}
.box-shadow{
box-shadow: 0 3px 5px rgba(0, 0, 0, .16);
transition: box-shadow .3s;
}
.box-shadow:hover{
box-shadow: 0 4px 10px rgba(0, 0, 0, .24);
}
.btn.btn-outline-secondary.disabled{
pointer-events: none;
}
.sticky-top-dis{
top:10px;
margin-bottom:50px;
}
.alert-rounded{
border-radius: 20px;
}
.js-back-to-top{
display:none;
position:fixed;
right:10px;
bottom:30px;
cursor: pointer;
opacity: 0.5;
}
.js-back-to-top:hover{
opacity: 1;
}
$('#removeModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget)
var content = button.data('whatever')
var modal = $(this)
modal.find('.modal-title').text('確認刪除'+content)
});
$(function () {
$('#myList a:first-child').tab('show')
});
(function() {
'use strict';
window.addEventListener('load', function() {
var forms = document.getElementsByClassName('needs-validation');
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
$(function(){
var $win = $(window);
var $backToTop = $('.js-back-to-top');
$win.scroll(function(){
if($win.scrollTop() > 200){
$backToTop.show();
} else {
$backToTop.hide();
}
});
$backToTop.click(function(){
$('html, body').animate({scrollTop: 0}, 1000);
});
});