A Pen by GuoXi

Thumbnail
This awesome code was written by 1206189299, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 1206189299 ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  GuoXi</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  
	<header class="head">
		<div class="logo">
			<img src="images/1.jpg" />
			<span>新世界</span>
   		</div>
   			<ul class="nav_list">
   				<li><a href="">首页</a></li>
   				<li><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>
   </header>
   <div class="container">
   	  <section class="sec1">
   	  	<div class="wrap_life">
   	  			<h1>Time of new life</h1> 
   	  			<p>新时代,年轻的人们让我们一起<br>体验新生活,享受新生活</p>
   	  			<button type="button">开始体验</button>
   	  	</div>
			<ul class="life_list">
   	  			<li class="life_item">
   	  				<div><img src="images/8.jpg"></div>
   	  				<div>打造全新世界观,让你重新爱上你的生活</div>
   	  			</li>
   	  			<li class="life_item">
   	  				<div><img src="images/9.jpg"></div>
   	  				<div>丰富多彩的公益活动,发挥新世界的主人公意识</div>
   	  			</li>
   	  			<li class="life_item">
   	  				<div><img src="images/10.jpg"></div>
   	  				<div>时尚的新理念,超前体验未知的生活</div>
   	  			</li>
   	  			<li class="life_item">
   	  				<div><img src="images/11.jpg"></div>
   	  				<div>完善的培训机制,培养你全新的世界观</div>
   	  			</li>
   	  		</ul>
   	  </section>
   	  <section class="sec2">
   	  	<div class="new_world">
   	  		<img src="images/12.jpg">
   	  		<p>
   	  			关于新世界,你不知道的还有什么?
   	  		</p>
   	  	</div>
   	  	<div class="wrap_location">
   	  		<p>查找新世界<span>城</span>市活动信息</p>
   	  		<p>每个城市有不同的活动信息,请自主查询您需要了解的城市!</p>
   	  		<ul class="location_list">
   	  			<li>
                 <select>
                 	<option value="china">中国</option>
                 	<option value="America">美国</option>
                 	<option value="japan">日本</option>
                 	<option value="England">英国</option>
                 </select>
   	  			</li>
   	  			<li>
                 <select>
                 	<option value="huNan">湖南</option>
                 	<option value="BeiJing">北京</option>
                 	<option value="ShangHai">上海</option>
                 	<option value="XiangGang">香港</option>
                 </select>
   	  			</li>
   	  			<li>
   	  			<select name="city" id="">
   	  				<option value="">长沙</option>
   	  				<option value="">衡阳</option>
   	  				<option value="">株洲</option>
   	  				<option value="">湘潭</option>
   	  			</select>
   	  			</li>
   	  			<li>
   	  				<button type="button">search</button>
   	  			</li>
   	  		</ul>
   	  	</div>
   	  	<div class="active">
   	  		<ul class="clearfix">
   	  			<li>
	   	  			<figure><img src="images/15.jpg"></figure>
	                <h1>北京活动</h1>
	                <p>欢迎来到北京</p>
   	  			</li>
   	  			<li>
   	  				<h1>上海活动</h1>
   	  				<p>欢迎来到上海</p>
					<figure><img src="images/16.jpg"></figure>
   	  			</li>
   	  			<li>
   	  				<figure><img src="images/17.jpg"></figure>
   	  				<h1>天津</h1>
   	  				<p>欢迎来到天津</p>
   	  			</li>
   	  			<li>
   	  				<figure><img src="images/19.jpg"></figure>
   	  				<h1>长沙</h1>
   	  				<p>欢迎来到长沙</p>
   	  			</li>
   	  		</ul>
   	  	</div>
   	  </section>
   	  <section>
   	  	<div class="clearfix">
   	  		<div class="beijing"><img src="images/21.jpg"></div>
   	  		<div class="Bj_word">
   	  			<h1>新世界/<span>01</span></h1>
   	  			<p>
   	  			新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界新世界
   	  			</p>
   	  			<a href="javascript:void(0)" class="details">更多详细</a>
   	  			<div class="circle">
   	  			<span></span>
   	  			<span></span>
   	  			<span></span>
   	  			</div>
   	  		</div>
   	  	</div>
   	  	<div class="clearfix colorWrap">
   	  		<div class="red-wrap">
   	  		 <div class="red">
   	  			<h1>新时代<br>
   	  			关爱<span>生活</span>的我们</h1>
   	  			<a>查看更多</a>
   	  	     </div>
   	  		</div>
   	  		<div class="white-wrap">
   	  			<div class="white">
   	  				<h1>新时代<br>
   	  			关爱<span>生活</span>的我们</h1>
   	  			<a>查看更多</a>
   	  			</div>
   	  		</div>
          <div class="pic"><img src="images/20.jpg"></div>
   	  	</div>
   	  </section>
   	  <section class="sec3">
   	  	<div class="sec3_top">
   	  	 <div class="top_inner">
   	  	<h1>言<span>叶之</span>庭</h1>
   	  	<p>阴霾天空,隐约雷鸣,但盼风雨来,能留你在此!<br>阴霾天空,隐约雷鸣,即使天无雨,我亦留此地。</p>
   	  	</div>
   	  	</div>
   	  	<div class="sec3_bottom">
   	  	<div class="bottom_left">
   	  		<div class="">
   	  			<h1>新世界志愿者协议</h1>
   	  			<p>加入新世界志愿者的人员必须遵守中华人民共共和国的 相关法律法规,并且本着平等资源的原则 ......</p>
   	  			<div class="wrap-icon"><span class="icon"></span><span>more</span></div>
   	  		</div>
   	  		<div>
   	  			<h1>新世界志愿者协议</h1>
   	  			<p>加入新世界志愿者的人员必须遵守中华人民共共和国的 相关法律法规,并且本着平等资源的原则 ......</p>
   	  			<div class="wrap-icon"><span class="icon"></span><span>more</span></div>
   	  		</div>
   	  		<div>
            <h1>更多条款</h1>
            <div class="wrap-icon"><span class="icon"></span><span>more</span></div>
   	  		</div>
   	  	</div>
   	  	<div class="bottom_right">
   	  		<form>
   	  			<div class="message">
   	  				<input type="text" name="name" class="name" placeholder="请输入姓名">
   	  				<input type="text" name="age" class="age" placeholder="请输入年龄">
   	  			</div>
   	  			<div class="message">
   	  				<input type="text" name="contact" class="contact" placeholder="联系方式">
   	  				<input type="text" name="addrees" class="address" placeholder="联系地址">
   	  			</div>
   	  			<div class="message">
   	  				<textarea class="introduce"></textarea>
   	  			</div>
   	  			<button  type="button" class="message-btn">提交申请</button>
   	  		</form>
   	  	</div>
   	  	</div>
   	  </section>
   </div>
   <footer class="foot">
   	   <div class="foot-contact">
   	   	<p><span>联系我们</span><br>
         为了更好的获取我们最新的产品资讯,您可以留下您的电子邮箱快速订阅我们的产品资讯 也可以通过以下任何方式关注我们动态
   	   	</p>
   	    <input type="text" name="search" class="search" placeholder="www.baiduIFE.com"><button type="button" class="search-btn">提交</button> 
   	   </div>
   </footer>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/1206189299/a-pen-by-guoxi-KWWoYa */
body, ul,p,h1,figure {
	margin: 0;
	padding: 0;
}
ul {
	list-style: none;
}
a {
	text-decoration: none;
}
.clearfix::after{
     display: block;
     content: "";
     clear: both;
}
.head {
	box-sizing: border-box;
	min-width: 1255px;
	padding: 10px 57px 0 57px;
	height: 60px;
}
.logo {
	float: left;
	font-size: 20px;
	font-weight: bold;
	height: 31px;
	line-height: 31px;
}
.logo >span {
	vertical-align: top;
}
.nav_list {
	float: right;
}
.nav_list > li {
	float: left;
	height: 46px;
	padding: 0 15px;
	font-size: 15px;
}
.nav_list > li:hover {
	border-bottom: 4px solid red;
	color: red;
}
.nav_list a{
	color: inherit;
}
/* __________________container______________________________ */
.container {
	width: 1253px;
	margin: 0 auto;
	background: rgba(147,147,147,.5);
}
.wrap_life {
	background: url(images/07.jpg);
	width: 100%;
	height: 692px;
	box-sizing: border-box;
	padding-top: 220px;
	padding-left: 115px;
	font-family: "微软雅黑";
}
.wrap_life > h1{
  font-size: 60px;
  color: white;
  font-family: "微软雅黑";
  padding-bottom: 10px;
}
.wrap_life > p{
	color: white;
	font-size: 21px;
	font-family: "微软雅黑";
	line-height: 29px;
	padding-bottom: 60px;
}
.wrap_life > button{
	color: white;
	font-size: 30px;
	background: rgb(231,79,77);
	width: 330px;
	height: 65px;
	border: none;
}
.life_list{
	overflow: hidden;
	width: 100%;
	background: white;
	padding-bottom: 60px;
}
.life_item{
	float: left;
	width: 25%
}
.life_item > div:nth-child(1){
	height: 128px;
	position: relative;
}
.life_item > div:nth-child(1) > img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.life_item > div:nth-child(2){
	border-right: 2px solid gray;
	height: 58px;
	padding: 0 25%;
	font-size: 14px;
}
/* ___________________________________sec2_________________________ */

.new_world{
height: 365px;
box-sizing: border-box;
padding-top: 88px;
background: rgb(237,236,236);
text-align: center;
}
.new_world > img{

}
.new_world > p{
	padding-top: 30px;
	font-size: 54px;
    color: gray;
    font-family: "黑体";
}
.wrap_location{
	height: 340px;
	background: url(images/13.jpg);
	text-align: center;
	color: white;
}
.wrap_location > p:nth-child(1){
    font-size: 21px;
    line-height: 21px;
    padding-top: 50px;
}
.wrap_location > p:nth-child(1) >span{
	padding-bottom: 8px;
	border-bottom: 2px solid white;
}
.wrap_location > p:nth-child(2){
	font-size: 12px;
	line-height: 31px;
	padding-top: 25px;
	padding-bottom: 50px;
}
.location_list{
	width: 100%;
	overflow: hidden;
}
.location_list > li{
	width: 25%;
	float: left;
}
.location_list select{
   -webkit-appearance:none;
   width: 236px;
   height: 37px;
   background-image: url(images/14.jpg);
   background-position: 210px center;
   background-repeat: no-repeat;
   border: rgb(190,78,72);
}
.location_list button{
	width: 236px;
	height: 37px;
	background-color: rgb(190,78,72);
	border: none;
	color: white;
}
.active{
	background: rgb(247,247,247);
	width: 100%;
	height: 606px;
}
.active > ul{
	box-sizing: border-box;
	padding: 100px 130px;
}
.active li{
	float: left;
	width: 220px;
	height: 390px;
    text-align: center;
}
.active li > figure{
	background: white;
	box-shadow: border-box;
	border: solid 1px;
	border-color: rgba(147,147,147,.5);
	padding:12px 7px;
}
.active li+li{
	margin-left: 35px;
}
.active > ul > li > h1{
   font-size:16px;
   font-family: "微软雅黑";
   line-height: 40px;
}
.active p{
   font-size:13px;
   color: gray;
   font-family: "微软雅黑";
}
.active > ul > li:nth-child(2) > h1{
	font-size: 25px;
	letter-spacing: 25px;
	line-height: 25px;
}
.active > ul > li:nth-child(2) > p{
	padding-bottom: 6px;
}
.beijing{
	float: left;
	width: 850px;
	height: 564px;
}
.Bj_word{
	float: left;
	width: 403px;
	height: 564px;
	padding: 155px 68px 120px 68px;
	box-sizing: border-box;
	background: white;
}

.Bj_word > p{
	width: 100%;
	font-size: 15px;
	line-height: 37px;
	text-align: justify;
}
.Bj_word >h1{
	font-size:20px;
	font-weight: 500;
	line-height: 46px;
	text-align: center;
}
.Bj_word > h1 >span{
	color: red;
}
.details{
	width:106px;
	height: 33px;
	border: 1px solid red;
	display: inline-block;
	text-align: center;
	line-height: 33px;
	color: red;
	font-size: 14px;
	margin-top: 30px;
	margin-left: 90px;
}
.circle{
	width: 100%;
	box-sizing: border-box;
	padding-left:115px;
	margin-top: 20px;
}
.circle >span{
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: white;
	border-radius: 5px;
	margin-left: 5px;
	border: 1px solid gray;
}
.circle > span:nth-child(1){
	background-color: rgb(7,17,27);
}
.colorWrap{
	width: 100%;
}
.colorWrap > div{
	float: left;
	width: 33.33333%;
	height: 522px;
}
.red-wrap{
	background: red;
	position: relative;
}
.red{
	width: 187px;
	height: 177px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}
.red >h1{
	text-align: center;
	color: white;
	margin-bottom: 50px;
	font-size: 18px;
	letter-spacing: 3px;
}
.red > h1 > span{
	padding-bottom: 15px;
	border-bottom: 2px solid white;
}
.red >a {
	line-height: 44px;
	text-align: center;
	display: inline-block;
	width: 170px;
	height: 44px;
	border: solid 1px white; 
	color: white;
}
.white-wrap{
    position: relative;
	background:white;
}
.white{
	width: 187px;
	height: 177px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}
.white >h1{
	text-align: center;
	color: black;
	margin-bottom: 50px;
	font-size: 18px;
	letter-spacing: 3px;
}
.white > h1 > span{
	padding-bottom: 15px;
	border-bottom: 2px solid black;
}
.white > a {
	line-height: 44px;
	text-align: center;
	display: inline-block;
	width: 170px;
	height: 44px;
	border: solid 1px red; 
	color: red;
}
.pic > img{
	width: 100%;
	height: 100%;
}
/* __________________________sec3______________________________ */
.sec3{
    height: 750px;
    width: 100%;
}
.sec3_top{
	height: 300px;
	width: 100%;
	background:white;
	display: table;
}
.top_inner{
display: table-cell;
vertical-align: middle;
text-align: center;
}
.top_inner > h1{
 font-size: 21px;
 padding-bottom: 25px;
}
.top_inner >h1 >span{
	border-bottom: 2px solid red;
	padding-bottom: 10px;
}
.top_inner > p{
	font-size: 14px;
	color: rgb(170,170,170);
	font-family: "微软雅黑";
}
.sec3_bottom{
	height: 450px;
	width: 100%;
	box-sizing: border-box;
	padding: 0 115px 165px 115px;
	background: white;
}
.bottom_left{
	width: 295px;
	float: left;
	height: 100%;
}
.bottom_left h1{
    font-size: 14px;
    font-family: "黑体";
    padding-bottom: 25px;
}
.bottom_left p{
	font-size: 12px;
	color: gray;
}

.wrap-icon{
	text-align: right;
    font-size: 12px;
}
.icon{
	position: relative;
	top: 15px;
	width: 0;
	height: 0; 
	border-top:5px solid black;
	border-left: 5px solid white;
	border-right: 5px solid white;
}
.bottom_right{
	float: left;
    background: white;
	width: 640px;
	height: 100%;
	margin-left: 75px;
}
.message{
	padding-bottom: 14px;
	overflow: hidden;
	width: 100%;
}
.message > input{
	width: 300px;
	height: 35px;
	border: none;
	background: rgb(236,236,238);
}
.message > input:nth-child(1){
	float: left;
}
.message > input:nth-child(2){
	float: right;
}
.introduce{
	width: 100%;
	height: 120px;
	background: rgb(236,236,238);
	border: none;
}
.message-btn{
	width: 100%;
	height: 40px;
	background: rgb(236,236,238);
	border: none;
}
/* _____________footer_____________________ */
.foot{
	height:420px;
	width: 1253px;
	background: rgb(50,53,62);
	box-sizing: border-box;
	padding:90px 370px 0 370px;
	margin: 0 auto
}
.foot-contact{
    color: white;
    text-align: center;
}
.foot-contact > p >span{
   font-size: 21px;
   line-height: 41px;
}
.foot-contact > p{
	font-size: 12px;
	line-height: 18px;
	margin-bottom: 30px;
}
.search{
	height: 40px;
	width: 427px;
	background: rgb(255,255,255);
	font-size: 14px;
	border: none;
	line-height: 14px;
	padding:0;
}
.search-btn{
	height: 40px;
	width: 85px;
	border: none;
	background: rgb(111,113,120);
}

Comments