首页改版

This commit is contained in:
hdm 2022-06-14 14:37:24 +08:00
parent f56aab2d46
commit 7245ccab5b
8 changed files with 117 additions and 88 deletions

View File

@ -8,19 +8,18 @@
<title>{:get_system_config('web','admin_title')}</title>
<link rel="stylesheet" href="{__GOUGU__}/layui/css/layui.css" media="all">
<style type="text/css">
html,body {width: 100%;height: 100%;background: #34a853;}
html,body {width: 100%;height: 100%;background: #EAF3FF;}
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
#container {width: 100%;height: 100%;position: fixed;top: 0;left: 0;z-index: 999;color: #ffffff;
background: url({__IMG__}/bg.png);
background-size: cover;
background: url("{__ADMIN__}/images/bg_pattern.png"), -webkit-linear-gradient(to left, #34a853, #4285f4);
background: url("{__ADMIN__}/images/bg_pattern.png"), linear-gradient(to left, #34a853, #4285f4);
}
.container h2 {font-size: 36px;padding: 36px 0;font-weight: 500;}
.login {width: 400px;text-align: center;position: absolute;top: 50%;left: 50%;margin-top: -240px;margin-left: -200px;border-radius: 12px;box-shadow: 0 2px 6px rgba(26, 26, 26, .36);
.login {width: 360px;text-align: center;position: absolute;top: 50%;left: 50%;margin-top: -240px;margin-left: -180px;border-radius: 12px;box-shadow: 0 2px 6px rgba(92, 110, 136, .32);
}
.login .top {width: 400px;height: 117px;background-color: #fbbc05;border-radius: 12px 12px 0 0;line-height: 117px;text-align: center;overflow: hidden;
.login .top {width: 360px;height: 117px;background-color: #fbbc05;border-radius: 12px 12px 0 0;line-height: 117px;text-align: center;overflow: hidden;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-ms-transform: rotate(0deg);
@ -29,12 +28,12 @@
}
.login .top .bg1 {display: inline-block;width: 72px;height: 72px;background: #fff;opacity: .1;border-radius: 0 72px 0 0;position: absolute;left: 0;top: 42px;}
.login .top .bg2 {display: inline-block;width: 92px;height: 92px;background: #fff;opacity: .1;border-radius: 50%;position: absolute;right: -16px;top: -16px;}
.login .bottom {background-color: #fff;padding: 30px 25px;border-radius: 0 0 12px 12px;}
.login .bottom {background-color: #fff;padding:26px 24px;border-radius: 0 0 12px 12px;}
.layui-input,.layui-textarea {height: 44px;border: 1px solid #ddd;}
.captcha_img img{width:142px; height:44px; cursor:pointer;}
.layui-btn {height: 48px;font-size: 16px;margin-top: 5px;background-color: #FF6347!important}
.foot {position: absolute; font-size: 12px; bottom: 28px;text-align: center;width: 100%;color: #d3e8fa;}
.layui-btn {height: 45px;font-size: 16px;margin-top: 6px;background-color: #FF6347!important}
.foot {position: absolute; font-size: 12px; bottom: 28px;text-align: center;width: 100%;color: #458BF3;}
</style>
</head>
<body>
@ -54,7 +53,7 @@
<input type="password" name="password" lay-verify="required" value="" placeholder="请输入密码" lay-reqText="请输入密码" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-item">
<div class="layui-input-inline" style="width:188px;">
<div class="layui-input-inline" style="width:158px;">
<input type="text" name="captcha" lay-verify="required" placeholder="验证码" lay-reqText="请输入验证码" autocomplete="off" class="layui-input">
</div>
<div class="layui-input-inline captcha_img" style="width:142px; height:44px; margin-right:0">
@ -69,7 +68,7 @@
</div>
<div class="foot">
{:get_system_config('web','copyright')} <a id="beian" href="//www.beian.miit.gov.cn" target="_blank"
rel="nofollow" style="margin-left: 15px;color:#d3e8fa;">{:get_system_config('web','icp')}</a>Powered by GouguCMS
rel="nofollow" style="margin-left: 15px;color:#458BF3;">{:get_system_config('web','icp')}</a>Powered by GouguCMS
</div>
</div>
<script src="{__GOUGU__}/layui/layui.js"></script>

View File

@ -6,39 +6,41 @@
<!-- 主体 -->
{block name="body"}
{include file="common/header" nav='info' /}
<div class="index">
<div class="intro">
<div class="container">
<div class="intro-info" data-aos="fade-down">
<div class="intro-title">勾股CMS让WEB开发更简单</div>
<div class="intro-text">勾股CMS是一套基于ThinkPHP6 + Layui + MySql打造的轻量级、高性能极速后台开发框架。<br/>系统各管理模块,一目了然,操作简单,通用型的后台权限管理框架,干净不臃肿、极易上手、开箱即用。<br/>系统以简洁为原则,结构清晰,易于功能扩展,代码维护,非常容易定制和二次开发,帮助开发者简单高效降低二次开发成本。</div>
<section class="banner" style="position:relative;">
<div class="container">
<div class="banner-text">
<h1 data-aos="fade-up">勾股CMS让WEB开发更简单</h1>
<h2 data-aos="fade-up" data-aos-delay="400">
基于ThinkPHP6 + Layui + MySql的轻量级极速后台开发框架干净不臃肿、操作简单、开箱即用<br/>
通用型的后台权限管理机制,容易功能定制和二次开发,帮助开发者简单高效降低二次开发成本。</h2>
<div data-aos="fade-up" data-aos-delay="800">
<a href="https://gitee.com/gougucms/gougucms.git" class="btn-down" target="_blank"><span>立即下载(Gitee)</span></a>
<a href="/admin/" class="btn-go" target="_blank"><span>体验演示</span></a>
<span class="btn-view">查看体验账号</span>
</div>
<div class="intro-ops" data-aos="fade-up" data-aos-delay="300">
<div class="cms-download">
<a href="/home/index/down.html" target="_blank">开源免费下载</a>
</div>
<div class="cms-version">
<span>当前版本:<i>v{:CMS_VERSION}</i></span>
<a href="/home/index/logs.html" rel="nofollow" target="_blank">更新日志</a>
<div class="banner-ops" data-aos="fade-up" data-aos-delay="1000">
<a href="/home/index/down.html" target="_blank" class="btn-full">完整包下载</a>
<a href="https://gitee.com/gouguopen/gougucms/releases/v{:CMS_VERSION}" target="_blank">当前版本v{:CMS_VERSION}</a>
<a href="https://gitee.com/gouguopen/gougucms/releases" target="_blank">更新日志</a>
<a href="https://www.bt.cn/?invite_code=MV9zbG93ank=" rel="nofollow" target="_blank">推荐使用宝塔面板部署</a>
</div>
<div class="cms-other">
<a href="https://gitee.com/gougucms/gougucms" target="_blank" rel="nofollow" class="site-fork">
码云 Gitee
</a>
</div>
</div>
</div>
<div class="intro-img" data-aos="fade-up" data-aos-delay="600">
<img src="{__IMG__}/banner_bg.png" />
</div>
<div class="banner-img" data-aos="zoom-out" data-aos-delay="300">
<img src="{__IMG__}/banner_img.png" alt="">
</div>
</div>
<div class="advantage">
<div class="container">
<div class="advantage-title" data-aos="fade-up">系统特色</div>
<div class="advantage-sub-title" data-aos="fade-up">完全免费开源,系统易于功能扩展,代码维护,非常容易定制和二次开发。</div>
</section>
<div class="advantage">
<div class="container" data-aos="fade-up">
<header class="section-header">
<h2>系统特色</h2>
<p>完全免费开源,系统易于功能扩展,代码维护,非常容易定制和二次开发。</p>
</header>
<div class="item-wrap">
<div class="advantage-item" data-aos="fade-up" data-aos-delay="200">
<div class="advantage-item item-col-4" data-aos="fade-up" data-aos-delay="200">
<div class="feature">
<div class="part-icon"><img src="{__IMG__}/code.png"></div>
<div class="part-text">
@ -47,7 +49,7 @@
</div>
</div>
</div>
<div class="advantage-item" data-aos="fade-up" data-aos-delay="300">
<div class="advantage-item item-col-4" data-aos="fade-up" data-aos-delay="300">
<div class="feature">
<div class="part-icon"><img src="{__IMG__}/auth.png"></div>
<div class="part-text">
@ -56,7 +58,7 @@
</div>
</div>
</div>
<div class="advantage-item" data-aos="fade-up" data-aos-delay="400">
<div class="advantage-item item-col-4" data-aos="fade-up" data-aos-delay="400">
<div class="feature">
<div class="part-icon"><img src="{__IMG__}/log.png"></div>
<div class="part-text">
@ -65,7 +67,7 @@
</div>
</div>
</div>
<div class="advantage-item" data-aos="fade-up" data-aos-delay="500">
<div class="advantage-item item-col-4" data-aos="fade-up" data-aos-delay="500">
<div class="feature">
<div class="part-icon"><img src="{__IMG__}/bak.png"></div>
<div class="part-text">
@ -75,27 +77,33 @@
</div>
</div>
</div>
</div>
</div>
<div class="cms-banner">
<div class="container">
<img src="https://blog.gougucms.com/static/admin/images/login_logo.png">
<span>开源的博客系统</span>
<ul>
<li>● 基于勾股CMS开发一脉相承</li>
<li>● 简约、易用、轻快等特点</li>
</ul>
<ul>
<li>● 集成文章、动态、归档、访问统计等功能</li>
<li>● 可做博客,工作室,自媒体等各类网站</li>
</ul>
<a href="https://blog.gougucms.com/" target="_blank">免费开源</a>
</div>
</div>
<div class="cms-banner">
<div class="container">
<img src="https://blog.gougucms.com/static/admin/images/login_logo.png">
<span>开源的博客系统</span>
<ul>
<li>● 基于勾股CMS开发一脉相承</li>
<li>● 简约、易用、轻快等特点</li>
</ul>
<ul>
<li>● 集成文章、动态、归档、访问统计等功能</li>
<li>● 可做博客,工作室,自媒体等各类网站</li>
</ul>
<a href="https://blog.gougucms.com/" target="_blank">免费开源</a>
</div>
<div class="function">
<div class="container">
<div class="function-title" data-aos="fade-down">功能矩阵</div>
<div class="function-sub-title" data-aos="fade-down">系统后台集成了主流的通用功能登录验证、系统配置、操作日志管理、角色权限、功能模块、功能节点、导航设置、网站地图、轮播广告、友情链接、TAG关键字管理、搜索关键字管理、文件上传、数据备份/还原、文章功能、商品功能、单页面管理、用户等级、用户管理、用户操作日志、用户注册/登录、 API接口等。更多的个性化功能可以基于当前系统便捷做二次开发。</div>
</div>
<div class="function">
<div class="container" data-aos="fade-down">
<header class="section-header">
<h2>功能矩阵</h2>
<p style="text-align:left; padding-bottom:120px;">系统后台集成了主流的通用功能登录验证、系统配置、操作日志管理、角色权限、功能模块、功能节点、导航设置、网站地图、轮播广告、友情链接、TAG关键字管理、搜索关键字管理、文件上传、数据备份/还原、文章功能、商品功能、单页面管理、用户等级、用户管理、用户操作日志、用户注册/登录、 API接口等。更多的个性化功能可以基于当前系统便捷做二次开发。</p>
</header>
<div class="function-wrap" data-aos="fade-up">
<div class="function-img">
<img src="{__IMG__}/function.png">
@ -165,13 +173,13 @@
</ul>
</div>
</div>
</div>
</div>
<div class="container">
</div>
<div class="container">
<div style="text-align:center; width: 100%; margin: 30px auto 0; background-color: #fff; padding:10px; box-sizing: border-box; border-radius: 10px; box-shadow: 0 0 10px rgb(0 0 0 / 10%);">
<a href="https://curl.qcloud.com/xeKz2noI" target="_blank"><img src="https://www.gougucms.com/storage/image/1200x90.jpg" style="width:100%;border-radius: 6px;"></a>
</div>
</div>
</div>
</div>
{/block}
<!-- /主体 -->
@ -183,6 +191,12 @@
AOS.init({
easing: 'ease-in-out-sine'
});
$('.btn-view').on('click',function(){
layer.open({
'title':'体验账号',
'content':'用户gougucms<br/>密码123456'
});
})
</script>
{/block}
<!-- /脚本 -->

View File

@ -454,7 +454,6 @@ INSERT INTO `cms_nav_info` VALUES (9, 2, 1, '勾股DEV项目管理系统', 'http
INSERT INTO `cms_nav_info` VALUES (10, 0, 1, '开发日志', '/home/index/logs.html', '', 0, 1, 10, 0, 0);
-- ----------------------------
-- Table structure for `cms_slide`
-- ----------------------------

View File

@ -1,29 +1,37 @@
.container{width:1220px; height:100%; margin:0 auto; position:relative;}
.index{width:100%;margin-top: 60px;}
.intro{ width:100%; height:660px; position: relative; background: url(../images/banner_1.png) no-repeat center 0; font-size: 18px; color: #fff; font-weight: 100;}
.intro-img{width: 518px; position: absolute; bottom:0; left:0;}
.intro-img img{width: 100%;}
.intro-info{ line-height: 2.4; padding-top: 60px;}
.intro-title{font-size: 42px;color: #fff; margin: 10px 0;}
.intro-ops{text-align: center;padding: 60px 0;}
.cms-download a{width: 200px; line-height: 66px; font-size: 20px; display: inline-block; background-color: #EB4336; color: #fff; border-radius: 4px;}
.cms-download a:hover{opacity: .9;}
.cms-version{padding: 32px 0; font-size: 14px;}
.cms-version a{color:#fff; margin-left: 16px;}
.cms-other a{border: 1px solid #77a5e8; color:#b6d5ff; font-size: 14px; padding: 6px 20px; border-radius: 3px;}
.cms-other a:hover{color: #fff; border-color: #fff;}
.advantage {background:#f2f2f2; width: 100%; text-align: center; padding: 80px 0; font-weight: 100;}
.advantage-title{font-size: 42px; font-weight: 500; text-align: center;}
.advantage-sub-title{font-size: 18px; padding: 20px 0; line-height:1.8; text-align:center;}
.item-wrap{display: flex; padding-top: 36px; justify-content: center;align-items: center;
.section-header{padding-bottom:36px;}
.section-header h2{font-size: 32px; font-weight: 400; text-align: center;}
.section-header p{font-size: 16px; padding: 20px 0; line-height:1.8; text-align:center;color: #646464;}
.item-wrap{display: flex;flex-wrap: wrap; justify-content: center;align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
}
.advantage-item { width: 282px; font-size: 16px; line-height: 1.5; margin:0 12px; word-wrap: break-word;}
.item-col-3{width:33.3333333333%; padding:0 12px;box-sizing: border-box;}
.item-col-4{width:25%; padding:0 12px;box-sizing: border-box;}
.item-col-6{width:16.6666666666%; padding:0 12px;box-sizing: border-box;}
.feature {display: block;background: #fff; padding: 36px 20px 20px; margin: 0 0 10px;border-radius: 8px;text-align: center;}
.banner {width: 100%; height: 80vh; background: url(../images/bg.png) bottom center no-repeat; background-size: cover;}
.banner-text{position:absolute; left:0; top:50%; margin-top:-150px;}
.banner-img{position:absolute; right:0; top:50%; margin-top:-210px;}
.banner-img img{width:468px;}
.banner h1 { margin: 0; font-size: 40px; color: #323232; font-weight:400;}
.banner h2 { color: #646464; margin: 20px 0 0 0; line-height:2; font-size: 18px; font-weight: 200;}
.banner .btn-down {margin: 60px 0 0 0; display:inline-block; padding: 12px 24px; border-radius: 3px; transition: 0.5s; color: #fff; border:1px solid #186AF2;background: #186AF2;box-shadow: 0px 5px 30px rgba(65, 84, 241, 0.4); font-size: 16px; font-weight: 600;}
.banner .btn-down:hover{opacity:0.8}
.banner .btn-go {margin: 60px 0 0 20px; display:inline-block; padding: 12px 24px; border-radius: 3px; transition: 0.5s; color: #186AF2; border:1px solid #186AF2; box-shadow: 0px 5px 30px rgba(65, 84, 241, 0.4);font-size: 16px; font-weight: 600;}
.banner .btn-go:hover{opacity:0.8}
.banner .btn-view {margin: 60px 0 0 20px; cursor: pointer; display:inline-block; padding: 12px 24px; transition: 0.5s; color: #458BF3; font-size: 12px;}
.banner .banner-ops{margin: 20px 0; padding: 12px 0; transition: 0.5s; color: #458BF3; font-size: 12px;}
.banner .banner-ops a{margin-right:12px; color: #969696;}
.banner .banner-ops a.btn-full{width:150px; text-align:center; display:inline-block;color: #458BF3;}
.banner .intro-img{width: 420px; position: absolute; bottom:0; left:0;}
.banner .intro-img img{width: 100%;}
.advantage {background:#ffffff; width: 100%; text-align: center; padding: 80px 0; font-weight: 100;}
.feature {display: block;background: #fff; padding: 36px 20px 20px;text-align: center;font-size: 16px; line-height: 1.5; word-wrap: break-word; box-shadow: 0px 0 30px rgb(1 41 112 / 10%); height: 100%; background-color: #fff; text-align: center; transition: 0.3s; border-radius: 6px;}
.feature:hover { background-color: #4385F5; background: linear-gradient(to left, #4385F5, #00aaff); color: #fff; }
.feature .part-icon {display: inline-block;border-radius: 100%;background: #f5f5f5; padding: 25px;width: 60px; height: 60px;}
.part-text h3 {color: #333;font-weight: normal; text-align: center;font-size:18px; padding: 10px 0;}
@ -57,15 +65,24 @@
.item-box h3{font-size: 18px; font-weight: 100; padding-top:10px;}
.item-box img{height:80px;}
@media (min-width: 1024px) {
.banner {
background-attachment: fixed;
}
}
@media (max-width: 1280px) {
.container{width:1026px;}
.intro-img{width: 390px; }
.container{width:1026px;}
.banner h1 {font-size: 36px;}
.banner h2 {font-size: 16px;}
.banner-img{margin-top:-160px;}
.banner-img img{width:360px;}
.banner .intro-img{width: 240px; }
.cms-banner img{height:50px;}
.cms-banner span{font-size: 22px; line-height: 50px;}
.cms-banner ul li {font-size: 14px;}
.function-sub-title{ padding: 20px 0 120px;}
.function-img{top: -66px;}
.function-img img{width: 360px;}
.function-item {font-size: 13px;}
.function-item ul li span{font-size: 14px; margin-right: 1px;}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB