From 88a9b2a862a25e96b70dfb0330c8fd506b350e1e Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Thu, 21 Jan 2016 12:33:33 +0100 Subject: [PATCH] feat(site): Add about section Closes #37 --- site/public/_about.md | 18 ++++++++++++++++++ site/public/_layout.jade | 2 +- site/public/css/_about.less | 6 ++++++ site/public/css/style.less | 1 + site/public/index.jade | 10 ++++++++-- 5 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 site/public/_about.md create mode 100644 site/public/css/_about.less diff --git a/site/public/_about.md b/site/public/_about.md new file mode 100644 index 00000000..009377cb --- /dev/null +++ b/site/public/_about.md @@ -0,0 +1,18 @@ +#### Welcome to IPFS distributions + +This is the downloads website for all the official software distributions of +the [IPFS Project](https://ipfs.io). You can find all the apps, binaries, +and packages here. Every distribution has a section on this +page with, + +* the distribution name and a short description +* the current version number and release date +* the software license (usually MIT) +* a download button that detects your platform +* a grid with download links for all supported platforms (os and architectures) +* `Changelog`, a link to a summary of all version changes +* `All Versions`, a link to view and download previous versions + +The `All Versions` link on each distribution shows directory listings for all the available versions, and a `versions` file ([example](http://dist.ipfs.io/go-ipfs/versions)). This file can be used by tools, such as [ipfs-update](#ipfs-update), to find all the available versions and download the latest. + +The directory listing of each version ([example](http://dist.ipfs.io/go-ipfs/v0.3.11)) has all the platform archives (`.zip` or `.tar.gz`), a `README.md` and a `dist.json` which describe the release for humans and machines. It is meant to be easily consumed and used by tools. diff --git a/site/public/_layout.jade b/site/public/_layout.jade index 840aa0bd..88b19693 100644 --- a/site/public/_layout.jade +++ b/site/public/_layout.jade @@ -11,6 +11,6 @@ html(lang='en') href='https://code.cdn.mozilla.net/fonts/fira.css' rel='stylesheet' ) - body(data-spy='scroll' data-target='#d-navbar' data-offset='30') + body(data-spy='scroll' data-target='#d-navbar' data-offset='40') != yield script(src='build/script.js') \ No newline at end of file diff --git a/site/public/css/_about.less b/site/public/css/_about.less new file mode 100644 index 00000000..5de598a6 --- /dev/null +++ b/site/public/css/_about.less @@ -0,0 +1,6 @@ +.d-about { + padding-top: 5 * @baseLineHeight; + padding-bottom: 3 * @baseLineHeight; + line-height: 1.5 * @baseLineHeight; + border-bottom: 1px solid @borderGray; +} \ No newline at end of file diff --git a/site/public/css/style.less b/site/public/css/style.less index cfe22764..a492a9e6 100644 --- a/site/public/css/style.less +++ b/site/public/css/style.less @@ -9,3 +9,4 @@ @import './_footer'; @import './_sidebar'; @import './_component'; +@import './_about'; diff --git a/site/public/index.jade b/site/public/index.jade index e387a2d8..e05e20eb 100644 --- a/site/public/index.jade +++ b/site/public/index.jade @@ -4,12 +4,18 @@ include ./_header.jade - architectureMap = {'darwin Binary': 'Mac OS X Binary', 'freebsd Binary': 'FreeBSD Binary', 'linux Binary': 'Linux Binary', 'windows Binary': 'Windows Binary'} .container + .row + #about.d-about.col-md-8.col-md-offset-2 + include:markdown ./_about.md .row .d-sidebar-wrapper.col-md-2.sticky.navbar-offcanvas#d-navbar-offcanvas .d-sidebar - ul.nav#d-navbar: each value, key in public.releases + ul.nav#d-navbar li.d-sidebar-item.nav-item - a.d-sidebar-link.nav-link(href='##{key}')= key + a.d-sidebar-link.nav-link(href='#about') About + each value, key in public.releases + li.d-sidebar-item.nav-item + a.d-sidebar-link.nav-link(href='##{key}')= key .col-md-10: each value, key in public.releases .d-component(id='#{key}') - data = value._data