first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
body,ul,li,p,h1,h2,h3,h4,h5,h6{
margin: 0;
padding: 0;
list-style: none;
}
a {
text-decoration: none;
}

View File

@@ -0,0 +1,240 @@
.header {
height: 0.9rem;
position: fixed;
width: 100%;
top:0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
padding: 0 0.37rem;
align-items: center;
box-sizing: border-box;
z-index: 999;
}
.header .scode {
width: 0.42rem;
height: 0.42rem;
}
.header ul {
display: flex;
}
.header ul li {
font-size: 0.3rem;
color: #fff;
margin-right: 0.25rem;
}
.header ul li:last-child {
margin-right: 0 !important;
}
.header .search {
width: 0.43rem;
height: 0.43rem;
}
.header .active {
position: relative;
}
.header .active::after {
content: "";
position: absolute;
width: 0.35rem;
height: 0.02rem;
background-color: #ffffff;
box-shadow: 0rem 0.02rem 0.02rem 0rem
rgba(12, 0, 255, 0.35);
border-radius: 0.01rem;
left: 50%;
transform: translateX(-50%);
bottom: -0.1rem;
}
.content {
height: calc(100vh - 1rem);
background: url("../img/back.png");
background-size: cover;
position: relative;
}
.footer {
position: fixed;
width: 100%;
height: 1rem;
background-color: #000000;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-around;
z-index: 999;
}
.footer .active {
position: relative;
}
.footer .active a {
font-size: 0.3rem;
}
.footer .active::after {
content: "";
width: 0.51rem;
height: 0.03rem;
background-color: #ffffff;
border-radius: 0.015rem;
position: absolute;
bottom: -0.26rem;
left: 50%;
transform: translateX(-50%);
}
.footer li a {
font-size: 0.24rem;
color: #ffffff;
}
.user_action {
position: absolute;
right: 0.19rem;
bottom: 0.14rem;
display: flex;
flex-direction: column;
align-items: center;
}
.user_top {
width: 0.96rem;
height: 0.97rem;
border: solid 0.03rem #ffffff;
position: relative;
border-radius: 100%;
margin-bottom: 0.3rem;
}
.user_top .tx {
width: 100%;
height: 100%;
border-radius: 100%;
}
.user_top .add {
position: absolute;
bottom: -0.16rem;
left: 50%;
transform: translateX(-50%);
width: 0.34rem;
height: 0.33rem;
}
.user_action ul {
}
.user_action ul li {
display: flex;
align-items: center;
flex-direction: column;
margin-bottom: 0.27rem;
}
.user_action ul li:nth-child(2) img{
width: 0.7rem;
height: 0.7rem;
}
.user_action ul li:last-child{
margin-bottom: 0 !important;
}
.user_action ul p{
font-size: 0.2rem;
color: #ffffff;
}
.user_action ul img {
width: 0.68rem;
height: 0.63rem;
margin-bottom: 0.09rem;
}
.shop {
position: absolute;
bottom: 0.1rem;
left: 0.3rem;
}
.shop_name {
display: flex;
align-items: center;
margin-bottom: 0.22rem;
}
.shop_name img {
width: 0.28rem;
height: 0.26rem;
}
.shop_name p {
font-size: 0.26rem;
color: #ffc600;
margin-left: 0.1rem;
}
.shop_music {
display: flex;
align-items: center;
margin-top: 0.27rem;
}
.shop_music img{
width: 0.27rem;
height: 0.28rem;
margin-right: 0.13rem;
}
.shop_music p{
font-size: 0.24rem;
color: #ffffff;
}
.shop_item {
width: 5.85rem;
height: 1.68rem;
background-color: #ffffff;
position: relative;
display: flex;
align-items: center;
}
.shop_item .shop_img {
width: 1.48rem;
height: 1.48rem;
margin-right: 0.15rem;
margin-left: 0.09rem;
}
.shop_item_right h3{
width: 3.61rem;
font-size: 0.28rem;
color: #333333;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
margin-bottom: 0.2rem;
}
.shop_item_right .price {
display: flex;
align-items: center;
margin-bottom: 0.1rem;
}
.shop_item_right .price span{
font-size: 0.28rem;
color: #333333;
}
.shop_item_right .price .jx{
width: 0.6rem;
height: 0.24rem;
background-color: #ea4e3d;
border-radius: 0.12rem;
margin-left: 0.03rem;
font-size: 0.2rem;
zoom: 0.9;
color: #fffefe;
padding: 0.03rem 0.1rem;
display: flex;
justify-content: center;
align-items: center;
}
.shop_item_right .tip {
font-size: 0.2rem;
color: #626262;
zoom: 0.9;
}
.shop_item .car {
width: 0.46rem;
height: 0.46rem;
position: absolute;
right: 0.34rem;
bottom: 0.17rem;
}

View File

@@ -0,0 +1,3 @@
.clear_size {
font-size: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,97 @@
<!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>Document</title>
<script src="./js/rem.js"></script>
<link rel="stylesheet" href="./css/clear.css">
<link rel="stylesheet" href="./css/public.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div class="header clear_size">
<img class="scode" src="./img/scode.png" alt="">
<ul>
<li>推荐</li>
<li class="active">关注</li>
<li>直播</li>
</ul>
<img class="search" src="./img/search.png" alt="">
</div>
<div class="content">
<div class="user_action clear_size">
<div class="user_top">
<img class="tx" src="https://upload.jianshu.io/users/upload_avatars/11740279/4ba082e0-7a30-4429-9d9b-8cea04af272f.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/180/h/180" alt="">
<img class="add" src="./img/add.png" alt="">
</div>
<ul>
<li>
<img src="./img/like.png" alt="">
<p>71.1W</p>
</li>
<li>
<img src="./img/share.png" alt="">
<p>分享</p>
</li>
<li>
<img src="./img/remme.png" alt="">
<p>评论</p>
</li>
<li>
<img src="./img/shop.png" alt="">
<p>购物袋</p>
</li>
</ul>
</div>
<div class="shop clear_size">
<div class="shop_name">
<img src="./img/shop_icon.png" alt="">
<p>美林美妆合肥店 >7KM</p>
</div>
<div class="shop_item">
<img class="shop_img" src="https://upload-images.jianshu.io/upload_images/3730494-32aac8f186217ab2.png?imageMogr2/auto-orient/strip|imageView2/1/w/300/h/240" alt="">
<div class="shop_item_right">
<h3>夏季网纱半身裙中长款纱……</h3>
<div class="price">
<span>¥68.00</span>
<div class="jx">精选</div>
</div>
<div class="tip">已卖1020</div>
</div>
<img class="car" src="./img/car.png" alt="">
</div>
<div class="shop_music">
<img src="./img/music.png" alt="">
<p>美林美妆合肥店 >7KM</p>
</div>
</div>
</div>
<ul class="footer clear_size">
<li >
<a href="">首页</a>
</li>
<li >
<a href="">好友</a>
</li>
<li>
<a href="">圈子</a>
</li>
<li class="active">
<a href="">购物车</a>
</li>
<li>
<a href="">我的</a>
</li>
</ul>
</body>
</html>

View File

@@ -0,0 +1,12 @@
window.onload = function () {
getRem(750, 100)
};
window.onresize = function () {
getRem(750, 100)
};
function getRem(pwidth, prem) {
var html = document.getElementsByTagName("html")[0];
var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
html.style.fontSize = oWidth / pwidth * prem + "px";
}