github | html纯小白也可以创建静态个人主页

2023-10-08 15:59

本文主要是介绍github | html纯小白也可以创建静态个人主页,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

写在前面

本作者无任何网页创作知识背景,如果有哪里写得不太合适还请见谅。

昨天交了阶段工作汇报于是最近可以休息几天,为了不至于每天无所事事,决定创建自己的个人主页(其实已经想做很久了)

昨天找了一天,看编辑html的页面也像乱码一样...还一时冲动冲了CSDN的会员(当事人十分后悔)。今天主页终于有了初步的样子,事实证明搜索信息还是需要有耐心多找找...

放图

 1 创建个人网站

参考这篇文章 📡使用Github做一个完全免费的个人网站(步骤很细) - 知乎 (zhihu.com)

2 编辑内容

我选择使用adobe的Dreamweaver,有7天免费试用期,够用了,主要是可以看到实时视图,一边编辑一边看效果,对新手小白十分友好。

2-1 下载Dreamweaver

    链接:网站设计软件 | Adobe Dreamweaver

    没有什么奇怪的选项,放心大胆下就好了

2-2 开始在dw中编辑内容

首先,打开Dreamweaver,选择起始模板——响应式 关于页面模板(有简历的模板但是我不太喜欢那个格式于是就用这个了)

点开后会显示初始代码,我直接把我的代码放在这里来写注释了,可以两边一起看着对比修改
 

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>某人 - Homepage</title>
<link href="AboutPageAssets/styles/aboutPageStyle.css" rel="stylesheet" type="text/css">
<link rel="Shortcut Icon" href="图标.ico" type="image/x-icon" /><!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
<script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/montserrat:n4:default;source-sans-pro:n2:default.js" type="text/javascript"></script>
</head><body>
<!-- Header content -->
<header><div class="profileLogo"> <!-- Profile logo. Add a img tag in place of <span>. --><p class="logoPlaceholder"><!-- <img src="logoImage.png" alt="sample logo"> --><span>个人主页&nbsp;</span></p></div><div class="profilePhoto"> <!-- Profile photo --> <img src="证件照.jpg" width="200"> </div><!-- Identity details --><section class="profileHeader"><h1>&nbsp;</h1><h1>姓名</h1>
<h3>文字</h3><hr><p>文字</p><p>QQ:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>Email:&nbsp;</p></section><!-- Links to Social network accounts --><aside class="socialNetworkNavBar"><div class="socialNetworkNav"> <!-- Add a Anchor tag with nested img tag here -->      </div><div class="socialNetworkNav"> <!-- Add a Anchor tag with nested img tag here -->      </div><div class="socialNetworkNav"> <!-- Add a Anchor tag with nested img tag here -->      </div><div class="socialNetworkNav"> <!-- Add a Anchor tag with nested img tag here -->      </div></aside>
</header>
<!-- content -->
<section class="mainContent"> <!-- Contact details --></section><section class="section2"><h2 class="sectionTitle" style="font-size: 20px">教育经历&nbsp;</h2><hr class="sectionTitleRule"><hr class="sectionTitleRule2"><div class="section2Content"><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2020.9-至今 :</span> 大学</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2017.9-2020.6 :</span> 高级中学</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2014.9-2017.6 :</span> 中学</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2008.9-2014.6 :</span> 小学</p></div></section><!-- Previous experience details --><section class="section2"><h2 class="sectionTitle" style="font-size: 20px">科研经历&nbsp;</h2><hr class="sectionTitleRule"><hr class="sectionTitleRule2"><div class="section2Content"><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2022.5-至今 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑">&nbsp;</p></div></section><section class="section2"><h2 class="sectionTitle" style="font-size: 20px">研究方向&nbsp;</h2><hr class="sectionTitleRule"><hr class="sectionTitleRule2"><div class="section2Content"><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑">文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑">&nbsp;</p></div></section></section><section class="section2"><h2 class="sectionTitle" style="font-size: 20px">发表文章&nbsp;</h2><hr class="sectionTitleRule"><hr class="sectionTitleRule2"><div class="section2Content"><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑">&nbsp;</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑">&nbsp;</p></div></section><section class="section2"><h2 class="sectionTitle" style="font-size: 20px">奖学金&nbsp;</h2><hr class="sectionTitleRule"><hr class="sectionTitleRule2"><div class="section2Content"><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2020.10&2021.12 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2020.10 :</span> 文字</p></div></section></section><section class="section2"><h2 class="sectionTitle" style="font-size: 20px">学生工作&所获荣誉&nbsp;</h2><hr class="sectionTitleRule"><hr class="sectionTitleRule2"><div class="section2Content"><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2021.9-2022.7 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2020.9-2021.7 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span>2020.9-至今 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑">&nbsp;</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span> 2022.3 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span> 2021.5 & 2022.5 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span> 2021.5 & 2022.5 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span> 2021.5 & 2022.5 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span> 2021.12 :</span> 文字</p><p style="font-size: 17px;color: darkgray;font-family: 微软雅黑"><span> 2020.10 :</span> 文字</p></div></section><!-- Replicate the above Div block to add more title and company details --> <footer><hr><p style="font-size: 15px;color: darkgray;font-family: 微软雅黑"> <span id="context">&nbsp; &nbsp; &nbsp; Related Links: <a href="链接" target="_blank" id="node">USTC</a> | <a href="链接" target="_blank" id="node">School of ESS of USTC</a> | <a href="链接" target="_blank" id="node">Laboratory</a> | </span></p><p style="font-size: 15px;color: darkgray;font-family: 微软雅黑"> &nbsp; &nbsp; &nbsp; 最近更新:2022.7.31<p class="footerDisclaimer">2022&nbsp; Copyrights - <span>All Rights Reserved</span></p></footer>
</body>
</html>

简单理解:

<p>后面的都是可以修改的文字

<p>里面fontsize是字体大小,color为颜色,fontfamily是文字样式

里面涉及的icon和证件照在dreamweaver里显示的话需要用电脑中的文件地址

2-3 将在dw中写好的代码放到index.html中,并稍作修改

修改:

①将上面用到的aboutPageStyle.css,icon和证件照上载到上图页面(通过点击Add file)

②将代码中的文件地址(即上述三个文件的地址)改为在上图页面中的 文件名.格式

4 一些参考

jpg格式转icon:免费在线ico转换器, 在线free 在线ico convert转换器 - Office-Converter.com

(7 封私信 / 36 条消息) 如何制作个人学术主页? - 知乎 (zhihu.com)

熟练之后也可以参考这个来改academicpages is a ready-to-fork GitHub Pages template for academic personal websites - Your Name / Site Title

这篇关于github | html纯小白也可以创建静态个人主页的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



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

相关文章

部署Vue项目到服务器后404错误的原因及解决方案

《部署Vue项目到服务器后404错误的原因及解决方案》文章介绍了Vue项目部署步骤以及404错误的解决方案,部署步骤包括构建项目、上传文件、配置Web服务器、重启Nginx和访问域名,404错误通常是... 目录一、vue项目部署步骤二、404错误原因及解决方案错误场景原因分析解决方案一、Vue项目部署步骤

Android 悬浮窗开发示例((动态权限请求 | 前台服务和通知 | 悬浮窗创建 )

《Android悬浮窗开发示例((动态权限请求|前台服务和通知|悬浮窗创建)》本文介绍了Android悬浮窗的实现效果,包括动态权限请求、前台服务和通知的使用,悬浮窗权限需要动态申请并引导... 目录一、悬浮窗 动态权限请求1、动态请求权限2、悬浮窗权限说明3、检查动态权限4、申请动态权限5、权限设置完毕后

前端原生js实现拖拽排课效果实例

《前端原生js实现拖拽排课效果实例》:本文主要介绍如何实现一个简单的课程表拖拽功能,通过HTML、CSS和JavaScript的配合,我们实现了课程项的拖拽、放置和显示功能,文中通过实例代码介绍的... 目录1. 效果展示2. 效果分析2.1 关键点2.2 实现方法3. 代码实现3.1 html部分3.2

Python创建Excel的4种方式小结

《Python创建Excel的4种方式小结》这篇文章主要为大家详细介绍了Python中创建Excel的4种常见方式,文中的示例代码简洁易懂,具有一定的参考价值,感兴趣的小伙伴可以学习一下... 目录库的安装代码1——pandas代码2——openpyxl代码3——xlsxwriterwww.cppcns.c

CSS弹性布局常用设置方式

《CSS弹性布局常用设置方式》文章总结了CSS布局与样式的常用属性和技巧,包括视口单位、弹性盒子布局、浮动元素、背景和边框样式、文本和阴影效果、溢出隐藏、定位以及背景渐变等,通过这些技巧,可以实现复杂... 一、单位元素vm 1vm 为视口的1%vh 视口高的1%vmin 参照长边vmax 参照长边re

CSS3中使用flex和grid实现等高元素布局的示例代码

《CSS3中使用flex和grid实现等高元素布局的示例代码》:本文主要介绍了使用CSS3中的Flexbox和Grid布局实现等高元素布局的方法,通过简单的两列实现、每行放置3列以及全部代码的展示,展示了这两种布局方式的实现细节和效果,详细内容请阅读本文,希望能对你有所帮助... 过往的实现方法是使用浮动加

css渐变色背景|<gradient示例详解

《css渐变色背景|<gradient示例详解》CSS渐变是一种从一种颜色平滑过渡到另一种颜色的效果,可以作为元素的背景,它包括线性渐变、径向渐变和锥形渐变,本文介绍css渐变色背景|<gradien... 使用渐变色作为背景可以直接将渐China编程变色用作元素的背景,可以看做是一种特殊的背景图片。(是作为背

使用Python在Excel中创建和取消数据分组

《使用Python在Excel中创建和取消数据分组》Excel中的分组是一种通过添加层级结构将相邻行或列组织在一起的功能,当分组完成后,用户可以通过折叠或展开数据组来简化数据视图,这篇博客将介绍如何使... 目录引言使用工具python在Excel中创建行和列分组Python在Excel中创建嵌套分组Pyt

CSS自定义浏览器滚动条样式完整代码

《CSS自定义浏览器滚动条样式完整代码》:本文主要介绍了如何使用CSS自定义浏览器滚动条的样式,包括隐藏滚动条的角落、设置滚动条的基本样式、轨道样式和滑块样式,并提供了完整的CSS代码示例,通过这些技巧,你可以为你的网站添加个性化的滚动条样式,从而提升用户体验,详细内容请阅读本文,希望能对你有所帮助...

css实现图片旋转功能

《css实现图片旋转功能》:本文主要介绍了四种CSS变换效果:图片旋转90度、水平翻转、垂直翻转,并附带了相应的代码示例,详细内容请阅读本文,希望能对你有所帮助... 一 css实现图片旋转90度.icon{ -moz-transform:rotate(-90deg); -webkit-transfo