今天博主的web前端选修课结课了,期末大作业也提交了,今天写一篇博客把我的大作业分享给大家。
个人简历主页设计
应尽量包含以下内容:
Ø 包含个人基本信息、教育背景、个人风采、与我联系四块内容
Ø 在页面组织上,以上内容可以通过主页链接到不同页面,也可以放在一个页面的不同区域
Ø 主页中有链接到其他各模块的导航条,以及个人基本信息的介绍
Ø 教育背景中包含自己的教育经历(小学、初中、高中、大学)以及大学中所学科目和成绩的表格
Ø 个人风采栏目包含一个自动播放的照片查看器
Ø 与我联系页面设置一个表单,填写完毕后提交可显示所填写的信息
下面是我对设计思路的分析:
以下是我对各部分应该使用什么实现方式的建议:
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>web个人简历title>
<link rel="stylesheet" type="text/css" href="css/back.css">
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.8/plyr.css" />
<script src="js/dongtai.js">script>
<script src="https://cdn.plyr.io/3.6.8/plyr.polyfilled.js">script>
head>
<body>
<div id="first">
<div class="nav-container">
<select onchange="location = this.value;">
<option value="">请选择页面option>
<option value="#first">简历首页option>
<option value="#second">基本信息option>
<option value="#third">教育背景option>
<option value="#forth">个人风采option>
<option value="#">与我联系option>
select>
div>
<div class="circle">div>
<div class="vertical-text">
<div class="sentence">烟花虽美,只是一瞬。div>
<div class="sentence">日子再苦,只是一时。div>
<div class="sentence">相信自己,未来可期。div>
<div class="signature">
-------- 未来的你div>
div>
<h1>我的个人简历h1>
<div class="image-container">
<img src="images/city2.jpg" alt="image1">
<img src="images/city1.jpg" alt="image2">
div>
<div class="audio-container" style="display: flex; justify-content: flex-end; margin-top: 20px;" autoplay>
<audio controls style="width: 300px; height: 50px; outline: none; background-color: #eee; border-radius: 10px; padding: 10px; margin: 0 10px; text-align: right;">
<source src="music/music1.mp3" type="audio/mp3">
您的浏览器不支持音频元素。
audio>
div>
<a href="#" class="arrow">▼a>
div>
<div id="second">
<h1>个人信息h1>
<table class="biaoge">
<tr>
<td><img src="images/1.jpg" alt="个人信息"><br>姓名:xxx<br>性别:男td>
tr>
<tr>
<td><img src="images/2.jpg" alt="专业学历"><br>专业:物联网工程<br>学历:本科td>
tr>
<tr>
<td><img src="images/3.jpg" alt="就读学校"><br>就读学校:xx理工大学<br>学习课程:web设计与应用td>
tr>
<tr>
<td><img src="images/4.jpg" alt="个人爱好"><br>爱好:阅读、游戏、旅游<br>喜欢体育:乒乓球td>
tr>
table>
div>
<div id="third">
<h1>教育背景h1>
<h2>教育经历:h2>
<table class="teach">
<tr>
<td>阶段td>
<td>地点td>
<td>时间td>
tr>
<tr>
<td>小学td>
<td>xxxxxxxxxxxxxxxxxxxxtd>
<td>2008.09~2014.07td>
tr>
<tr>
<td>中学td>
<td>xxxxxxxxxxxxxxxxxxxxxxxtd>
<td>2014.09~2017.07td>
tr>
<tr>
<td>高中td>
<td>xxxxxxxxxxxtd>
<td>2017.09~2020.07td>
tr>
<tr>
<td>大学td>
<td>xx理工大学td>
<td>2020.09~至今td>
tr>
table>
<h2>成绩绩点:h2>
<img src="images/grade.jpg" alt="grade image">
<p style="font-family: Arial; font-size: 16px; color: yellow; text-align: left;">以上课程成绩来源于上学期部分科目成绩p>
div>
<div id="forth">
<h1>个人风采h1>
<p style="color:yellow;margin-top: 10px">若可,惟愿人间太平,许你一生,不受离别之苦。守着岁月静好,日出而作,日落而息,细水流长。p>
<div class="plyr__video-embed rainbow-border" >
<video controls crossorigin playsinline>
<source src="shipin/mylife.mp4" type="video/mp4" />
video>
div>
<h2>照片查看器h2>
<div class="gallery-container">
<div id="gallery1">
<h2>我的校园h2>
<div class="slideshow">
<img src="images/kust1.jpg" alt="Image 1">
<img src="images/kust2.jpg" alt="Image 2">
<img src="images/kust3.jpg" alt="Image 3">
<img src="images/kust4.jpg" alt="Image 4">
div>
<script>
var currentImage1 = 0;
var images1 = document.querySelectorAll("#gallery1 .slideshow img");
function nextSlide1() {
images1[currentImage1].style.display = "none";
currentImage1 = (currentImage1 + 1) % images1.length;
images1[currentImage1].style.display = "block";
}
setInterval(nextSlide1, 3000);
script>
div>
<div id="gallery2">
<h2>简单的我h2>
<div class="slideshow">
<img src="images/me.jpg" alt="Image 1">
<img src="images/me1.jpg" alt="Image 2">
<img src="images/me2.jpg" alt="Image 3">
<img src="images/me3.jpg" alt="Image 4">
div>
<script>
var currentImage2 = 0;
var images2 = document.querySelectorAll("#gallery2 .slideshow img");
function nextSlide2() {
images2[currentImage2].style.display = "none";
currentImage2 = (currentImage2 + 1) % images2.length;
images2[currentImage2].style.display = "block";
}
setInterval(nextSlide2, 3000);
script>
div>
<div id="gallery3">
<h2>考研日记h2>
<div class="slideshow">
<img src="images/kaoyan1.jpg" alt="Image 1">
<img src="images/kaoyan2.jpg" alt="Image 2">
<img src="images/kaoyan3.jpg" alt="Image 3">
<img src="images/kaoyan4.jpg" alt="Image 4">
div>
<script>
var currentImage3 = 0;
var images3 = document.querySelectorAll("#gallery3 .slideshow img");
function nextSlide3() {
images3[currentImage3].style.display = "none";
currentImage3 = (currentImage3 + 1) % images3.length;
images3[currentImage3].style.display = "block";
}
setInterval(nextSlide3, 3000);
script>
div>
<div id="gallery4">
<h2>旅游风光h2>
<div class="slideshow">
<img src="images/travel1.jpg" alt="Image 1">
<img src="images/travel2.jpg" alt="Image 2">
<img src="images/travel3.jpg" alt="Image 3">
<img src="images/travel4.jpg" alt="Image 4">
div>
<script>
var currentImage4 = 0;
var images4 = document.querySelectorAll("#gallery4 .slideshow img");
function nextSlide4() {
images4[currentImage4].style.display = "none";
currentImage4 = (currentImage4 + 1) % images4.length;
images4[currentImage4].style.display = "block";
}
setInterval(nextSlide4, 3000);
script>
div>
div>
div>
<h1> h1>
<div id="fifth">
<div class="container">
<form id="contact-form">
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<label for="phone"> label>
<br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br>
<h1>与我联系h1>
<label for="phone">电话:label>
<input type="text" id="phone" name="phone" required>
<br><br>
<label for="wechat">微信:label>
<input type="text" id="wechat" name="wechat" required>
<br><br>
<label for="qq">QQ:label>
<input type="text" id="qq" name="qq" required>
<br><br>
<label for="email">邮箱:label>
<input type="email" id="email" name="email" required>
<br><br>
<label for="blog">博客:label>
<input type="url" id="blog" name="blog" required>
<br><br>
<label for="message">给我留言:label>
<textarea id="message" name="message" rows="5" required>textarea>
<br><br>
<button type="submit">提交button>
form>
<div id="output">div>
div>
div>
<footer>
<p>版权所有 ©2023 CSAN@终究还是散了p>
footer>
body>
html>
这个只是选取的html代码,全部代码在我的资源中,链接放在后面供大家获取。
运行结果:
这里本来是一个页面,但由于截屏长度的原因,这里分开展示。
欢迎大家阅读!完整文件的文件夹我已上传到资源中,下载链接在这里。