Spring Boot开发个人博客第一节
文章目录
1、个人博客介绍
个人博客的大概内容,如:博客首页、博客文章、博文管理。实现的各种功能:留言板、回复、多级回复、标签分类(按照分类去展示你的博文)、归档(按照日期对你的博文进行归档)、关于我(自我介绍)、搜索、导航、后台管理博文(需登录)。
知识点:1、掌握Spring Boot框架完整开发一个项目的套路;
2、掌握使用Semantic UI框架开发前端页面;
3、掌握页面开发、页面插件集成、框架搭建、功能实现等各个模块的构成。
个人博客导构图:
技术组合:
- 后端:Spring Boot + JPA + thymeleaf模板
- 数据库:MySQL
- 前端UI:SemanticUI框架
工具与环境:
- IDEA
- Maven 3
- JDK 8
- Axure RP 8
课程内容模块:
- 需求分析与功能规划
- 页面设计与开发
- 技术框架搭建
- 后端管理功能实现
- 前端管理功能实现
学得到什么:
- 基于Spring Boot的完整全栈式的开发套路
- Semantic UI框架的使用
- 一套博客系统的源代码与设计
2、需求与功能
2.1 用户故事
从用户的角度来描述需求,通常用用户进行编写。
用户故事模板:
- As a (role of user),I want (some feature) so that (some business value).
- 作为一个(某个角色)使用者,我可以做(某个功能)事情,如此可以有(某个商业价值的好处)。
举例:
- 作为一个招聘网站注册用户,我想查看最近3天发布的招聘信息,以便于了解最新的招聘信息
- 作为公司,可以发布新工作。
个人博客系统的用户故事:
角色:普通用户、管理员(我)
- 访客:可以分页查看所有的博客
- 访客:可以快速查博客数最多的6个分类
- 访客:可以查看所有分类
- 访客:可以查看某个分类下的博客列表
- 访客:可以快速查看标记博客最多的10个标签
- 访客:可以查看所有标签
- 访客:可以查看某个标签下的博客列表
- 访客:可以根据年度时间线查看博客列表
- 访客:可以快速查看最新的推荐博客
- 访客:可以用关键字全局搜索博客
- 访客:可以查看单个博客内容
- 访客:可以对博客内容进行评论
- 访客:可以赞赏博客内容
- 访客:可以微信扫描阅读博客内容
- 访客:可以在首页扫描公众号二维码关注我
- 我 :可以用户名和密码登录后台管理
- 我 :可以管理博文
1、可以发布博文
2、可以对博文进行分类
3、可以对博客打标签
4、可以修改博文
5、可以删除博文
6、可以根据标题、分类、标签查询博客
我:可以管理博客分类
- 可以新增一个分类
- 可以修改一个分类
- 可以删除一个分类
- 可以根据分类名称查询
我:可以管理标签
- 可以新增一个标签
- 可以修改一个标签
- 可以删除一个标签
- 可以根据名称查询标签
3、页面设计与开发
3.1设计
原型设计工具官网:http://www.axure.com/download(收费软件)
功能规划图:
前端展示:首页、详情页、标签、归档、关于我
后台管理:模板页,对博文进行增删改查
3.1 页面开发
使用工具WebStorm
3.1.1新建项目
打开WebStorm工具,选择Create New Project
存放位置:E:\blog (项目名为blog)
3.1.2新建一个js目录
3.1.3新建一个static目录
把js文件夹拖进static文件夹中
3.1.4在static文件夹中创建一个CSS目录
在static文件夹中创建一个images目录
3.1.5创建一个HTML文件index.html作为首页面
然后到Semantic UI官网上找一下CDN,https://semantic-ui.com/
把两行代码拷贝到我们的HTML文件中
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
3.1.6需要插入软件,官网http://www.jsdelivr.com
复制
在index.html文件中引入jsdelivr
3.1.7 编写导航代码
运行查看,发现有一条黑色的杠,是因为代码中写了inverted
继续添加属性attached,让黑色粗线不再显示圆角
运行效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>首页</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
</head>
<body>
<!-- 导航 -->
<nav class="ui inverted attached segment m-padded-tb-mini" >
<div class="ui container">
<div class="ui inverted secondary menu">
<h2 class="ui teal header">Blog</h2>
<a href="#" class="item">首页</a>
<a href="#" class="item">分类</a>
<a href="#" class="item">标签</a>
<a href="#" class="item">关于我</a>
</div>
</div>
</nav>
<!-- 中间内容-->
<div>
</div>
<!-- 底部footer-->
<footer>
</footer>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</body>
</html>
3.1.8 在CSS文件夹中创建CSS文件
继续编写index.html 文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>首页</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<link rel="stylesheet" href="./static/css/me.css">
</head>
<body>
<!-- 导航 -->
<nav class="ui inverted attached segment m-padded-tb-mini" >
<div class="ui container">
<div class="ui inverted secondary menu">
<!-- LOGO -->
<h2 class="ui teal header item">Blog</h2>
<!-- 导航 -->
<a href="#" class="item"><i class="home icon"></i>首页</a>
<a href="#" class="item"><i class="idea icon"></i>分类</a>
<a href="#" class="item"><i class="tags icon"></i>标签</a>
<a href="#" class="item"><i class="info icon"></i>关于我</a>
<!-- 搜索框 -->
<div class="right item">
<div class="ui icon inverted transparent input">
<input type="text" placeholder="Search...">
<i class="search link icon"></i>
</div>
</div>
</div>
</div>
</nav>
<!-- 中间内容-->
<div>
</div>
<!-- 底部footer-->
<footer>
</footer>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</body>
</html>
运行效果
3.1.9 编写底部footer代码
<!-- 底部footer-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
<div class="ui center aligned container">
<div class="ui inverted divided grid">
<!-- 二维码 -->
<div class="three wide column">
<div class="ui inverted link list">
<div class="item">
<img src="./static/images/wechat.jpg" class="ui rounded image" alt="" style="width: 110px">
</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:2448923662@qqc.com</a>
<a href="#" class="item">QQ:2448923662</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-mini">Copyright @ 2016 - 2017 Lirenmi Designed by Lirenmi</p>
</div>
</footer>
.m-padded-tb-mini{
padding-top: 0.2em !important;/*间距*/
padding-bottom: 0.2em !important;/*间距*/
}
.m-padded-tb-massive{
padding-top: 5em !important;/*间距*/
padding-bottom: 5em !important;/*间距*/
}
/*---text---*/
.m-text-thin{
font-weight:300 !important;/*字体粗细*/
}
.m-text-spaced{
letter-spacing: 1px !important;/*字体间距*/
}
.m-text-lined{
line-height:1.8;/*行间距*/
}
.m-opacity-mini{
opacity: 0.8 !important;/*透明度*/
}
效果图
3.1.10 编写中间内容代码
中间部分:首先给它分为左右板块
左边部分是博文,右边部分是标签之内的内容
这是整个中间部分的布局,首先把每一部分分出来,然后在编写里面的代码
接着写左边部分内容
左边部分分为:头部、中间部分、底部
头部
中间部分
底部
整个左边代码
<div class="eleven wide column">
<!-- header头部 -->
<div class="ui top attached segment">
<div class="ui middle aligned two column grid">
<div class="column">
<h3 class="ui teal header">博客</h3>
</div>
<div class="right aligned column">
共 <h2 class="ui orange header m-inline-block m-text-thin">14</h2> 篇博客
</div>
</div>
</div>
<!-- content中间博客列表内容 -->
<div class="ui attached segment">
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
<div class="ui padded vertical segment m-padded-tb-large">
<div class="ui grid">
<!-- 文章内容 -->
<div class="eleven wide column">
<h3 class="ui header">你真的理解什么是财富自由吗?</h3>
<P class="m-text">对她来说,他永远是那个在她最难过的时候,愿意把身上所有的糖都给她的男孩。为了她,他可以拔下所有的刺变得柔软,也可以穿上盔甲披荆斩棘....</P>
<div class="ui grid">
<div class="eleven wide column">
<div class="ui mini horizontal link list">
<div class="item">
<img src="http://unsplash.it/100/100?image=1005" class="ui avatar image">
<div class="content"><a href="#" class="header">奈一</a></div>
</div>
<div class="item">
<i class="calendar icon"></i>2021-6-2
</div>
<div class="item">
<i class="eye icon"></i>2345
</div>
</div>
</div>
<div class="right aligned five wide column">
<a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
</div>
</div>
</div>
<!-- 文章图片 -->
<div class="five wide column">
<a href="#" target="_blank">
<img src="http://unsplash.it/800/450?image=1005" alt="" class="ui rounded image">
</a>
</div>
</div>
</div>
</div>
<!-- footer底部按钮 -->
<div class="ui bottom attached segment">
<div class="ui middle aligned two column grid">
<div class="column">
<a href="#" class="ui mini teal basic button">上一页</a>
</div>
<div class="right aligned column">
<a href="#" class="ui mini teal basic button">下一页</a>
</div>
</div>
</div>
</div>
右边部分
<div class="five wide column">
<!--分类板块-->
<div class="ui segments ">
<!--头部-->
<div class="ui secondary segment">
<div class="ui two column grid">
<div class="column">
<i class="idea icon"></i>分类
</div>
<div class="right aligned column">
<a href="#" target="_blank">more <i class="angle double right icon"></i></a>
</div>
</div>
</div>
<!--各种分类-->
<div class="ui teal segment">
<div class="ui fluid vertical menu">
<a href="#" class="item">
学习日志
<div class="ui teal basic left pointing label">13</div>
</a>
<a href="#" class="item">
思考与感悟
<div class="ui teal basic left pointing label">13</div>
</a>
<a href="#" class="item">
清单
<div class="ui teal basic left pointing label">13</div>
</a>
<a href="#" class="item">
JavaScript
<div class="ui teal basic left pointing label">13</div>
</a>
<a href="#" class="item">
创业
<div class="ui teal basic left pointing label">13</div>
</a>
<a href="#" class="item">
认知升级
<div class="ui teal basic left pointing label">13</div>
</a>
</div>
</div>
</div>
<!--标签-->
<div class="ui segments m-margin-top-large">
<!--头部-->
<div class="ui secondary segment">
<div class="ui two column grid">
<div class="column">
<i class="tags icon"></i>标签
</div>
<div class="right aligned column">
<a href="#" target="_blank">more <i class="angle double right icon"></i></a>
</div>
</div>
</div>
<!--内容-->
<div class="ui teal segment">
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
<a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
方法论<div class="detail">23</div>
</a>
</div>
</div>
<!--最新推荐-->
<div class="ui segments m-margin-top-large">
<!--头部-->
<div class="ui secondary segment">
<i class="bookmark icon"></i>最新推荐
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
<div class="ui segment">
<a href="#" target="_blank" class="m-black m-text-thin">用户故事</a>
</div>
</div>
<!--二维码-->
<h4 class="ui horizontal divider header m-margin-top-large">扫码关注我</h4>
<div class="ui centered card" style="width: 11em">
<img src="./static/images/wechat.jpg" alt="" class="ui rounded image">
</div>
</div>
.m-padded-mini{
padding-top: 0.2em !important;/*间距*/
}
.m-padded-tiny{
padding-top: 0.3em !important;/*间距*/
}
.m-padded-tb-mini{
padding-top: 0.2em !important;/*间距*/
padding-bottom: 0.2em !important;/*间距*/
}
.m-padded-tb-tiny{
padding-top: 0.3em !important;/*间距*/
padding-bottom: 0.3em !important;/*间距*/
}
.m-padded-tb-small{
padding-top: 0.5em !important;/*间距*/
padding-bottom: 0.5em !important;/*间距*/
}
.m-padded-tb{
padding-top: 1em !important;/*间距*/
padding-bottom: 1em !important;/*间距*/
}
.m-padded-tb-large{
padding-top: 2em !important;/*间距*/
padding-bottom: 2em !important;/*间距*/
}
.m-padded-tb-big{
padding-top: 3em !important;/*间距*/
padding-bottom: 3em !important;/*间距*/
}
.m-padded-tb-huge{
padding-top: 4em !important;/*间距*/
padding-bottom: 4em !important;/*间距*/
}
.m-padded-tb-massive{
padding-top: 5em !important;/*间距*/
padding-bottom: 5em !important;/*间距*/
}
/*---text---*/
.m-text{
font-weight:300 !important;/*字体粗细*/
letter-spacing: 1px !important;/*字体间距*/
line-height:1.8;/*行间距*/
}
.m-text-thin{
font-weight:300 !important;/*字体粗细*/
}
.m-text-spaced{
letter-spacing: 1px !important;/*字体间距*/
}
.m-text-lined{
line-height:1.8;/*行间距*/
}
/*margin*/
.m-margin-top-small{
margin-top: 0.5em !important;
}
.m-margin-top{
margin-top: 1em !important;
}
.m-margin-top-large{
margin-top: 2em !important;
}
.m-margin-tb-tiny{
margin-top: 0.3em !important;/*外间距*/
margin-bottom: 0.3em !important;/*外间距*/
}
.m-opacity-mini{
opacity: 0.8 !important;/*透明度*/
}
/*display*/
.m-inline-block{
display: inline-block !important;
}
/*container*/
.m-container{
max-width: 72em !important;
margin: auto !important;
}
/*color*/
.m-black{
color:#333 !important;
}
效果图
设置手机自适应效果,加入stackable