Spring Boot制作个人博客-关于我页
Posted qq_48838980
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Spring Boot制作个人博客-关于我页相关的知识,希望对你有一定的参考价值。
- 页面左侧是一张图片,右侧放置一些关于我的介绍和个人标签以及联系我的方式。
1、创建关于我页
- 复制types.html改名为about.html
2、修改代码
- 修改标题以及active(默认选中)
- 删除中间内容代码
3、中间内容
(1)做左右布局
(2)左侧
<!--左侧-->
<div class="eleven wide column">
<img src="https://picsum.photos/800/600?image=155" alt="" class="ui rounded image">
</div>
(3)右侧
- 简单框架
<!--右侧-->
<div class="five wide column">
<!--top-->
<div class="ui top attached segment">
<div class="ui header">关于我</div>
</div>
<!--简介-->
<div class="ui attached segment">
</div>
<!--标签-->
<div class="ui attached segment">
</div>
<div class="ui attached segment">
</div>
<!--bottom-->
<div class="ui bottom attached segment">
</div>
</div>
- 简介
<!--简介-->
<div class="ui attached segment">
<p class="m-text">beauty,一个独立开发者,折腾在0和1世界的人,一个终身学习者,将学习进行到底,希望结识可以共同成长的小伙伴</p>
<p class="m-text">热爱编程,喜欢折腾,正在探索高效学习编程技术的方法……</p>
</div>
- 标签
<!--标签-->
<div class="ui attached segment">
<div class="ui orange basic left pointing label">编程</div>
<div class="ui orange basic left pointing label">写作</div>
<div class="ui orange basic left pointing label">思考</div>
<div class="ui orange basic left pointing label">运动</div>
</div>
<div class="ui attached segment">
<div class="ui teal basic left pointing label m-margin-tb-tiny">Java</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">javascript</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">Node</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">React</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">RN</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">mysql</div>
</div>
(4)底部
<!--bottom-->
<div class="ui bottom attached segment">
<a href="#" class="ui circular icon button"><i class="github icon"></i> </a>
<a href="#" class="ui wechat circular icon button"><i class="weixin icon"></i> </a>
<a href="#" class="ui qq circular icon button" data-content="12345678" data-position="bottom center"><i class="qq icon"></i></a><!--data-position="bottom center" 设置qq号浮现的位置为下方中间位置-->
</div>
<div class="ui wechat-qr flowing popup transition hidden">
<img src="./static/imags/erweima.png" alt="" class="ui rounded image" style="width:110px">
</div>
4、最终效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=debice-width,initial-scale=1.0">
<title>关于我</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
<link rel="stylesheet" href="static/css/css.css">
</head>
<body>
<!--导航栏-->
<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small" ><!--inverted 反色 attached 圆角变直角-->
<!--设置log-->
<div class="ui container">
<div class="ui inverted secondary stackable menu"><!--stackable(可堆叠效果)会根据页面大小改变显示比例-->
<h2 class="ui teal header item">Blog</h2>
<a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i> 首页</a>
<a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
<a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
<a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
<a href="#" class="active m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
<!--搜索框-->
<div class="right m-item item m-mobile-hide"><!--使用div框可以靠右-->
<div class="ui icon inverted transparent input"><!--原本是白色的框,加上transparent将输入框变为透明的-->
<input type="text" placeholder="Search……">
<i class="search link icon"></i>
</div>
</div>
</div>
<!--移动端响应图标-->
<a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
<i class="sidebar icon"></i>
</a>
</div>
</nav>
<!--中间内容-->
<div class="m-padded-tb-large">
<div class="ui container">
<div class="ui stackable grid">
<!--左侧-->
<div class="eleven wide column">
<img src="https://picsum.photos/800/600?image=155" alt="" class="ui rounded image">
</div>
<!--右侧-->
<div class="five wide column">
<!--top-->
<div class="ui top attached segment">
<div class="ui header">关于我</div>
</div>
<!--简介-->
<div class="ui attached segment">
<p class="m-text">beauty,一个独立开发者,折腾在0和1世界的人,一个终身学习者,将学习进行到底,希望结识可以共同成长的小伙伴</p>
<p class="m-text">热爱编程,喜欢折腾,正在探索高效学习编程技术的方法……</p>
</div>
<!--标签-->
<div class="ui attached segment">
<div class="ui orange basic left pointing label">编程</div>
<div class="ui orange basic left pointing label">写作</div>
<div class="ui orange basic left pointing label">思考</div>
<div class="ui orange basic left pointing label">运动</div>
</div>
<div class="ui attached segment">
<div class="ui teal basic left pointing label m-margin-tb-tiny">Java</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">JavaScript</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">Node</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">React</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">RN</div>
<div class="ui teal basic left pointing label m-margin-tb-tiny">MySQL</div>
</div>
<!--bottom-->
<div class="ui bottom attached segment">
<a href="#" class="ui circular icon button"><i class="github icon"></i> </a>
<a href="#" class="ui wechat circular icon button"><i class="weixin icon"></i> </a>
<a href="#" class="ui qq circular icon button" data-content="12345678" data-position="bottom center"><i class="qq icon"></i></a><!--data-position="bottom center" 设置qq号浮现的位置为下方中间位置-->
</div>
<div class="ui wechat-qr flowing popup transition hidden">
<img src="./static/imags/erweima.png" alt="" class="ui rounded image" style="width:110px">
</div>
</div>
</div>
</div>
</div>
<!--底部-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
<div class="ui center aligned container"><!--center aligned 居中-->
<div class="ui inverted divided stackable grid"><!--grid会将div分为16份布局 inverted divided模块之间的线条显示-->
<!--第一板块-->
<div class="three wide column">
<div class="ui inverted link list">
<div class="item">
<img src="./static/imags/erweima.png" class="ui rounded image" alt="" style="width:100px">
</div>
</div>
</div>
<!--第二板块-->
<div class="three wide column">
<h4 class="ui inverted header m-text-thin m-text-spaced ">最新博客</h4>
<div class="ui inverted link list">
<a href="#" class="item">用户故事(User Story)</a>
<a href="#" class="item">关于课余练习的清单</a>
<a href="#" class="item">成功要趁早</a>
</div>
</div>
<!--第三板块-->
<div class="three wide column">
<h4 class="ui inverted header m-text-thin m-text-spaced ">联系我</h4>
<div class="ui inverted link list">
<a href="#" class="item">Email:Everyone@162.com</a>
<a href="#" class="item">QQ:123456789</a>
</div>
</div>
<!--第四板块-->
<div class="seven wide column">
<h4 class="ui inverted header m-text-thin m-text-spaced ">Blog</h4>
<p class="m-text-thin m-text-spaced m-opacity-mini ">这是我的个人博客、会分享关于编程、协作、思考相关的任何内容,希望可以给来到这儿的人有所帮助……</p>
</div>
</div>
<!--第五板块-->
<div class="ui inverted section divider"></div>
<p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright @ 2016-2017 Lirenmi Designed by Lirenmi</p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>
<script>
$('.menu.toggle').click(function (){
$('.m-item').toggleClass('m-mobile-hide');
});
/*qq事件*/
$('.qq').popup();
/*微信*/
$('.wechat').popup({
popup: $('.wechat-qr'),
position:'bottom center'
});
</script>
</body>
</html>
以上是关于Spring Boot制作个人博客-关于我页的主要内容,如果未能解决你的问题,请参考以下文章