Organize CSS, SASS, images

Also begin restyling project cards
This commit is contained in:
Chuck Dries 2017-03-20 01:48:53 -07:00
parent 6e2c0428bb
commit 0bde78da0c
16 changed files with 74 additions and 81 deletions

11
.vscode/tasks.json vendored
View File

@ -2,8 +2,11 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "sass",
"isShellCommand": true,
"args": ["style.scss", "style.css"],
"showOutput": "always"
"command": "gulp",
"tasks": [{
"taskName": "default",
"isBuildCommand": true,
"showOutput": "always",
"isBackground": true
}]
}

View File

@ -1,2 +0,0 @@
#sierra {
background-image: url("ChuckNew.jpg"); }

View File

@ -1,4 +0,0 @@
// covers.scss
#sierra {
background-image: url("ChuckNew.jpg");
}

2
css/covers.css Normal file
View File

@ -0,0 +1,2 @@
#sierra {
background-image: url("../images/ChuckNew.jpg"); }

View File

@ -4,8 +4,11 @@
clear: both; }
#sierra {
background-image: url("ChuckNew.jpg"); }
background-image: url("../images/ChuckNew.jpg"); }
/*
* sections
*/
body {
font-family: serif;
font-size: 1em;
@ -73,30 +76,29 @@ body {
.slide div {
max-width: 800px;
margin: auto;
text-align: center;
/* Project bits */ }
.slide div .project {
transition-duration: .2s;
width: 390px;
border: 1px solid #333;
border: 1px solid #aaa;
border-radius: 5px;
padding: 0px;
display: inline-block;
margin: 3px; }
margin: 3px;
overflow: hidden; }
.slide div .project .cover {
height: 300px;
background-position: center center;
background-size: cover;
margin: 0px; }
.slide div .project .cover h2 {
text-align: center;
background: rgba(0, 0, 0, 0.5);
color: white; }
.slide div .project h2 {
margin: .5em 0 0 1em;
padding: 0; }
.slide div .project p {
margin: 0 0 0 1.5em;
text-indent: 0; }
.slide div .project:hover {
box-shadow: 1px 1px 3px #333; }
.slide div p,
.slide div table {
text-align: left; }
.slide table {
line-height: 1.3;
margin: 0;

View File

@ -1,9 +1,22 @@
var gulp = require('gulp');
var sass = require('gulp-sass');
var connect = require('gulp-connect');
gulp.task('default', function() {
connect.server({
port: 3000,
livereload: true
});
gulp.watch("./sass/*.scss", ['style', 'reload']);
gulp.watch("*.html", ['reload']);
})
gulp.task('style', function() {
// place code for your default task here
gulp.src('*.scss')
gulp.src('./sass/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./'));
});
.pipe(gulp.dest('./css/'));
});
gulp.task('reload', function() {
gulp.src('*.html')
.pipe(connect.reload());
})

View File

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 4.1 MiB

View File

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 MiB

After

Width:  |  Height:  |  Size: 8.0 MiB

View File

@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>Chuck Dries</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/style.css">
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="http://chuckdri.es/icons/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://chuckdri.es/icons/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://chuckdri.es/icons/apple-touch-icon-72x72.png" />
@ -30,7 +30,7 @@
<div style="display:table-cell;vertical-align:middle;">
<div id="mast">
<h1 style="display:none;">Chuck Dries</h1>
<img src="cd.png" alt="Chuck Dries">
<img src="images/cd.png" alt="Chuck Dries">
<h2 id="tagline"><a href="#tech" onclick="smoothScroll('tech'); return false;">Tech</a> / <a href="#design">Design</a> / <a href="#photography">Photography</a> / <a href="#leadership">Leadership</a></h2>
<div class="hideable">
<p>Digital Developer, <span class="sub">The State Press</span></p>
@ -56,8 +56,8 @@
<p>I'm a Computer Science student and Hackathon winner at Arizona State University and I'm interested in the intersection of technology and art. I pride myself in taking a diverse set of interest and my pixel perfect lovingly handcrafted 💯% good
stuff 👍👌 HTML. These days, you can find me at The State Press working on ways to innovate the news during the week and winning hackathons on the weekends.</p>
<p>This website is still an active development project, pls don't judge too harshly.</p>
<h1 id="skills">Skills <a id="skilltablebutton" style="text-decoration: underline; font-style: italic; font-weight: normal; font-size: 14px;" onclick="toggleSkillTable()">hide</a></h1>
<div id="skilltable">
<div id="skilltable" style="display:none; ">
<h1 id="skills">Skills</h1>
<table>
<tr>
<td class="ld">The <span style="font-style:italic">Internet</span></td>
@ -114,51 +114,30 @@
</tr>
</table>
</div>
<div><a id="skilltablebutton" style="text-decoration: underline; font-size: 1.1em; font-style: italic; font-weight: normal;" onclick="toggleSkillTable()">More about me ></a>
</div>
</div>
<div class="slide">
<h1>Projects &amp; Experience</h1>
<div>
<div class="project">
<div class="cover" id="sierra">
<!-- centering container -->
<div style="display:table;width:100%;height:100%;margin:0px;">
<div style="display:table-cell;vertical-align:middle;margin:0px;">
<h2>Project Sierra</h2>
</div>
</div>
</div>
<h2>Project Name</h2>
<p>Project description</p>
</div>
<div class="project">
<div class="cover" id="sierra">
</div>
<p>Project description</p>
</div>
<div class="project">
<div class="cover" id="sierra">
<!-- centering container -->
<div style="display:table;width:100%;height:100%;margin:0px;">
<div style="display:table-cell;vertical-align:middle;margin:0px;">
<h2>Project Sierra</h2>
</div>
</div>
</div>
<p>Project description</p>
</div>
<div class="project">
<div class="cover" id="sierra">
<!-- centering container -->
<div style="display:table;width:100%;height:100%;margin:0px;">
<div style="display:table-cell;vertical-align:middle;margin:0px;">
<h2>Project Sierra</h2>
</div>
</div>
</div>
<p>Project description</p>
</div>
<div class="project">
<div class="cover" id="sierra">
<!-- centering container -->
<div style="display:table;width:100%;height:100%;margin:0px;">
<div style="display:table-cell;vertical-align:middle;margin:0px;">
<h2>Project Sierra</h2>
</div>
</div>
</div>
<p>Project description</p>
</div>
@ -266,7 +245,7 @@
<script>
var last_known_scroll = getScrollY();
var queueing = false;
var t = true;
var t = false;
var st = document.getElementById("skilltable");
var stb = document.getElementById("skilltablebutton");
document.addEventListener("scroll", function() {
@ -284,6 +263,7 @@
sc(last_known_scroll);
//execute scroll style modifications
function sc(ypos) {
var wheight = window.innerHeight;
@ -329,11 +309,11 @@
function toggleSkillTable() {
if (t) {
st.style.display = "none";
stb.innerText = "show";
stb.innerText = "More about me";
t = false;
} else {
st.style.display = "block";
stb.innerText = "hide";
stb.innerText = "Less about me";
t = true;
}
}

View File

@ -10,6 +10,7 @@
"license": "ISC",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-connect": "^5.0.0",
"gulp-sass": "^3.1.0",
"lite-server": "^2.2.2"
}

4
sass/covers.scss Normal file
View File

@ -0,0 +1,4 @@
// covers.scss
#sierra {
background-image: url("../images/ChuckNew.jpg");
}

View File

@ -10,9 +10,11 @@ $greybg: rgba(0, 0, 0, .5);
}
@import 'covers';
//
//sections
//
/*
* sections
*/
body {
@extend .reset;
font-family: serif;
@ -108,35 +110,34 @@ body {
div {
max-width: $width;
margin: auto;
text-align: center;
/* Project bits */
.project {
transition-duration: .2s;
width: $width/2 - 10;
border: 1px solid #333;
border: 1px solid #aaa;
border-radius: 5px;
padding: 0px;
display: inline-block;
margin: 3px;
overflow: hidden;
.cover {
height: 300px;
background-position: center center;
background-size: cover;
margin: 0px;
h2 {
text-align: center;
background: $greybg;
color: white;
}
}
h2 {
margin: .5em 0 0 1em;
padding: 0;
}
p {
margin: 0 0 0 1.5em;
text-indent: 0;
}
}
.project:hover {
box-shadow: 1px 1px 3px #333;
}
p,
table {
text-align: left;
}
}
table {
line-height: 1.3;

View File

@ -1,7 +0,0 @@
{
"version": 3,
"mappings": "AAKA,oBAAO;EACH,OAAO,EAAE,GAAG;EACZ,MAAM,EAAE,GAAG;EACX,KAAK,EAAE,IAAI;;ACPf,OAAQ;EACJ,gBAAgB,EAAE,mBAAmB;;ADazC,IAAK;EAED,WAAW,EAAE,KAAK;EAClB,SAAS,EAAE,GAAG;EACd,WAAW,EAAE,GAAG;EAChB,UAAU,EAAE,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