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

相关文章

Vue3使用router,params传参为空问题

《Vue3使用router,params传参为空问题》:本文主要介绍Vue3使用router,params传参为空问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录vue3使用China编程router,params传参为空1.使用query方式传参2.使用 Histo

CSS Padding 和 Margin 区别全解析

《CSSPadding和Margin区别全解析》CSS中的padding和margin是两个非常基础且重要的属性,它们用于控制元素周围的空白区域,本文将详细介绍padding和... 目录css Padding 和 Margin 全解析1. Padding: 内边距2. Margin: 外边距3. Padd

CSS will-change 属性示例详解

《CSSwill-change属性示例详解》will-change是一个CSS属性,用于告诉浏览器某个元素在未来可能会发生哪些变化,本文给大家介绍CSSwill-change属性详解,感... will-change 是一个 css 属性,用于告诉浏览器某个元素在未来可能会发生哪些变化。这可以帮助浏览器优化

CSS去除a标签的下划线的几种方法

《CSS去除a标签的下划线的几种方法》本文给大家分享在CSS中,去除a标签(超链接)的下划线的几种方法,本文给大家介绍的非常详细,感兴趣的朋友一起看看吧... 在 css 中,去除a标签(超链接)的下划线主要有以下几种方法:使用text-decoration属性通用选择器设置:使用a标签选择器,将tex

前端高级CSS用法示例详解

《前端高级CSS用法示例详解》在前端开发中,CSS(层叠样式表)不仅是用来控制网页的外观和布局,更是实现复杂交互和动态效果的关键技术之一,随着前端技术的不断发展,CSS的用法也日益丰富和高级,本文将深... 前端高级css用法在前端开发中,CSS(层叠样式表)不仅是用来控制网页的外观和布局,更是实现复杂交

Python将博客内容html导出为Markdown格式

《Python将博客内容html导出为Markdown格式》Python将博客内容html导出为Markdown格式,通过博客url地址抓取文章,分析并提取出文章标题和内容,将内容构建成html,再转... 目录一、为什么要搞?二、准备如何搞?三、说搞咱就搞!抓取文章提取内容构建html转存markdown

在React中引入Tailwind CSS的完整指南

《在React中引入TailwindCSS的完整指南》在现代前端开发中,使用UI库可以显著提高开发效率,TailwindCSS是一个功能类优先的CSS框架,本文将详细介绍如何在Reac... 目录前言一、Tailwind css 简介二、创建 React 项目使用 Create React App 创建项目

vue使用docxtemplater导出word

《vue使用docxtemplater导出word》docxtemplater是一种邮件合并工具,以编程方式使用并处理条件、循环,并且可以扩展以插入任何内容,下面我们来看看如何使用docxtempl... 目录docxtemplatervue使用docxtemplater导出word安装常用语法 封装导出方

idea中创建新类时自动添加注释的实现

《idea中创建新类时自动添加注释的实现》在每次使用idea创建一个新类时,过了一段时间发现看不懂这个类是用来干嘛的,为了解决这个问题,我们可以设置在创建一个新类时自动添加注释,帮助我们理解这个类的用... 目录前言:详细操作:步骤一:点击上方的 文件(File),点击&nbmyHIgsp;设置(Setti

Vue中组件之间传值的六种方式(完整版)

《Vue中组件之间传值的六种方式(完整版)》组件是vue.js最强大的功能之一,而组件实例的作用域是相互独立的,这就意味着不同组件之间的数据无法相互引用,针对不同的使用场景,如何选择行之有效的通信方式... 目录前言方法一、props/$emit1.父组件向子组件传值2.子组件向父组件传值(通过事件形式)方