🎉 added a presentation
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: "Blockchain: a semi-technical explanation"
|
||||
date: 2017-01-01
|
||||
---
|
||||
|
||||
https://www.youtube.com/watch?v=cFJwiTHxiac
|
||||
|
|
223
src/content/presentations/vps-the-hard-way.md
Normal file
|
@ -0,0 +1,223 @@
|
|||
---
|
||||
title: VPS the Hard Way
|
||||
parent: "Presentations"
|
||||
date: 2015-06-16
|
||||
---
|
||||
### Title slide
|
||||

|
||||
|
||||
### What is a VPS?
|
||||

|
||||
It stands for Virtual Private Server. Basically you get access to a virtual machine running with dozens of others in a rack in a server room somewhere with fast internet.
|
||||
Since it's a virtual machine you can run whatever you want. It's cheap, it's unsupported, and it's all yours.
|
||||
|
||||
### Riddle me this!
|
||||

|
||||
Why?
|
||||
What good is it?
|
||||
|
||||
### Think back to when you first discovered the internet. It was so amazing. Mostly because you can do pretty much anything on it.
|
||||

|
||||
|
||||
### There's a service for everything!
|
||||

|
||||
|
||||
### So most of us pick one of the largest internet companies and use them for everything. It's just more convenient.
|
||||

|
||||
But this also has some downsides.
|
||||
If the company changes its offerings or policies, you don't always have any recourse. You may have a hard time getting your data out of their systems.
|
||||
Also, these companies have very personal, deep knowledge about you. And they sometimes misuse that knowledge.
|
||||
And not just companies...
|
||||
|
||||
### Intruders and government agencies can access your information through subterfuge or compulsion.
|
||||

|
||||
But things aren't hopeless!
|
||||
|
||||
### You have the power!
|
||||

|
||||
We're web developers! We are uniquely equipped to solve these problems, and at the same time pick up some valuable skills.
|
||||
That's what we're going to do today. With a VPS of your own, you can set up alternatives to many of the services offered by internet giants like Google.
|
||||
|
||||
### Here is a site that catalogs the price of virtual private servers from different providers.
|
||||

|
||||
|
||||
### Most VPS providers offer at least CentOS and Debian, but you'll find pretty much everything out there, including more desktop-oriented distros like Ubuntu.
|
||||

|
||||
Some providers even let you provide your own OS template.
|
||||
Everyone has different priorities and different recommendations. Later we'll set up a new Debian 7 VPS.
|
||||
|
||||
### Where do you find these self-hosted packages? I like this site, “alternativeTo”, which lists self-hosted software that can take the place of commercial or non-free solutions.
|
||||

|
||||
|
||||
### Ok, let's get our hands dirty.
|
||||

|
||||
Next:
|
||||
A brief word on password management
|
||||
New server checklist
|
||||
Installing and configuring Nginx, PHP-FPM, and MariaDB
|
||||
Installing a few self-hosted services
|
||||
Installing a self-signed SSL certificate (time permitting)
|
||||
Automating all of this
|
||||
|
||||
### Passwords kinda suck. If we take security seriously (you all do, right? Right?), we end up like that guy from the Matrix Reloaded, with keys for everything. How can anyone keep that straight?
|
||||

|
||||
You can't. "Ain't nobody got time for that!"
|
||||
So we come up with some scheme that basically lets us use the same thing, or similar things, everywhere. Then you have a new problem.
|
||||
There's a better way. I can talk more about this after the talk, but for now I'll just say that I'm never going back to the old way. A password manager is just too convenient and secure.
|
||||
|
||||
## Debian VPS setup
|
||||
|
||||
### Admin user setup
|
||||
|
||||
SSH to your VPS as root
|
||||
|
||||
```
|
||||
$ ssh root@###.###.###.###
|
||||
```
|
||||
|
||||
Set a new password for root and save it in your password manager.
|
||||
|
||||
```
|
||||
# passwd
|
||||
```
|
||||
|
||||
Next we need to update the system.
|
||||
|
||||
```
|
||||
# apt-get update && apt-get dist-upgrade
|
||||
```
|
||||
|
||||
(this will take a while, and you may have to dismiss some changelog messages and answer a prompt asking permission to disable root login over ssh. Don’t accept the prompt. We’ll disable root login over ssh later. This way we can’t lock ourselves out.)
|
||||
|
||||
```
|
||||
# apt-get install sudo
|
||||
# adduser username
|
||||
# usermod -aG sudo username
|
||||
# groupadd sshlogin
|
||||
# usermod -aG sshlogin username
|
||||
# cat /etc/sudoers
|
||||
```
|
||||
|
||||
Confirm that this line is present:
|
||||
|
||||
```
|
||||
%sudo ALL=(ALL:ALL) ALL
|
||||
```
|
||||
|
||||
If not, you can edit /etc/sudoers with # visudo
|
||||
|
||||
Now, leave this connection open and start a new one.
|
||||
|
||||
```
|
||||
$ ssh username@###.###.###.###
|
||||
```
|
||||
|
||||
Confirm that you have root access:
|
||||
|
||||
```
|
||||
$ sudo whoami
|
||||
```
|
||||
|
||||
It should say “root”.
|
||||
If this was successful, go ahead and end your first (root) SSH session with Ctrl+D.
|
||||
If you didn’t already disable root login over SSH we’ll do it now.
|
||||
|
||||
```
|
||||
$ sudo nano /etc/ssh/sshd_config
|
||||
```
|
||||
|
||||
Find the line <code>#PermitRootLogin no</code> and remove the "#" to uncomment it.
|
||||
If you want to enable motd or banner do that now.
|
||||
Ctrl+X, save changes
|
||||
Restart ssh daemon with:
|
||||
|
||||
```
|
||||
$ sudo service ssh restart
|
||||
```
|
||||
|
||||
Confirm that you can no longer SSH in as root.
|
||||
As one more precaution, we will expire the root password altogether so that the only account with admin access is the new account you’ve just created. The command is:
|
||||
|
||||
```
|
||||
$ sudo passwd -l root
|
||||
```
|
||||
|
||||
If you didn't already do it during the dist-upgrade, we should enable unattended security upgrades:
|
||||
|
||||
```
|
||||
$ sudo apt-get install unattended-upgrades
|
||||
$ sudo dpkg-reconfigure unattended-upgrades
|
||||
```
|
||||
|
||||
You'll see a prompt asking if you want to automatically download and install stable updates. Choose yes.
|
||||
|
||||
<h2>Firewall</h2>
|
||||
|
||||
This part’s pretty easy.
|
||||
|
||||
```
|
||||
$ sudo apt-get install ufw
|
||||
```
|
||||
|
||||
UFW stands for Uncomplicated Firewall.
|
||||
|
||||
```
|
||||
$ sudo nano /etc/default/ufw
|
||||
```
|
||||
|
||||
Make sure that IPv6 is either enabled or disabled, whichever is appropriate for your VPS.
|
||||
|
||||
```
|
||||
$ sudo ufw allow ssh
|
||||
$ sudo ufw allow 80/tcp
|
||||
$ sudo ufw allow 443/tcp
|
||||
$ sudo ufw enable
|
||||
$ sudo ufw status
|
||||
```
|
||||
|
||||
If you’re worried about getting hammered by port scanners and script kiddies, you can also install fail2ban, which temporarily blocks IP addresses that fail auth attempts too many times.
|
||||
More details on that here: http://johnny.chadda.se/using-fail2ban-with-nginx-and-ufw/
|
||||
|
||||
## Optional
|
||||
|
||||
Change the hostname: https://wiki.debian.org/HowTo/ChangeHostname
|
||||
Kind of a pain.
|
||||
|
||||
## Nginx, PHP, MySQL
|
||||
|
||||
### Installation
|
||||
|
||||
```
|
||||
$ sudo apt-get install nginx php5 php5-fpm php5-cli php-apc php-gd
|
||||
$ sudo apt-get install python-software-properties
|
||||
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
|
||||
$ sudo apt-get install software-properties-common
|
||||
```
|
||||
|
||||
Repository details from: https://downloads.mariadb.org/mariadb/repositories/
|
||||
|
||||
```
|
||||
$ sudo add-apt-repository 'deb http://ftp.utexas.edu/mariadb/repo/10.0/debian wheezy main'
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install mariadb-server php5-mysql
|
||||
```
|
||||
|
||||
Leave the root password blank for now, we’ll set it in a second.
|
||||
|
||||
```
|
||||
$ mysql-secure-installation
|
||||
```
|
||||
|
||||
Follow the prompts, taking the recommended actions including creating a root password. Save the mysql root password to your password database.
|
||||
|
||||
### There are automated solutions for setting up a new server. Ansible is new and clean and considered by many to be the best right now, Puppet and Chef and some others like CFEngine and Salt can get the job done too.
|
||||

|
||||
<a href="https://www.youtube.com/watch?v=up3ofvQNm8c">System provisioning with Ansible – a live demo</a>.
|
||||
|
||||
### Ok let's install FreshRSS, Shaarli, and LimeSurvey. First we have to configure nginx. I'm going to cheat a little here.
|
||||

|
||||
|
||||
```
|
||||
$ sudo wget https://joshua.seigler.net/code/vps-the-hard-way/default.conf.txt -O /etc/nginx/conf.d/default.conf
|
||||
$ sudo rm /etc/nginx/sites-enabled/default
|
||||
```
|
218
src/static/csszengarden/console/001/001.css
Normal file
|
@ -0,0 +1,218 @@
|
|||
/* css Zen Garden new style by Joshua Seigler -http://www.seigler.net/ */
|
||||
/* css released under Creative Commons License -http://creativecommons.org/licenses/by-nc-sa/1.0/ */
|
||||
|
||||
/* basic elements */
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #eee;
|
||||
text-shadow: #eee 0 0 2px;
|
||||
font-family: FreePixelCSSZenGarden,monospace;
|
||||
font-size: 24pt;
|
||||
line-height: 1.1em;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
border: none;
|
||||
cursor: default;
|
||||
|
||||
/* gradient generated by http://www.colorzilla.com/gradient-editor/#05070c+10,4b574a+18,323c31+53,141817+82;Custom */
|
||||
background: #282E22;
|
||||
background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIxMCUiIHN0b3AtY29sb3I9IiMwNTA3MGMiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxOCUiIHN0b3AtY29sb3I9IiM0YjU3NGEiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSI1MyUiIHN0b3AtY29sb3I9IiMzMjNjMzEiIHN0b3Atb3BhY2l0eT0iMSIvPgogICAgPHN0b3Agb2Zmc2V0PSI4MiUiIHN0b3AtY29sb3I9IiMxNDE4MTciIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+");
|
||||
background: -moz-linear-gradient(left, rgba(5,7,12,1) 10%, rgba(75,87,74,1) 18%, rgba(50,60,49,1) 53%, rgba(20,24,23,1) 82%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, right top, color-stop(10%,rgba(5,7,12,1)), color-stop(18%,rgba(75,87,74,1)), color-stop(53%,rgba(50,60,49,1)), color-stop(82%,rgba(20,24,23,1))); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(left, rgba(5,7,12,1) 10%,rgba(75,87,74,1) 18%,rgba(50,60,49,1) 53%,rgba(20,24,23,1) 82%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(left, rgba(5,7,12,1) 10%,rgba(75,87,74,1) 18%,rgba(50,60,49,1) 53%,rgba(20,24,23,1) 82%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(left, rgba(5,7,12,1) 10%,rgba(75,87,74,1) 18%,rgba(50,60,49,1) 53%,rgba(20,24,23,1) 82%); /* IE10+ */
|
||||
background: linear-gradient(to right, rgba(5,7,12,1) 10%,rgba(75,87,74,1) 18%,rgba(50,60,49,1) 53%,rgba(20,24,23,1) 82%); /* W3C */
|
||||
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
header, section, div, aside {
|
||||
display: block;
|
||||
}
|
||||
|
||||
header {
|
||||
margin: 25px 0;
|
||||
border-bottom: 3px solid rgba(239,239,239,0.5);
|
||||
clear: both;
|
||||
}
|
||||
|
||||
h1,h2,h3 {
|
||||
font-weight: 400;
|
||||
font-family: pixChicagoCSSZenGarden,monospace;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 200%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 100%;
|
||||
margin: 2em 0 0.8em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a:link {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a:link:hover {
|
||||
background-color: rgba(0,0,255,0.5);
|
||||
}
|
||||
|
||||
a:visited:hover {
|
||||
background-color: rgba(127,0,127,0.5);
|
||||
}
|
||||
|
||||
body:before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: -2;
|
||||
|
||||
background: -webkit-linear-gradient(-5deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.125) 50%, rgba(255,255,255,0) 50.5%, rgba(255,255,255,0) 100%);
|
||||
background: -moz-linear-gradient(-5deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.125) 50%, rgba(255,255,255,0) 50.5%, rgba(255,255,255,0) 100%);
|
||||
background: -o-linear-gradient(-5deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.125) 50%, rgba(255,255,255,0) 50.5%, rgba(255,255,255,0) 100%);
|
||||
background: -ms-linear-gradient(-5deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.125) 50%, rgba(255,255,255,0) 50.5%, rgba(255,255,255,0) 100%);
|
||||
background: linear-gradient(-5deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.125) 50%, rgba(255,255,255,0) 50.5%, rgba(255,255,255,0) 100%);
|
||||
background-repeat: repeat;
|
||||
|
||||
-webkit-background-size: 2000px 175px;
|
||||
-moz-background-size: 2000px 175px;
|
||||
background-size: 2000px 175px;
|
||||
|
||||
-webkit-animation: drift 10s linear infinite;
|
||||
-moz-animation: drift 10s linear infinite;
|
||||
-ms-animation: drift 10s linear infinite;
|
||||
-o-animation: drift 10s linear infinite;
|
||||
animation: drift 10s linear infinite;
|
||||
}
|
||||
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
background: transparent url(monitor.png);
|
||||
|
||||
-webkit-background-size: 100% 100%;
|
||||
-moz-background-size: 100% 100%;
|
||||
background-size: 100% 100%;
|
||||
background-position: center center;
|
||||
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
abbr {
|
||||
text-decoration: none;
|
||||
border-bottom: 2px dotted rgba(239,239,239,0.25);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
h1 abbr,h2 abbr,h3 abbr {
|
||||
border-bottom: none;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin: 0 0 2em;
|
||||
}
|
||||
|
||||
/* classes and IDs */
|
||||
|
||||
.page-wrapper {
|
||||
padding: 3em 10%;
|
||||
padding: 8vh 10%;
|
||||
}
|
||||
|
||||
.design-selection > nav > ul {
|
||||
-webkit-column-width: 12em;
|
||||
-moz-column-width: 12em;
|
||||
column-width: 12em;
|
||||
-webkit-column-rule: 3px solid rgba(239,239,239,0.5);
|
||||
-moz-column-rule: 3px solid rgba(239,239,239,0.5);
|
||||
column-rule: 3px solid rgba(239,239,239,0.5);
|
||||
}
|
||||
|
||||
.design-selection > nav > ul > li {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.design-name {
|
||||
float: left;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.accesskey {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
background: #eee;
|
||||
display: inline-block;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
/* pseudo-content changes */
|
||||
#zen-summary > .p2::after {
|
||||
content: ".";
|
||||
}
|
||||
|
||||
footer::before {
|
||||
content: "This design conforms to web standards: ";
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* resources */
|
||||
@font-face {
|
||||
font-family: pixChicagoCSSZenGarden;
|
||||
src: url('pixChicago.eot'),
|
||||
url('pixChicago.eot?#ieFix') format('embedded-opentype'),
|
||||
url('pixChicago.woff') format('woff'),
|
||||
url('pixChicago.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: FreePixelCSSZenGarden;
|
||||
src: url('FreePixel.eot'),
|
||||
url('pixChicago.eot?#ieFix') format('embedded-opentype'),
|
||||
url('FreePixel.woff') format('woff'),
|
||||
url('FreePixel.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@-moz-keyframes drift { from { background-position: 0 0; } to { background-position: 0 -175px; } }
|
||||
@-webkit-keyframes drift { from { background-position: 0 0; } to { background-position: 0 -175px; } }
|
||||
@-ms-keyframes drift { from { background-position: 0 0; } to { background-position: 0 -175px; } }
|
||||
@-o-keyframes drift { from { background-position: 0 0; } to { background-position: 0 -175px; } }
|
||||
@keyframes drift { from { background-position: 0 0; } to { background-position: 0 -175px; } }
|
BIN
src/static/csszengarden/console/001/FreePixel.eot
Normal file
BIN
src/static/csszengarden/console/001/FreePixel.ttf
Normal file
BIN
src/static/csszengarden/console/001/FreePixel.woff
Normal file
BIN
src/static/csszengarden/console/001/monitor.png
Normal file
After Width: | Height: | Size: 358 KiB |
BIN
src/static/csszengarden/console/001/pixChicago.eot
Normal file
BIN
src/static/csszengarden/console/001/pixChicago.ttf
Normal file
BIN
src/static/csszengarden/console/001/pixChicago.woff
Normal file
188
src/static/csszengarden/console/index.html
Normal file
|
@ -0,0 +1,188 @@
|
|||
|
||||
<!DOCTYPE html >
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Zen Garden: The Beauty in CSS Design</title>
|
||||
|
||||
<link rel="stylesheet" media="screen" href="001/001.css"></style>
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.csszengarden.com/zengarden.xml">
|
||||
|
||||
<meta name="author" content="Dave Shea">
|
||||
<meta name="description" content="A demonstration of what can be accomplished visually through CSS-based design.">
|
||||
<meta name="robots" content="all">
|
||||
</head>
|
||||
|
||||
<!--
|
||||
|
||||
|
||||
to do: a new comment for people viewing source
|
||||
|
||||
-->
|
||||
|
||||
<body id="css-zen-garden">
|
||||
<div class="page-wrapper">
|
||||
|
||||
<section class="intro" id="zen-intro">
|
||||
<header role="banner">
|
||||
<h1><span>CSS Zen Garden</span></h1>
|
||||
<h2><span>The Beauty of <abbr title="Cascading Style Sheets">CSS</abbr> Design</span></h2>
|
||||
</header>
|
||||
|
||||
<div class="summary" id="zen-summary">
|
||||
<p class="p1"><span>A demonstration of what can be accomplished through <abbr title="Cascading Style Sheets">CSS</abbr>-based design. Select any style sheet from the list to load it into this page.</span></p>
|
||||
<p class="p2"><span>Download the sample <a href="/zengarden-sample.html" title="This page's source HTML code, not to be modified.">html file</a> and <a href="/zengarden-sample.css" title="This page's sample CSS, the file you may modify.">css file</a></span></p>
|
||||
</div>
|
||||
|
||||
<div class="preamble" id="zen-preamble">
|
||||
<h3><span>The Road to Enlightenment</span></h3>
|
||||
<p class="p1"><span>Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible <abbr title="Document Object Model">DOM</abbr>s, broken <abbr title="Cascading Style Sheets">CSS</abbr> support, and abandoned browsers.</span></p>
|
||||
<p class="p2"><span>We must clear the mind of the past. Web enlightenment has been achieved thanks to the tireless efforts of folk like the <abbr title="World Wide Web Consortium">W3C</abbr>, <abbr title="Web Standards Project">WaSP</abbr>, and the major browser creators.</span></p>
|
||||
<p class="p3"><span>The CSS Zen Garden invites you to relax and meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the time-honored techniques in new and invigorating fashion. Become one with the web.</span></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="supporting" id="zen-supporting">
|
||||
<div class="explanation" id="zen-explanation">
|
||||
<h3><span>So What is This About?</span></h3>
|
||||
<p class="p1"><span>There is a continuing need to show the power of <abbr title="Cascading Style Sheets">CSS</abbr>. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The <abbr title="HyperText Markup Language">HTML</abbr> remains the same, the only thing that has changed is the external <abbr title="Cascading Style Sheets">CSS</abbr> file. Yes, really.</span></p>
|
||||
<p class="p2"><span><abbr title="Cascading Style Sheets">CSS</abbr> allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. Designers and coders alike have contributed to the beauty of the web; we can always push it further.</span></p>
|
||||
</div>
|
||||
|
||||
<div class="participation" id="zen-participation">
|
||||
<h3><span>Participation</span></h3>
|
||||
<p class="p1"><span>Strong visual design has always been our focus. You are modifying this page, so strong <abbr title="Cascading Style Sheets">CSS</abbr> skills are necessary too, but the example files are commented well enough that even <abbr title="Cascading Style Sheets">CSS</abbr> novices can use them as starting points. Please see the <a href="http://www.mezzoblue.com/zengarden/resources/" title="A listing of CSS-related resources"><abbr title="Cascading Style Sheets">CSS</abbr> Resource Guide</a> for advanced tutorials and tips on working with <abbr title="Cascading Style Sheets">CSS</abbr>.</span></p>
|
||||
<p class="p2"><span>You may modify the style sheet in any way you wish, but not the <abbr title="HyperText Markup Language">HTML</abbr>. This may seem daunting at first if you’ve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide.</span></p>
|
||||
<p class="p3"><span>Download the sample <a href="/zengarden-sample.html" title="This page's source HTML code, not to be modified.">HTML</a> and <a href="/zengarden-sample.css" title="This page's sample CSS, the file you may modify.">CSS</a> to work on a copy locally. Once you have completed your masterpiece (and please, don’t submit half-finished work) upload your <abbr title="Cascading Style Sheets">CSS</abbr> file to a web server under your control. <a href="http://www.mezzoblue.com/zengarden/submit/" title="Use the contact form to send us your CSS file">Send us a link</a> to an archive of that file and all associated assets, and if we choose to use it we will download it and place it on our server.</span></p>
|
||||
</div>
|
||||
|
||||
<div class="benefits" id="zen-benefits">
|
||||
<h3><span>Benefits</span></h3>
|
||||
<p class="p1"><span>Why participate? For recognition, inspiration, and a resource we can all refer to showing people how amazing <abbr title="Cascading Style Sheets">CSS</abbr> really can be. This site serves as equal parts inspiration for those working on the web today, learning tool for those who will be tomorrow, and gallery of future techniques we can all look forward to.</span></p>
|
||||
</div>
|
||||
|
||||
<div class="requirements" id="zen-requirements">
|
||||
<h3><span>Requirements</span></h3>
|
||||
<p class="p1"><span>Where possible, we would like to see mostly <abbr title="Cascading Style Sheets, levels 1 and 2">CSS 1 & 2</abbr> usage. <abbr title="Cascading Style Sheets, levels 3 and 4">CSS 3 & 4</abbr> should be limited to widely-supported elements only, or strong fallbacks should be provided. The CSS Zen Garden is about functional, practical <abbr title="Cascading Style Sheets">CSS</abbr> and not the latest bleeding-edge tricks viewable by 2% of the browsing public. The only real requirement we have is that your <abbr title="Cascading Style Sheets">CSS</abbr> validates.</span></p>
|
||||
<p class="p2"><span>Luckily, designing this way shows how well various browsers have implemented <abbr title="Cascading Style Sheets">CSS</abbr> by now. When sticking to the guidelines you should see fairly consistent results across most modern browsers. Due to the sheer number of user agents on the web these days — especially when you factor in mobile — pixel-perfect layouts may not be possible across every platform. That’s okay, but do test in as many as you can. Your design should work in at least IE9+ and the latest Chrome, Firefox, iOS and Android browsers (run by over 90% of the population).</span></p>
|
||||
<p class="p3"><span>We ask that you submit original artwork. Please respect copyright laws. Please keep objectionable material to a minimum, and try to incorporate unique and interesting visual themes to your work. We’re well past the point of needing another garden-related design.</span></p>
|
||||
<p class="p4"><span>This is a learning exercise as well as a demonstration. You retain full copyright on your graphics (with limited exceptions, see <a href="http://www.mezzoblue.com/zengarden/submit/guidelines/">submission guidelines</a>), but we ask you release your <abbr title="Cascading Style Sheets">CSS</abbr> under a Creative Commons license identical to the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="View the Zen Garden's license information.">one on this site</a> so that others may learn from your work.</span></p>
|
||||
<p class="p5"><span>Bandwidth graciously donated by <a href="http://www.mediatemple.net/">mediatemple</a>. Now available: <a href="http://www.amazon.com/exec/obidos/ASIN/0321303474/mezzoblue-20/">Zen Garden, the book</a>.</span></p>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<a href="http://validator.w3.org/check/referer" title="Check the validity of this site’s HTML" class="zen-validate-html">HTML</a>
|
||||
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="Check the validity of this site’s CSS" class="zen-validate-css">CSS</a>
|
||||
<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="View the Creative Commons license of this site: Attribution-NonCommercial-ShareAlike." class="zen-license">CC</a>
|
||||
<a href="http://mezzoblue.com/zengarden/faq/#aaa" title="Read about the accessibility of this site" class="zen-accessibility">A11y</a>
|
||||
<a href="https://github.com/mezzoblue/csszengarden.com" title="Fork this site on Github" class="zen-github">GH</a>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside class="sidebar" role="sidebar">
|
||||
<div class="wrapper">
|
||||
|
||||
<div class="design-selection" id="design-selection">
|
||||
<h3 class="select"><span>Select a Design:</span></h3>
|
||||
<nav role="navigation">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #1</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #2</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #3</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #4</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #5</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #6</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #7</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="design-name">Sample #8</a> by
|
||||
<a href="http://www.mezzoblue.com/" class="designer-name">Dave Shea</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="design-archives" id="design-archives">
|
||||
<h3 class="archives"><span>Archives:</span></h3>
|
||||
<ul>
|
||||
<li class="next">
|
||||
<a href="?cssfile=001/001.css&page=1">
|
||||
Next Designs <span class="indicator">»</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="viewall">
|
||||
<a href="http://www.mezzoblue.com/zengarden/alldesigns/" title="View every submission to the Zen Garden.">
|
||||
View All Designs
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="zen-resources" id="zen-resources">
|
||||
<h3 class="resources"><span>Resources:</span></h3>
|
||||
<ul>
|
||||
<li class="view-css">
|
||||
<a href="001/001.css" title="View the source CSS file of the currently-viewed design.">
|
||||
View This Design’s <abbr title=\"Cascading Style Sheets\">CSS</abbr>
|
||||
</a>
|
||||
</li>
|
||||
<li class="css-resources">
|
||||
<a href="http://www.mezzoblue.com/zengarden/resources/" title="Links to great sites with information on using CSS.">
|
||||
<abbr title="Cascading Style Sheets">CSS</abbr> Resources
|
||||
</a>
|
||||
</li>
|
||||
<li class="zen-faq">
|
||||
<a href="http://www.mezzoblue.com/zengarden/faq/" title="A list of Frequently Asked Questions about the Zen Garden.">
|
||||
<abbr title="Frequently Asked Questions">FAQ</abbr>
|
||||
</a>
|
||||
</li>
|
||||
<li class="zen-submit">
|
||||
<a href="http://www.mezzoblue.com/zengarden/submit/" title="Send in your own CSS file.">
|
||||
Submit a Design
|
||||
</a>
|
||||
</li>
|
||||
<li class="zen-translations">
|
||||
<a href="http://www.mezzoblue.com/zengarden/translations/" title="View translated versions of this page.">
|
||||
Translations
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!--
|
||||
These extra divs/spans were originally provided as catch-alls to add extra imagery.
|
||||
These days we have full ::before and ::after support, favour using those instead.
|
||||
These remain for historical design compatibility.
|
||||
-->
|
||||
<div class="extra1"><span></span></div><div class="extra2"><span></span></div><div class="extra3"><span></span></div>
|
||||
<div class="extra4"><span></span></div><div class="extra5"><span></span></div><div class="extra6"><span></span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 01.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 02.jpg
Normal file
After Width: | Height: | Size: 467 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 03.jpg
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 04.jpg
Normal file
After Width: | Height: | Size: 157 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 05.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 06.jpg
Normal file
After Width: | Height: | Size: 239 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 07.jpg
Normal file
After Width: | Height: | Size: 309 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 08.jpg
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 09.jpg
Normal file
After Width: | Height: | Size: 188 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 10.jpg
Normal file
After Width: | Height: | Size: 143 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 11.jpg
Normal file
After Width: | Height: | Size: 306 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 12.jpg
Normal file
After Width: | Height: | Size: 481 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 13.jpg
Normal file
After Width: | Height: | Size: 451 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 14.jpg
Normal file
After Width: | Height: | Size: 432 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 15.jpg
Normal file
After Width: | Height: | Size: 101 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 16.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 17.jpg
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 18.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 19.jpg
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 20.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
src/static/vps-the-hard-way/VPS-the-hard-way - 21.jpg
Normal file
After Width: | Height: | Size: 84 KiB |
|
@ -10,6 +10,7 @@
|
|||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="stylesheet" href="css/bundle-screen.css" media="not print">
|
||||
<link rel="stylesheet" href="css/bundle-print.css" media="print">
|
||||
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body class="{{ .Section | default .Title | urlize }}">
|
||||
|
|
|
@ -75,6 +75,19 @@ footer {
|
|||
code {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
pre {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
pre code {
|
||||
background-color: transparent;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
p {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
/*layout*/
|
||||
html {
|
||||
font-size: calc(0.8em + 1.3vmin);
|
||||
|
|
BIN
src/themes/eos/static/img/favicon.ico
Normal file
After Width: | Height: | Size: 24 KiB |
|
@ -69,3 +69,18 @@ footer {
|
|||
code {
|
||||
background-color: fade(@color-text, 15%);
|
||||
}
|
||||
pre {
|
||||
background-color: fade(@color-text, 15%);
|
||||
white-space: pre-wrap;
|
||||
code {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
|