Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
ppst | 75fa485d91 | 2 years ago |
ppst | 135f54cf91 | 2 years ago |
@ -0,0 +1,3 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
dist
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "gulp-static-html-scss-demo",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"serve": "node --max_old_space_size=8096 node_modules/gulp-cli/bin/gulp.js",
|
||||
"build": "node --max_old_space_size=8096 node_modules/gulp-cli/bin/gulp.js build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://git.ppst.top/gulp-static-html-demo.git"
|
||||
},
|
||||
"keywords": [
|
||||
"static",
|
||||
"html",
|
||||
"blog",
|
||||
"theme"
|
||||
],
|
||||
"author": "ppst",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-autoprefixer": "^8.0.0",
|
||||
"gulp-clean": "^0.4.0",
|
||||
"gulp-connect": "^5.7.0",
|
||||
"gulp-file-include": "^2.3.0",
|
||||
"gulp-minify-css": "^1.2.4",
|
||||
"gulp-minify-html": "^1.0.6",
|
||||
"gulp-rename": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"gulp-cli": "^2.3.0",
|
||||
"gulp-sass": "^5.1.0",
|
||||
"sass": "^1.50.1"
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<head>
|
||||
@@include('./tpl/header.html')
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section>
|
||||
@@include('./tpl/empty.html')
|
||||
</section>
|
||||
@@include('./tpl/footer.html')
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,36 @@
|
||||
@charset "UTF-8";
|
||||
/* 重置样式 */
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
a:link, a:visited, a:hover, a:active {
|
||||
text-decoration: none;
|
||||
color: #171a2e;
|
||||
}
|
||||
|
||||
.empty-box {
|
||||
width: 400px;
|
||||
height: 100vh;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* 底部 */
|
||||
.footer-box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 60px;
|
||||
background-color: #171a2e;
|
||||
}
|
||||
|
||||
.footer-box .content {
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
@import "variable.scss";
|
||||
|
||||
/* 重置样式 */
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
font-size: $common-font-size;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
a:link,a:visited,a:hover,a:active {
|
||||
text-decoration: none;
|
||||
color: $common-font-color;
|
||||
}
|
||||
|
||||
.empty-box{
|
||||
width: 400px;
|
||||
height: 100vh;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* 底部 */
|
||||
.footer-box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 60px;
|
||||
background-color: $footer-bg-color;
|
||||
}
|
||||
|
||||
.footer-box .content {
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
color: $footer-color;
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,14 @@
|
||||
/* 背景颜色 */
|
||||
$body-bg-color: #fff;
|
||||
$footer-bg-color:#171a2e;
|
||||
|
||||
/* 字体 */
|
||||
|
||||
$common-font-size:14px;
|
||||
$big-font-size:24px;
|
||||
$medium-font-size:16px;
|
||||
$small-font-size:12px;
|
||||
$mini-font-size:8px;
|
||||
|
||||
$common-font-color:#171a2e;/*普通字体颜色*/
|
||||
$footer-color:#fff;
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,3 @@
|
||||
<footer class="footer-box">
|
||||
<div class="content">ppst Copyright ©</div>
|
||||
</footer>
|
@ -0,0 +1,5 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>gulp-static-html-demo</title>
|
||||
<link rel="stylesheet" type="text/css" href="./static/css/common.css" />
|
Loading…
Reference in New Issue