= layout file; = deploying; = other files; = docs page; + team page;
This commit is contained in:
1 parent
79bb7c46ef
commit
840a849c78
9 files changed
+100
-22
No files matched your search
+10
-15
@@ -6,28 +6,23 @@ var imageMin = require("gulp-imagemin");
|
|||||||
// var pub = "~/Dropbox/Dev/Hud school/public/";
|
// var pub = "~/Dropbox/Dev/Hud school/public/";
|
||||||
var pub = "./public/";
|
var pub = "./public/";
|
||||||
|
|
||||||
var list = [];
|
gulp.task("sass", function () {
|
||||||
task("sass", function () {
|
|
||||||
gulp.src("./view/*.scss")
|
gulp.src("./view/*.scss")
|
||||||
.pipe(sass())
|
.pipe(sass())
|
||||||
.pipe(minifyCSS())
|
// .pipe(minifyCSS())
|
||||||
.pipe(gulp.dest(pub+"s"));
|
.pipe(gulp.dest(pub+"s"));
|
||||||
});
|
});
|
||||||
|
|
||||||
task("imagemin", function(){
|
gulp.task("copy", function(){
|
||||||
|
gulp.src("./assets/fonts/*")
|
||||||
|
.pipe(gulp.dest(pub+"fonts"));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task("imagemin", function(){
|
||||||
gulp.src("./assets/img/**/*")
|
gulp.src("./assets/img/**/*")
|
||||||
.pipe(imageMin())
|
.pipe(imageMin())
|
||||||
.pipe(gulp.dest(pub+"img"));
|
.pipe(gulp.dest(pub+"img"));
|
||||||
});
|
});
|
||||||
|
|
||||||
task("copy", function(){
|
gulp.task("compile", ["sass", "copy"]);
|
||||||
gulp.src("./assets/fonts/*")
|
gulp.task("default", ["compile", "imagemin"]);
|
||||||
.pipe(gulp.dest(pub+"fonts"));
|
|
||||||
});
|
|
||||||
|
|
||||||
function task(name, f){
|
|
||||||
list.push(name);
|
|
||||||
gulp.task(name, f);
|
|
||||||
}
|
|
||||||
|
|
||||||
gulp.task("default", list);
|
|
||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./server.js",
|
"start": "node ./server.js",
|
||||||
"install": "gulp",
|
"install": "gulp compile",
|
||||||
"test": "mocha"
|
"test": "mocha"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -3,10 +3,8 @@ extends ../layout
|
|||||||
block custom_head
|
block custom_head
|
||||||
link(rel="stylesheet", href="/s/docs.css")
|
link(rel="stylesheet", href="/s/docs.css")
|
||||||
|
|
||||||
block menu
|
|
||||||
include ../menu
|
|
||||||
|
|
||||||
block content
|
block content
|
||||||
|
include ../menu
|
||||||
.main
|
.main
|
||||||
for group in blocks
|
for group in blocks
|
||||||
.docblock
|
.docblock
|
||||||
|
|||||||
@@ -6,6 +6,4 @@ html
|
|||||||
link(rel="stylesheet", href="/fonts/stylesheet.css")
|
link(rel="stylesheet", href="/fonts/stylesheet.css")
|
||||||
block custom_head
|
block custom_head
|
||||||
body
|
body
|
||||||
block menu
|
|
||||||
block content
|
block content
|
||||||
block end
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
|
|
||||||
block menu
|
block content
|
||||||
include ../menu
|
include ../menu
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
extends ../layout
|
||||||
|
|
||||||
|
block custom_head
|
||||||
|
link(rel="stylesheet", href="/s/team.css")
|
||||||
|
|
||||||
|
block content
|
||||||
|
img.main-picture(src='/img/team/team.jpg')
|
||||||
|
include ../menu
|
||||||
|
.main
|
||||||
|
ul.team-list
|
||||||
|
for member in team
|
||||||
|
li.team-member
|
||||||
|
img(src='#{member.picture}')
|
||||||
|
.info
|
||||||
|
h3 #{member.firstName} #{member.middleName}
|
||||||
|
span #{member.lastName}
|
||||||
|
p #{member.position}
|
||||||
|
p #{member.status}
|
||||||
|
p #{member.edu}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
var Router = require("express").Router;
|
||||||
|
var route = require("./route");
|
||||||
|
|
||||||
|
// var router = Object.create(Router);
|
||||||
|
var router = new Router();
|
||||||
|
router.get("/team", function(req, res){
|
||||||
|
var url = "/team";
|
||||||
|
|
||||||
|
res.render("team/team", {
|
||||||
|
menu: route.menu(url),
|
||||||
|
team: route.team(route.nameProcessor())
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/teachers/:name", function(req, res){
|
||||||
|
var name = req.param("name");
|
||||||
|
res.error(404);
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = router;
|
||||||
@@ -22,6 +22,7 @@ server.get("/", function(req, res){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
server.use(require("./routers/team.router").middleware);
|
||||||
server.use(require("./routers/doc.router").middleware);
|
server.use(require("./routers/doc.router").middleware);
|
||||||
|
|
||||||
server.listen(18010);
|
server.listen(18010);
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
.main-picture{
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
margin: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -999;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.team-list{
|
||||||
|
list-style:none;
|
||||||
|
background-color: white;
|
||||||
|
width:100%;
|
||||||
|
min-height: 100px;
|
||||||
|
padding-top: 100px;
|
||||||
|
margin-top: 63%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.team-member{
|
||||||
|
margin: 0 auto 50px auto;
|
||||||
|
width: 70%;
|
||||||
|
|
||||||
|
img{
|
||||||
|
width: 40%;
|
||||||
|
max-width: 600px;
|
||||||
|
min-width: 200px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info{
|
||||||
|
display: inline-block;
|
||||||
|
float: right;
|
||||||
|
width: 55%;
|
||||||
|
line-height: 2em;
|
||||||
|
|
||||||
|
h3{
|
||||||
|
font-weight: 100;
|
||||||
|
|
||||||
|
span{
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user