1 Star 0 Fork 0

xuebiao/星巴克静态网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
星巴克.html 15.66 KB
一键复制 编辑 原始数据 按行查看 历史
xuebiao 提交于 2021-08-20 19:42 . first commit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>星巴克 | 用每一杯咖啡传递星巴克独特的咖啡体验</title>
<link rel="icon" href="https://www-static.chinacdn.starbucks.com.cn/prod/assets/favicons/favicon-32x32.png">
<style>
* {
margin: 0;
padding: 0;
}
.body>.left {
position: fixed;
width: 30%;
height: 100%;
float: left;
box-shadow: 0 0 4px rgba(0, 0, 0, .12);
}
.body>.right {
width: 70%;
height: 100%;
margin-left: 30%;
}
.left>.header {
height: 48px;
padding: 24px;
}
.header>div {
float: left;
}
.header>div>li {
float: left;
list-style-type: none;
padding: 5px 10px 5px;
font-size: 16px;
font-weight: 700;
color: rgba(0, 0, 0, .87);
letter-spacing: 1px;
cursor: pointer;
}
.left>.header>.logo>img {
width: 36px;
margin-right: 12px;
cursor: pointer;
}
/* 头部右边图标 */
.left>.header>.icon {
float: right;
padding: 6px 0;
cursor: pointer;
}
/* 左侧内容区 */
.left>.left_body {
height: calc(100% - 98px);
padding-top: calc((100vh - 200px)/2);
padding-left: 80px;
padding-right: 50px;
}
.left>.left_body>.text {
font-size: 26px;
font-weight: 700;
letter-spacing: .04px;
}
.left>.left_body>.button {
padding-top: 20px;
vertical-align: text-bottom;
}
.left>.left_body>.button>span {
color: #00A862;
cursor: pointer;
}
.left>.left_body>.button>span:nth-child(3) {
height: 28px;
width: 50px;
margin-left: 20px;
display: inline-block;
border: 1px solid #00A862;
border-radius: 16px;
line-height: 28px;
text-align: center;
}
.left>.left_body>.button>img {
vertical-align: middle;
cursor: pointer;
}
.right>img {
width: 100%;
display: block;
}
.right>.div1 {
padding: 10px 24px;
background-color: #F7F7F7;
}
.right>.div1::after {
display: block;
content: "";
clear: both;
}
.right>.div1>.div1_1 {
width: calc((100% - 72px)/3);
padding: 12px;
float: left;
}
.right>.div1>.div1_1>img:hover {
box-shadow: 0 1px 30px 3px rgba(0, 0, 0, 0.12);
transform: translate3d(0, -4px, 0);
cursor: pointer;
}
.right>.div1>.div1_1>img {
width: 100%;
transition: transform 0.1s linear;
}
.body>.right>.div2 {
height: 247px;
padding: 0 24px;
margin: 0 calc((100% - 768px)/2);
}
.right>.div2>div {
float: left;
width: 50%;
}
.right>.div2>.div2_1 {
padding: 36px 0;
}
.right>.div2>.div2_1>.title {
font-size: 22px;
font-weight: 700;
margin-bottom: 18px;
}
.right>.div2>.div2_1>.text {
width: 360px;
color: rgba(0, 0, 0, 0.56);
margin-bottom: 24px;
line-height: 30px;
}
.right>.div2>.div2_1>.text>a {
color: #C2A661;
text-decoration: none;
}
.right>.div2>.div2_1>.btn>.login,
.right>.div2>.div2_1>.btn>.register {
height: 34px;
width: 60px;
display: inline-block;
border: 1px solid #00A862;
border-radius: 20px;
line-height: 34px;
text-align: center;
color: #00A862;
cursor: pointer;
}
.right>.div2>.div2_2 {
text-align: center;
padding-top: 90px;
}
.body>.right>.div3 {
height: 412px;
padding: 36px calc((100% - 768px)/2);
background-color: #F7F7F7;
}
.right>.div3>.title {
font-size: 22px;
font-weight: 700;
text-align: center;
margin-bottom: 18px;
}
.right>.div3>.text {
color: rgba(0, 0, 0, 0.56);
text-align: center;
margin-bottom: 18px;
}
.right>.div3>.content {
margin-top: 50px;
}
.right>.div3>.content>.div3_1 {
height: 220px;
width: calc((100% - 150px) / 4);
background-color: #fff;
border-radius: 2px;
box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.12);
padding: 0 6px;
text-align: center;
float: left;
margin: 12px;
transition: transform 0.1s linear;
}
.right>.div3>.content>.div3_1:hover {
box-shadow: 0 1px 30px 3px rgba(0, 0, 0, 0.12);
transform: translate3d(0, -4px, 0);
cursor: pointer;
}
.right>.div3>.content>.div3_1>img {
margin-top: -30px;
height: 72px;
}
.right>.div3>.content>.div3_1>.title {
font-weight: 700;
color: rgba(0, 0, 0, .87);
margin: 26px 0 8px;
}
.right>.div3>.content>.div3_1>.text {
color: rgba(0, 0, 0, .56);
font-size: 14px;
margin-bottom: 18px;
line-height: 24px;
}
.right>.div3>.content>.div3_1>.more>a {
font-size: 12px;
font-weight: 400;
color: #C2A661;
text-decoration: none;
margin-bottom: 24px;
}
.body>.right>.div4 {
margin-top: 20px;
margin-left: 100px;
background-color: rgb(253, 253, 253);
}
.body>.right>.div4>.title {
font-size: 28px;
margin-bottom: 18px;
text-align: center;
}
.body>.right>.div4>.text {
color: rgba(0, 0, 0, 0.56);
margin-bottom: 24px;
text-align: center;
box-sizing: border-box;
margin-left: auto;
margin-right: auto;
max-width: 768px;
width: 100%;
}
.body>.right>.div4>.content{
display: flex;
justify-content: space-between;
}
.body>.right>.div4>.content>.content_one{
box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.12);
width: 290px;
height: 234px;
background-color: white;
transition: transform 0.1s linear;
text-align: center;
}
.body>.right>.div4>.content>.content_one>:hover {
box-shadow: 0 1px 3px 3px rgba(0, 0, 0, 0.12);
transform: translate3d(0, -4px, 0);
color: #887035;
cursor: pointer;
}
.content_one>img {
margin: 0;
padding: 0;
width: 290px;
height: 168px;
}
.content_one>>.title {
color: rgba(0, 0, 0, 0.87);
font-weight: bold;
margin: 26px 0 8px;
}
.content_one>>.text {
color: rgba(0, 0, 0, 0.56);
font-size: 14px;
margin-bottom: 18px;
}
.footer {
margin-left: 40%;
margin-top: 10px;
line-height: 40px;
}
.footer a{
color: #666;
font-size: 14px;
text-decoration: none;
}
.footer a:hover{
color: rgba(0, 0, 0, 0.726);
}
</style>
</head>
<body>
<div class="body">
<div class="left">
<!-- 左边的头 -->
<header class="header">
<!-- 头部LOGO -->
<div class="logo">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/logo.svg" alt="">
</div>
<!-- 头部导航 -->
<div class="primary">
<li>门店</li>
<li>我的帐户</li>
<li>菜单</li>
</div>
<!-- 头部右边图标 -->
<div class="icon">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/icons/icon-hamburger.svg" alt="">
</div>
</header>
<!-- 内容区 -->
<div class="left_body">
<div class="text">
心情惬意,来杯咖啡吧 ☕
</div>
<div class="button">
<img src="https://www.starbucks.com.cn/assets/icons/icon-account.svg" alt="">
<span>登录</span>
<span>注册</span>
</div>
</div>
</div>
<!-- 右边部分 -->
<div class="right">
<img src="https://artwork.starbucks.com.cn/banners-homepage-banner/main_61babe13-d569-476b-8bd6-e75068943318.jpg"
alt="">
<div class="div1">
<div class="div1_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/images/pages/tmall-2020-06-29-zh.jpg"
alt="">
</div>
<div class="div1_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/images/pages/starbucks-design-studio-web-china.jpg"
alt="">
</div>
<div class="div1_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/images/pages/homepage-career-cn.jpg "
alt="">
</div>
</div>
<div class="div2">
<div class="div2_1">
<div class="title">星享俱乐部</div>
<div class="text">开启您的星享之旅,星星越多、会员等级越高、好礼越丰富。<a href="">了解更多 ›</a> </div>
<div class="btn">
<span class="login">注册</span>
<span class="register">登录</span>
</div>
</div>
<div class="div2_2">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/logo-msr-20210601.svg"
alt="">
</div>
</div>
<div class="div3">
<div class="title">星巴克精选</div>
<div class="text">在星巴克天猫旗舰店发现更多咖啡心意</div>
<div class="content">
<div class="div3_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/tmall-card-01-update.png"
alt="">
<div class="title">会员新礼包</div>
<div class="text">星享卡新升级 <br> 更多心意好礼</div>
<div class="more">
<a href="">了解更多</a>
</div>
</div>
<div class="div3_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/tmall-card-01-update.png"
alt="">
<div class="title">会员新礼包</div>
<div class="text">星享卡新升级 <br> 更多心意好礼</div>
<div class="more">
<a href="">了解更多</a>
</div>
</div>
<div class="div3_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/tmall-card-01-update.png"
alt="">
<div class="title">会员新礼包</div>
<div class="text">星享卡新升级 <br> 更多心意好礼</div>
<div class="more">
<a href="">了解更多</a>
</div>
</div>
<div class="div3_1">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/tmall-card-01-update.png"
alt="">
<div class="title">会员新礼包</div>
<div class="text">星享卡新升级 <br> 更多心意好礼</div>
<div class="more">
<a href="">了解更多</a>
</div>
</div>
</div>
</div>
<div class="div4">
<div class="title">
1912 派克街 | 咖啡星讲堂
</div>
<div class="text">了解更多星巴克咖啡文化</div>
<div class="content">
<div class="content_one">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/coffeehouse-coffee-cultivation-kv.jpg" alt="">
<div class="title">咖啡的起源与培植</div>
</div>
<div class="content_one">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/coffeehouse-4-fundamentals-kv.jpg" alt="">
<div class="title">咖啡调制</div>
</div>
<div class="content_one">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/coffeehouse-roast-story-kv.jpg" alt="">
<div class="title">咖啡烘焙</div>
</div>
<div class="content_one">
<img src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/homepage/coffeehouse-pour-over-kv.jpg" alt="">
<div class="title">手冲咖啡</div>
</div>
</div>
</div>
<div class="footer">
<span>
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010402000253" target="_blank">
<img width="10" height="10" src="https://www-static.chinacdn.starbucks.com.cn/prod/assets/images/icpicon.png">&nbsp;沪公网安备 31010402000253号
</a>
</span>
|
<a href="http://www.beian.miit.gov.cn" target="_blank">沪ICP备17003747号</a>
</div>
</div>
</div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuebiao6679/starbucks-static-website.git
git@gitee.com:xuebiao6679/starbucks-static-website.git
xuebiao6679
starbucks-static-website
星巴克静态网站
master

搜索帮助