Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

feat: get-started #323

Merged
merged 34 commits into from
Aug 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9ed98b4
update deps
cwaring Aug 12, 2019
5c170df
formate index and add getting-started partial
cwaring Aug 12, 2019
122f9f4
sketch out option-blocks
cwaring Aug 12, 2019
377e515
add option-blocks css
cwaring Aug 12, 2019
cd7ebe7
migrate vars and add imports
cwaring Aug 12, 2019
0d890fe
getting-started -> get-started
cwaring Aug 12, 2019
dcb9255
update header CTAs
cwaring Aug 12, 2019
674f9ab
add content and refine styles
cwaring Aug 14, 2019
c754370
fix padding
cwaring Aug 14, 2019
989c52e
add get-started module
cwaring Aug 14, 2019
05fdade
switch to checkboxes
cwaring Aug 14, 2019
a39b682
toggle cb states
cwaring Aug 15, 2019
7ee5478
fix standard formatting
cwaring Aug 15, 2019
51d897d
replace feedback form with forum links
cwaring Aug 16, 2019
80a7aae
sketch out event tracking for sections and links
cwaring Aug 16, 2019
a84e5b8
refine link tracking
cwaring Aug 19, 2019
9db567b
add video thumb
cwaring Aug 19, 2019
d370814
user window.ga to fix js standard errors
cwaring Aug 19, 2019
ee1dfe1
tidy css
cwaring Aug 19, 2019
a388348
tweak buttons
cwaring Aug 19, 2019
32a6357
use @color-teal for default caret icon
cwaring Aug 20, 2019
337bb24
add .with-padding helper
cwaring Aug 20, 2019
544ef7c
upgrade hugo 0.18.1 -> 0.45.2
cwaring Aug 21, 2019
643f296
disable ga in local env
cwaring Aug 21, 2019
a37badc
video thumb
cwaring Aug 21, 2019
f6fab02
Copy and layout changes based on test results from #247.
jessicaschilling Aug 22, 2019
44e0582
cleanup
cwaring Aug 23, 2019
0e9ab9d
review ux cleanup
cwaring Aug 23, 2019
3a51064
Adds a word, removes a word
Aug 23, 2019
cd1d874
disable touch events on the header canvas
cwaring Aug 23, 2019
3a5c3b5
copy amends
cwaring Aug 23, 2019
a2d152f
remove illustration
cwaring Aug 26, 2019
ff1f0b3
smaller screen layout fix
cwaring Aug 26, 2019
cb4a239
update cb ids
cwaring Aug 26, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ disableKinds = ["RSS"]
domain = "ipfs.io"
name = "IPFS"
title = "IPFS is the Distributed Web"
description = "A peer-to-peer hypermedia protocol to make the web faster, safer, and more open."
description = "The InterPlanetary File System is a peer-to-peer hypermedia protocol designed to make the web faster, safer, and more open."
author = "Protocol Labs"
github = "https://github.com/ipfs/ipfs"
specifications = "https://github.com/ipfs/specs"
Expand Down
187 changes: 0 additions & 187 deletions content/index.html

This file was deleted.

2 changes: 2 additions & 0 deletions js/header-and-latest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
var stars = require('./lib/stars')
var popup = require('./lib/popup')
var blogFeed = require('./lib/blog-feed')
var getStarted = require('./lib/get-started')

stars()
popup()
blogFeed()
getStarted()
40 changes: 40 additions & 0 deletions js/lib/get-started.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
var $ = require('jquery')

module.exports = function () {
var ctx = '.option-blocks'
var lastOption = null

function trackLinkClick (event) {
if (!window.ga) return
window.ga('send', 'event', {
eventCategory: 'link',
eventAction: 'click',
eventLabel: event.target.href
})
}
function trackOptionClick (el) {
if (!window.ga) return
var title = $(el).closest('.option-block').find('h4').text().toLowerCase()
window.ga('send', 'event', {
eventCategory: el.checked ? 'open option' : 'close option',
eventAction: 'click',
eventLabel: title
})
}

$(document).ready(function () {
// setup link tracking for all of the homepage
$('a').on('click', function (event) {
trackLinkClick(event)
})
// setup click action on option section
$('input[type=checkbox]', ctx).on('click', function () {
lastOption = this
trackOptionClick(lastOption)
// close all other option options
$('input[type=checkbox]:checked', ctx).each(function () {
if (this !== lastOption) $(this).prop('checked', false)
})
})
})
}
24 changes: 24 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>

<head>
{{ partial "head.html" . }}
</head>

<body>
{{ partial "header.html" (dict "hero" "" "baseUrl" ($.Param " baseURL ") "page" .) }}

<div class="container">
<div class="document">
{{ block "main" . }}

{{ end }}
</div>
</div>
{{ partial "footer.html" . }}

<script src="/js/common.js"></script>
<script src="/js/header.js"></script>
</body>

</html>
25 changes: 3 additions & 22 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
<!DOCTYPE html>
<html>

<head>
{{ partial "head.html" . }}
</head>

<body>
{{ partial "header.html" (dict "hero" "" "baseUrl" ($.Param " baseURL ") "page" .) }}

<div class="container">
<div class="document">
{{ .Content }}
</div>
</div>
{{ partial "footer.html" . }}

<script src="/js/common.js"></script>
<script src="/js/header.js"></script>
</body>

</html>
{{ define "main"}}
{{ .Content }}
{{ end }}
Loading