Spring boot实训开发个人博客(三)分类页

Spring boot实训开发个人博客(三)分类页

1.新建文件type.html

在这里插入图片描述

2.将上标签页代码复制到分类页中:

在这里插入图片描述
在这里插入图片描述

3.编写中间部分:

1.header头部文件:

在这里插入图片描述

2.标签:

在这里插入图片描述

3.博客文章列表:

在这里插入图片描述

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
    <title>分类页面</title>
</head>

<body>
    <!--导航-->
    <nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">Blog</h2>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini home icon "></i>&nbsp;首页</a>
                <a href="#" class="active m-item item m-mobile-hide"><i class="mini idea icon"></i> &nbsp;分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini tags icon"></i> &nbsp;标签</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini clone icon"></i> &nbsp;归档</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="mini info icon"></i> &nbsp;关于我</a>
                <div class="m-item right item m-mobile-hide">
                    <div class="ui icon inverted transparent input">
                        <input type="text" placeholder="Search....">
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <!--按钮-->
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>





    <!--页面主体-->
    <div class="m-padded-tb-large m-container-small">
        <div class="ui container">
            <!--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>
            <!--分类list-->
            <div class="ui attached segment m-padded-tb-large">
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui  teal button">页面</a>
                    <div class="ui basic teal left pointing label">122</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">一</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">二</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">三</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">四</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">五</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">六</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">七</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">八</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
                <div class="ui labeled teal button m-margin-tb-tiny">
                    <a href="" class="ui basic teal button">九</a>
                    <div class="ui basic teal left pointing label">12</div>
                </div>
            </div>
            <!--博客list-->
            <div class="ui top attached teal segment m-padded-tb-large m-mobile-lr-clear">
                <div class="ui mobile reversed stackable grid">
                    <!--list left 博客标题和内容-->
                    <div class="eleven wide column">
                        <h3 class="ui header">标题一</h3>
                        <p class="m-text">我认为计算机专业的学生,必须养成写技术博客的习惯,这对专业的学习和找工作都有着巨大的帮助,无论文章是否有深度,只要敢写,就有收获。
                        </p>
                        <div class="ui stackable grid">
                            <!--list left bottom left 用户名、日期、浏览量-->
                            <div class="eleven wide column">
                                <div class="ui horizontal link list">
                                    <div class="item">
                                        <img src="F:\桌面\like\SAM_0098.JPG" alt="" class="ui avatar image">
                                        <div class="content"><a href="" class="header">枫小柒</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>2020-03-05</div>
                                    <div class="item"><i class="eye icon"></i>666</div>
                                </div>
                            </div>
                            <!--list left bottom right 认知升级-->
                            <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>
                    <!--list right 图片-->
                    <div class="five wide column">
                        <a href="#" target="_blank">
                            <img src="F:\桌面\like\SAM_0098.JPG" alt="" class="ui rounded image">
                        </a>
                    </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 teal basic mini button">上一页</a>
                    </div>

                    <div class="right aligned column">
                        <a href="" class="ui teal basic mini button">下一页</a>
                    </div>
                </div>
            </div>
        </div>
    </div>





    <!--底部内容-->
    <footer class="ui inverted vertical segment m-padded-tb-massive">
        <div class="ui center aligned container">

            <div class="ui inverted divided stackable grid">

                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="./images/wechat.png" 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 m-text-thin">用户故事{User}</a>
                        <a href="#" class="item m-text-thin">用户故事{User}</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 m-text-thin">Email:1316565748@qq.com</a>
                        <a href="#" class="item m-text-thin">QQ:1316565748</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 © 2021 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.4/semantic.min.js"></script>
    <!--按钮点击事件-->
    <script>
        $('.menu.toggle').click(function () { $('.m-item').toggleClass('m-mobile-hide'); });
    </script>
</body>

</html>
4.底部按钮:

在这里插入图片描述

5.css文件:

在这里插入图片描述

6.效果展示:

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值