Advertisement

Spring Boot个人博客实训日志01

阅读量:

一、首页效果图

在这里插入图片描述

二、效果实现过程
1、首先我们创建Spring Boot项目blog

在这里插入图片描述

2、创建首页的静态index.html

在这里插入图片描述

3、我们创建静态资源文件夹

在这里插入图片描述

4、开始编写导航部分,连接css文件和云端资源链接

在这里插入图片描述

在body下的Semantic UI的引入

在这里插入图片描述

5、我们开始编辑css样式。

复制代码
    body {
    background: url("../images/bg.png");
    }
    
    .m-padded-mini {
    padding: 0.2em !important;
    }
    
    .m-padded-tiny {
    padding: 0.3em !important;
    }
    .m-padded {
    padding: 1em !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;
    }
    
    
    .m-padded-lr-responsive {
    padding-left: 4em !important;
    padding-right: 4em !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-margin-bottom-small {
    margin-bottom: 0.5em !important;
    
    }
    
    /*-----opacity------*/
    .m-opacity-mini {
    opacity: 0.8 !important;
    }
    .m-opacity-tiny {
    opacity: 0.6 !important;
    }
    /*------position---*/
    
    .m-right-top {
    position: absolute;
    top:0;
    right: 0;
    }
    
    /*------display------*/
    .m-inline-block {
    display: inline-block !important;
    }
    
    
    /*-----container*/
    
    .m-container {
    max-width: 72em !important;
    margin: auto !important;
    }
    .m-container-small {
    max-width: 60em !important;
    margin: auto !important;
    }
    
    /*------shadow------*/
    .m-shadow-small {
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
    
    /*------positon-----*/
    
    .m-fixed {
    position: fixed !important;
    z-index: 10 !important;
    }
    
    .m-right-bottom {
    bottom: 0 !important;
    right: 0 !important;
    }
    
    
    /*-----color-----*/
    .m-black {
    color: #333 !important;
    }
    .m-teal {
    color: #00B5AD !important;
    }
    
    
    
    .m-mobile-show {
       display: none !important;
    }
    
    @media screen and (max-width: 768px){
    .m-mobile-hide {
        display: none !important;
    }
    .m-mobile-show {
        display: block !important;
    }
    .m-padded-lr-responsive {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .m-mobile-lr-clear {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .m-mobile-wide {
        width: 100% !important;
    }
    }
    
    
    
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    
    AI写代码

6、首页导航栏的设计

在这里插入图片描述

效果图

在这里插入图片描述

7、首页中间内容部分的设计

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

中间部分完成效果图

在这里插入图片描述

8、底部内容设计

在这里插入图片描述

最终效果图

在这里插入图片描述

全部评论 (0)

还没有任何评论哟~