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,23 @@
body,p,ul,li,h1,h2,h3,h4,h5,h6,input{
margin: 0;
padding: 0;
border: none;
}
body {
font-size: 0;
}
li {
list-style: none;
}
input {
/* 去除选中input时候产生的外边框 */
outline: none;
}
a {
text-decoration: none;
color: #000;
}

View File

@@ -0,0 +1,242 @@
.header {
position: fixed;
width: 100%;
height: .9rem;
display: flex;
z-index: 999;
top: 0.29rem;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 0.37rem;
}
.header img {
width: 0.42rem;
height: 0.42rem;
}
.header ul {
display: flex;
justify-content: space-around;
align-items: center;
}
.header ul li{
font-size: 0.3rem;
color: #fff;
}
.header ul li:nth-child(2) {
margin: 0 0.22rem;
}
.content {
height: calc(100vh - 1rem);
background: url("../img/back.png");
background-size: cover;
background-position-x: center;
position: relative;
}
.user_right {
position: absolute;
right: 0.19rem;
bottom: 0.14rem;
}
.user_right .user_top {
position: relative;
border: solid 0.03rem #ffffff;
width: 0.96rem;
height: 0.97rem;
border-radius: 100%;
margin-bottom: 0.3rem;
}
.user_right .user_top .user_img{
width: 100%;
height: 100%;
}
.user_right .user_top .user_flow{
position: absolute;
width: 0.34rem;
height: 0.33rem;
left: 50%;
transform: translateX(-50%);
bottom: -0.14rem;
}
.user_right ul{}
.user_right ul li {
text-align: center;
}
.user_right ul li:nth-child(1){
margin-bottom: 0.36rem;
}
.user_right ul li:nth-child(2){
margin-bottom: 0.27rem;
}
.user_right ul li:nth-child(3){
margin-bottom: 0.32rem;
}
.user_right ul li:nth-child(1) p {
margin-top: 0.09rem;
}
.user_right ul li:nth-child(2) p {
margin-top: 0.09rem;
}
.user_right ul li:nth-child(3) p{
margin-top: 0.17rem;
}
.user_right ul li:nth-child(4) p{
margin-top: 0.15rem;
}
.user_right ul li:nth-child(1) img {
width: 0.68rem;
height: 0.63rem;
}
.user_right ul li:nth-child(2) img {
width: 0.67rem;
height: 0.8rem;
}
.user_right ul li:nth-child(3) img {
width: 0.7rem;
height: 0.7rem;
}
.user_right ul li:nth-child(4) img {
width: 0.61rem;
height: 0.61rem;
}
.user_right ul li p {
font-size: 0.2rem;
color: #ffffff;
}
.music_bottom {
position: absolute;
left: 0.3rem;
bottom: 0.1rem;
}
.music_bottom .shop_name {
display: flex;
align-items: center;
margin-bottom: 0.22rem;
}
.music_bottom .shop_name img {
width: 0.28rem;
height: 0.26rem;
margin-right: 0.1rem;
margin-left: 0.07rem;
}
.music_bottom .shop_name .shop_title {
margin-right: 0.26rem;
}
.music_bottom .shop_name span {
font-size: 0.26rem;
color: #ffc600;
}
.music_bottom .shop_item {
width: 5.85rem;
height: 1.68rem;
background-color: #ffffff;
display: flex;
padding: 0.1rem 0.09rem;
box-sizing: border-box;
margin-bottom: 0.29rem;
position: relative;
}
.music_bottom .shop_item .car{
width: 0.46rem;
height: 0.46rem;
position: absolute;
bottom: 0.17rem;
right: 0.34rem;
}
.music_bottom .shop_item .shop_pic {
width: 1.48rem;
height: 1.48rem;
margin-right: 0.15rem;
}
.music_bottom .shop_item .shop_item_r{}
.music_bottom .shop_item_r .shop_item_title{
font-size: 0.28rem;
color: #333333;
margin-bottom: 0.21rem;
}
.music_bottom .shop_item_r .shop_item_price{
display: flex;
align-items: center;
margin-bottom: 0.17rem;
}
.music_bottom .shop_item_r .nums{
font-size: 0.2rem;
color: #626262;
zoom: 0.8;
}
.music_bottom .shop_item_price .price{
font-size: 0.28rem;
color: #333333;
margin-right: 0.03rem;
}
.music_bottom .shop_item_price .jx{
width: 0.6rem;
height: 0.24rem;
background-color: #ea4e3d;
border-radius: 0.12rem;
display: flex;
align-items: center;
justify-content: center;
}
.jx span {
font-size: 0.2rem;
color: #fffefe;
zoom: 0.8;
}
.shop_music {
display: flex;
align-items: center;
}
.shop_music img {
width: 0.27rem;
height: 0.28rem;
margin-right: 0.13rem;
}
.shop_music span {
font-size: 0.24rem;
color: #ffffff;
}
.footer {
position: fixed;
width: 100%;
bottom: 0;
left: 0;
height: 1rem;
background-color: #000000;
display: flex;
align-items: baseline;
justify-content: space-between;
padding-left: 0.39rem;
padding-right: 0.54rem;
box-sizing: border-box;
line-height: 1rem;
}
.footer li {
height: 100%;
}
.footer li a {
font-size: 0.24rem;
color: #ffffff;
}
.footer .active {
position: relative;
}
.footer .active a{
font-size: 0.3rem;
}
.footer .active::after {
content: "";
position: absolute;
width: 0.51rem;
height: 0.03rem;
background-color: #ffffff;
border-radius: 0.015rem;
left: 50%;
transform: translateX(-50%);
bottom: 0.05rem;
}

View File

@@ -0,0 +1,6 @@
@media screen and (min-width: 1024px) {
body {
width: 375px;
margin: 0 auto;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 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: 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.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 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">
<img src="./img/sc.png" alt="">
<ul>
<li>推荐</li>
<li>关注</li>
<li>直播</li>
</ul>
<img src="./img/search.png" alt="">
</div>
<div class="content">
<div class="user_right">
<div class="user_top">
<img class="user_img" src="./img/user.png" alt="">
<img class="user_flow" src="./img/flow.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/comment.png" alt="">
<p>评论</p>
</li>
<li>
<img src="./img/shop.png" alt="">
<p>购物袋</p>
</li>
</ul>
</div>
<div class="music_bottom">
<div class="shop_name">
<img src="./img/shop_icon.png" alt="">
<span class="shop_title">美林美妆合肥店</span>
<span>>7KM</span>
</div>
<div class="shop_item">
<img class="shop_pic" src="./img/4832198.png" alt="">
<div class="shop_item_r">
<div class="shop_item_title">夏季网纱半身裙中长款纱……</div>
<div class="shop_item_price">
<span class="price">¥68.00</span>
<div class="jx">
<span>精选</span>
</div>
</div>
<div class="nums">已卖1020</div>
</div>
<img class="car" src="./img/car.png" alt="">
</div>
<div class="shop_music">
<img src="./img/music.png" alt="">
<span>你像花儿一样美(DJ)版</span>
</div>
</div>
</div>
<ul class="footer">
<li class="active">
<a href="">首页</a>
</li>
<li>
<a href="">好友</a>
</li>
<li>
<a href="">圈子</a>
</li>
<li>
<a href="">购物车</a>
</li>
<li>
<a href="">我的</a>
</li>
</ul>
</body>
</html>

View File

@@ -0,0 +1,13 @@
window.onload = function () {
/*720代表设计师给的设计稿的宽度,你的设计稿是多少,就写多少;100代表换算比例,这里写100是
为了以后好算,比如,你测量的一个宽度是100px,就可以写为1rem,以及1px=0.01rem等等*/
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";
}