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,18 @@
body,ul,li,p,h1,h2,h3,h4,h5,h6 {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
input {
outline: none;
border: none;
padding: 0;
}

View File

@@ -0,0 +1,211 @@
.footer{
position: fixed;
z-index: 999;
bottom: 0;
width: 100%;
height: 1rem;
background-color: #000000;
display: flex;
align-items:center;
justify-content: space-around;
}
.footer li{
font-size: 0.24rem;
color: #ffffff;
position: relative;
}
.footer .active::after{
content: "";
position: absolute;
width: 0.51rem;
height: 0.03rem;
background-color: #ffffff;
border-radius: 0.015rem;
top: 0.6rem;
left: 50%;
transform: translateX(-50%);
}
.footer li.active{
font-size: 0.3rem !important;
}
.content{
height: calc(100vh - 1rem);
background: url(../img/back.png);
background-size: cover;
position: relative;
}
.menu{
display: flex;
align-items:center;
height: 0.42rem;
justify-content: space-between;
padding: 0 0.37rem;
padding-top: 0.37rem;
}
.menu .scode
{
width: 0.42rem;
height: 0.42rem;
}
.menu .list{
display: flex;
align-items: center;
}
.menu .list li{
font-size: 0.3rem;
color: #fefefe;
margin-right: 0.24rem;
position: relative;
}
.menu .list li:last-child {
margin-right: 0;
}
.menu .search{
width: 0.43rem;
height: 0.43rem;
}
.list .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;
top: 0.5rem;
left: 50%;
transform: translateX(-50%);
}
.user_info{
position: absolute;
bottom: 0;
right: 0.19rem;
text-align: center;
font-size: 0;
}
.user_info li{
margin-bottom: 0.36rem;
}
.user_info li:first-child{
position: relative;
}
.user_info li:last-child{
margin-bottom: 0.1rem;
}
.user_info li img{
width: 0.65rem;
height: 0.65rem;
}
.user_info .user{
width: 0.96rem;
height: 0.97rem;
border: solid 0.03rem #ffffff;
border-radius: 100%;
}
.user_info .add{
width: 0.34rem;
height: 0.34rem;
position: absolute;
bottom: -6px;
right: 50%;
transform: translateX(50%);
}
.user_info li p {
font-size: 0.2rem;
color: #ffffff;
margin-top: 0.09rem;
}
.music{
font-size: 0;
position: absolute;
left: 0.3rem;
bottom: 0.13rem;
}
.music_top_title{
margin-bottom: 0.22rem;
display: flex;
align-items: center;
}
.music_top_title img{
width: 0.28rem;
height: 0.26rem;
margin-right: 0.13rem;
}
.music_top_title span{
font-size: 0.26rem;
color: #ffc600;
}
.music_shop{
width: 5.85rem;
height: 1.68rem;
background-color: #ffffff;
padding: 0.1rem;
box-sizing: border-box;
position: relative;
display: flex;
align-items: center;
}
.music_shop .photo{
width: 1.48rem;
height: 1.48rem;
margin-right: 0.15rem;
}
.shop_text{
}
.shop_text h3{
font-size: 0.28rem;
color: #333333;
margin-bottom: 0.15rem;
}
.price{
margin-bottom: 0.13rem;
}
.price .m{
font-size: 0.28rem;
color: #333333;
}
.price .tips{
padding: 0.03rem 0.1rem;
background-color: #ea4e3d;
border-radius: 0.12rem;
color: #fffefe;
font-size: 0.02rem;
}
.car{
position: absolute;
width: 0.46rem;
height: 0.46rem;
bottom: 0.17rem;
right: 0.34rem;
}
.his{
font-size: 0.2rem;
color: #626262;
}
.music_text{
margin-top: 0.29rem;
display: flex;
align-items: center;
}
.music_text img{
width: 0.27rem;
height: 0.28rem;
margin-right: 0.13rem;
}
.music_text span{
font-size: 0.24rem;
color: #ffffff;
}

View File

@@ -0,0 +1,16 @@
.hidden {
overflow: hidden;
}
.layout {
width: 1200px;
margin: 0 auto;
}
.relative {
position: relative;
}
.absolute {
position: absolute;
}

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

View File

@@ -0,0 +1,11 @@
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";
}

View File

@@ -0,0 +1,79 @@
<!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="content">
<div class="menu">
<img class="scode" src="./img/scode.png" alt="">
<ul class="list">
<li class="active">推荐</li>
<li>关注</li>
<li>直播</li>
</ul>
<img class="search" src="./img/search.png" alt="">
</div>
<ul class="user_info">
<li>
<img class="user" src="./img/user.png" alt="">
<img class="add" src="./img/add.png" alt="">
</li>
<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/shop.png" alt="">
<p>购物袋</p>
</li>
</ul>
<div class="music">
<div class="music_top_title">
<img src="./img/shop_icon.png" alt="">
<span>美林美妆合肥店 >7KM</span>
</div>
<div class="music_shop">
<img class="photo" src="./img/user.png" alt="">
<div class="shop_text">
<h3>夏季网纱半身裙中长款纱……</h3>
<div class="price">
<span class="m">¥68.00</span>
<span class="tips">精选</span>
</div>
<div class="his">已卖1020</div>
</div>
<img class="car" src="./img/car.png" alt="">
</div>
<div class="music_text">
<img src="./img/music.png" alt="">
<span>你像花儿一样美DJ</span>
</div>
</div>
</div>
<ul class="footer">
<li class="active">首页</li>
<li>好友</li>
<li>圈子</li>
<li>购物车</li>
<li>我的</li>
</ul>
</body>
</html>