Skip to content

Commit

Permalink
Start adding thumbnail files
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Mar 26, 2017
0 parents commit 5a2905c
Show file tree
Hide file tree
Showing 9 changed files with 127 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
/venv
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v0.7.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-scss-lint
sha: v0.52.0
hooks:
- id: scss-lint
language_version: 2.1.5
9 changes: 9 additions & 0 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
linters:
ColorVariable:
enabled: false
Indentation:
width: 4
PropertySortOrder:
enabled: false
SingleLinePerSelector:
enabled: false
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
all: build/style.css

venv: requirements.txt
rm -rf venv
virtualenv venv -ppython3.6
venv/bin/pip install -rrequirements.txt
venv/bin/pre-commit install -f --install-hooks

build:
mkdir build

build/%.css: assets/scss/%.scss build venv
venv/bin/sassc -t compressed $< $@

clean:
rm -rf venv build
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/python-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
overflow: hidden;

font-family: verdana, sans-serif;
}

body {
box-sizing: border-box;
border-width: 1em;
border-style: solid;

> * {
position: absolute;
}
}

.channel-icon {
top: 2em;
right: 2em;
width: 20%;
}

.logo {
left: 2em;
bottom: 2em;
width: 30%;
}

.title {
left: 10em;
top: 2em;

span {
font-size: 14em;
font-weight: bold;
}
}

.subtitle {
left: 37.5em;
top: 27.5em;

span {
display: inline-block;
text-align: center;
font-size: 7.5em;
}
}

.episode {
bottom: 2em;
right: 2em;

span {
font-size: 12.5em;
}
}

.dark {
background: #000;
color: #ddd;
}

.light {
background: #eee;
color: #333;
}
14 changes: 14 additions & 0 deletions py3.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="build/style.css">
</head>
<body class="light">
<img src="assets/icon.png" class="channel-icon">
<img src="assets/python-logo.png" class="logo">
<div class="title"><span>Python 3</span></div>
<div class="subtitle"><span>An Introduction to Porting</span></div>
<div class="episode"><span>#1</span></div>
</body>
</html>
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libsass
pre-commit

0 comments on commit 5a2905c

Please sign in to comment.