freecodecamp小项目---个人网站

2023-11-08 18:10

本文主要是介绍freecodecamp小项目---个人网站,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

这个简陋的网站只用了html和css效果;

项目效果:

html代码:

 


JZX WebPage

jzx

  • about
  • interests
  • contact

WHO AM I

My name is jzx.I'm studying in ZhongBei University now. My hometown is a small city named SuiNing in SiChuan province. My deam is to be a Font-End developer. I hope my parents are healthy forever.

your name

INTERESTS

CONTACT ME

Name

Email

Phone

Message

send

Do you want to contact me?If you want,please write your information in the left area.I hope to communiate with everyone in the world!And also,i am interested in your experience in Font-End field. Writed by jzx.

About JZX WebPage Made with and by lightforme.

ABOUT THE WEB

lightforme © . All Rights Reversed

 

 

css代码:

 

/*清除样式*/
body, div,iframe, ul, ol, dl, dt, dd, li, dl,   
h1, h2, h3, h4, table,th, td, input, button, select,  textarea,p {margin:0;padding:0;}body{font-size:20px;font-family: 微软雅黑, Lato, sans-serif;}
ol,ul,li{list-style: none;}img{border:0;}
a{text-decoration:none;}/*清除样式结束*//*公共样式*/
.main{width:1040px;}
h2{text-align: center;padding:20px 0;
}
* { box-sizing:border-box; }
.clear:after{content:"";display: block;visibility:hidden;clear:both;}
.left{float:left;
}
/*公共样式结束*/
.right{float:right;
}/*font-icon定义和设置*/
@font-face {font-family: 'iconfont';  /* project id 288961 */src: url('//at.alicdn.com/t/font_2tty7mqfoqb2zkt9.eot');src: url('//at.alicdn.com/t/font_2tty7mqfoqb2zkt9.eot?#iefix') format('embedded-opentype'),url('//at.alicdn.com/t/font_2tty7mqfoqb2zkt9.woff') format('woff'),url('//at.alicdn.com/t/font_2tty7mqfoqb2zkt9.ttf') format('truetype'),url('//at.alicdn.com/t/font_2tty7mqfoqb2zkt9.svg#iconfont') format('svg');
}
.ic{font-family:"iconfont" !important;color: ;font-size: 70px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
.ms{font-family:"iconfont" !important;color: ;font-size: 30px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
.cof{font-family:"iconfont" !important;color: ;font-size: 30px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
.in{font-family:"iconfont" !important;color: ;font-size: 30px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
.git{font-family:"iconfont" !important;color: ;font-size: 35px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
.csdn{font-family:"iconfont" !important;color: ;font-size: 26px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
.tw{font-family:"iconfont" !important;color: ;font-size: 35px;font-style:normal;-webkit-font-smoothing: antialiased;-webkit-text-stroke-width: 0.2px;-moz-osx-font-smoothing: grayscale;
}
/*导航栏样式*/
.navbar{height:100px;
}
.navbar div ul{float:right;position: absolute;top:20px;right:10px;}
.navbar .navbar-header{position:absolute;top:10px;left:14px;
}
/*导航栏样式结束*//*content内容部分样式*/.content{margin:0 auto;line-height: 35px;padding-bottom: 30px;background:#f0f0f0;padding:0px 20px;}
/*class=about*/
.about{height:300px;/*border:1px solid red;*/position: relative;	
}
.about p{position:absolute;top:100px;
}
.about img.img_ab{width:320px;height:180px;position: absolute;top:70px;right:10px;border-radius:5px;
}/*class=interests*/
.interests img{width:420px;height:300px;border-radius: 5px;
}
.interests ul li{display: inline-block;padding:20px 40px;
}/*content部分样式结束*//*contact部分样式*/
.contact{padding: 30px 0;
}
/*contact表单样式*/
.contact .form{width:380px;
}
.group 			  { position:relative; margin-bottom:45px; 
}
input 				{font-size:18px;padding:10px 10px 10px 5px;display:block;width:300px;border:none;border-bottom:1px solid #757575;
}
input:focus 		{ outline:none; }
label 				 {color:#999; font-size:18px;font-weight:normal;position:absolute;pointer-events:none;left:5px;top:10px;transition:0.2s ease all; -moz-transition:0.2s ease all; -webkit-transition:0.2s ease all;
}/* active state */
input:focus ~ label, input:valid ~ label 		{top:-20px;font-size:14px;color:#5264AE;
}
.bar 	{ position:relative; display:block; width:300px; }
.bar:before, .bar:after 	{content:'';height:2px; width:0;bottom:1px; position:absolute;background:#5264AE; transition:0.2s ease all; -moz-transition:0.2s ease all; -webkit-transition:0.2s ease all;
}
.bar:before {left:50%;
}
.bar:after {right:50%; 
}/* active state */
input:focus ~ .bar:before, input:focus ~ .bar:after {width:50%;
}/* HIGHLIGHTER ================================== */
.highlight {position:absolute;height:60%; width:100px; top:25%; left:0;pointer-events:none;opacity:0.5;
}/* active state */
input:focus ~ .highlight {-webkit-animation:inputHighlighter 0.3s ease;-moz-animation:inputHighlighter 0.3s ease;animation:inputHighlighter 0.3s ease;
}
.contact form button{width:200px;
}
.contact .form form{width:400px;padding-left:90px;}
.contact{position:relative;}
.contact .form .group input{background:#f0f0f0;
}
/*contact tip样式*/
.contact .tip{width:380px;
}
.contact .tip{position:absolute;top:80px;right:40px;
}/*contact部分样式结束*//*footer样式*/
.footer a,.footer a:visited{text-decoration: none;}
.footer a:hover,.footer a:active{text-decoration: none;}
.footer .f_bottom{height:50px;text-align: center;line-height: 50px;}
.footer .f_top{background:#F8F8F8;
}
.footer .f_top span{font-size:28px;	
}
.footer .f_bottom{background:#f0f0f0;
}

 

 

这篇关于freecodecamp小项目---个人网站的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/371603

相关文章

精选20个好玩又实用的的Python实战项目(有图文代码)

《精选20个好玩又实用的的Python实战项目(有图文代码)》文章介绍了20个实用Python项目,涵盖游戏开发、工具应用、图像处理、机器学习等,使用Tkinter、PIL、OpenCV、Kivy等库... 目录① 猜字游戏② 闹钟③ 骰子模拟器④ 二维码⑤ 语言检测⑥ 加密和解密⑦ URL缩短⑧ 音乐播放

Springboot项目启动失败提示找不到dao类的解决

《Springboot项目启动失败提示找不到dao类的解决》SpringBoot启动失败,因ProductServiceImpl未正确注入ProductDao,原因:Dao未注册为Bean,解决:在启... 目录错误描述原因解决方法总结***************************APPLICA编

在IntelliJ IDEA中高效运行与调试Spring Boot项目的实战步骤

《在IntelliJIDEA中高效运行与调试SpringBoot项目的实战步骤》本章详解SpringBoot项目导入IntelliJIDEA的流程,教授运行与调试技巧,包括断点设置与变量查看,奠定... 目录引言:为良驹配上好鞍一、为何选择IntelliJ IDEA?二、实战:导入并运行你的第一个项目步骤1

IntelliJ IDEA2025创建SpringBoot项目的实现步骤

《IntelliJIDEA2025创建SpringBoot项目的实现步骤》本文主要介绍了IntelliJIDEA2025创建SpringBoot项目的实现步骤,文中通过示例代码介绍的非常详细,对大家... 目录一、创建 Spring Boot 项目1. 新建项目2. 基础配置3. 选择依赖4. 生成项目5.

深度解析Java项目中包和包之间的联系

《深度解析Java项目中包和包之间的联系》文章浏览阅读850次,点赞13次,收藏8次。本文详细介绍了Java分层架构中的几个关键包:DTO、Controller、Service和Mapper。_jav... 目录前言一、各大包1.DTO1.1、DTO的核心用途1.2. DTO与实体类(Entity)的区别1

如何在Spring Boot项目中集成MQTT协议

《如何在SpringBoot项目中集成MQTT协议》本文介绍在SpringBoot中集成MQTT的步骤,包括安装Broker、添加EclipsePaho依赖、配置连接参数、实现消息发布订阅、测试接口... 目录1. 准备工作2. 引入依赖3. 配置MQTT连接4. 创建MQTT配置类5. 实现消息发布与订阅

springboot项目打jar制作成镜像并指定配置文件位置方式

《springboot项目打jar制作成镜像并指定配置文件位置方式》:本文主要介绍springboot项目打jar制作成镜像并指定配置文件位置方式,具有很好的参考价值,希望对大家有所帮助,如有错误... 目录一、上传jar到服务器二、编写dockerfile三、新建对应配置文件所存放的数据卷目录四、将配置文

怎么用idea创建一个SpringBoot项目

《怎么用idea创建一个SpringBoot项目》本文介绍了在IDEA中创建SpringBoot项目的步骤,包括环境准备(JDK1.8+、Maven3.2.5+)、使用SpringInitializr... 目录如何在idea中创建一个SpringBoot项目环境准备1.1打开IDEA,点击New新建一个项

springboot项目中整合高德地图的实践

《springboot项目中整合高德地图的实践》:本文主要介绍springboot项目中整合高德地图的实践,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一:高德开放平台的使用二:创建数据库(我是用的是mysql)三:Springboot所需的依赖(根据你的需求再

一文详解如何在idea中快速搭建一个Spring Boot项目

《一文详解如何在idea中快速搭建一个SpringBoot项目》IntelliJIDEA作为Java开发者的‌首选IDE‌,深度集成SpringBoot支持,可一键生成项目骨架、智能配置依赖,这篇文... 目录前言1、创建项目名称2、勾选需要的依赖3、在setting中检查maven4、编写数据源5、开启热