Skip to content

Commit 7f45641

Browse files
Josh SagerGitHub Enterprise
authored andcommitted
Merge pull request linode#7 from abailly/guides-wireframes
Guides wireframes
2 parents e864ec7 + 07b77a6 commit 7f45641

File tree

17 files changed

+1743
-23
lines changed

17 files changed

+1743
-23
lines changed

content/guides/_index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)'
99
date: 2018-06-13T08:55:08-04:00
1010
template: guides
1111
---
12-
This is the Guides page. This page will be a curated list of guides taken from
13-
our Docs site to make it easy for developers to find the resources they need
14-
to create and consume Linode's products and services.
12+
Get Started building tools and apps using the linode API

themes/dlc/gulpfile.js

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,30 @@ const reporter = require('postcss-reporter');
1313
const tailwind = 'tailwind.js';
1414
const mainCss = './srcCSS/main.css';
1515
const css = './srcCSS/**/*.css';
16-
const html = './layouts/**/*.html'
16+
const baseThemeHtml = '../linode-hugo-base-theme/layouts/**/*.html';
17+
const html = './layouts/**/*.html';
1718
const output = 'static/assets/css/';
1819
const cssInfoDir = 'static/assets/cssinfo/';
1920

21+
class TailwindExtractor {
22+
static extract(content) {
23+
return content.match(/[A-z0-9-:\/]+/g) || [];
24+
}
25+
}
26+
2027
const plugins = [
2128
atImport,
2229
tailwindcss('./tailwind.js'),
2330
autoprefixer({
2431
browsers: ['last 2 versions', '> 2%']
2532
}),
26-
cssnano
33+
// cssnano({
34+
// preset: ['none', {
35+
// discardComments: {
36+
// removeAll: true,
37+
// },
38+
// }]
39+
// })
2740
];
2841

2942
gulp.task('lint', () => {
@@ -47,8 +60,14 @@ gulp.task('compile', () => {
4760
.pipe(postcss(plugins))
4861
.pipe(
4962
purgecss({
50-
content: [html],
51-
whitelist: ['mobile-nav', ['active']]
63+
content: [baseThemeHtml, html],
64+
whitelist: ['mobile-nav', 'active'],
65+
extractors: [
66+
{
67+
extractor: TailwindExtractor,
68+
extensions: ["html"]
69+
}
70+
]
5271
})
5372
)
5473
.pipe(gulp.dest(output));
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{{ define "main" }}
2+
3+
4+
<div class="mx-auto text-center max-w-lg my-8 pb-4">
5+
<h1>{{ .Title }}</h1>
6+
<div class="text-xl">{{.Content}}</div>
7+
</div>
8+
9+
<div class="max-w-2xl mx-auto pb-4">
10+
<h2 class="text-center">API Guides</h2>
11+
<div class="flex flex-wrap my-8 -mx-4">
12+
{{ range .Paginator.Pages }}
13+
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
14+
<div class="p-8 h-full bg-grey-light">
15+
<header>
16+
<h3 class="mt-0"><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h3>
17+
{{ partial "2_molecules/post-categories" . }}
18+
</header>
19+
{{ .Content }}
20+
</div>
21+
</article>
22+
{{ end }}
23+
<button class="btn mx-auto">View All Platform Guides</button>
24+
</div>
25+
</div>
26+
27+
<h2 class="text-center">Recently Updated Guides</h2>
28+
29+
<div class="flex flex-wrap my-8 -mx-4 pb-8">
30+
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
31+
<div class="p-8 h-full bg-grey-light">
32+
<header>
33+
<h3 class="mt-0"><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h3>
34+
{{ partial "2_molecules/post-categories" . }}
35+
</header>
36+
{{ .Content }}
37+
</div>
38+
</article>
39+
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
40+
<div class="p-8 h-full bg-grey-light">
41+
<header>
42+
<h3 class="mt-0"><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h3>
43+
{{ partial "2_molecules/post-categories" . }}
44+
</header>
45+
{{ .Content }}
46+
</div>
47+
</article>
48+
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
49+
<div class="p-8 h-full bg-grey-light">
50+
<header>
51+
<h3 class="mt-0"><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h3>
52+
{{ partial "2_molecules/post-categories" . }}
53+
</header>
54+
{{ .Content }}
55+
</div>
56+
</article>
57+
</div>
58+
59+
<div class="flex flex-wrap my-8 -mx-4 pb-4">
60+
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8" style="height: 300px">
61+
<div class="p-8 h-full bg-grey-light">
62+
</div>
63+
</article>
64+
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
65+
<div class="p-8 h-full flex flex-col justify-center">
66+
<header>
67+
<h2 class="mt-0">Want more help?</h2>
68+
</header>
69+
<p>We're happy with any other qustions you might have.</p>
70+
<button class="btn mt-4">Get your questions answered</button>
71+
</div>
72+
</article>
73+
</div>
74+
75+
<div class="my-8 -mx-4 pb-4">
76+
<h2 class="text-center mx-auto">Get started in the Linode Cloud today</h2>
77+
<div class="flex justify-center">
78+
<button class="btn mt-4 mr-2">Create an account</button>
79+
<button class="btn mt-4 ml-2">Learn more</button>
80+
</div>
81+
</div>
82+
83+
{{ partial "2_molecules/paginator" . }}
84+
85+
{{ end }}

themes/dlc/layouts/partials/0_utilities/htmlHead.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
{{ .Hugo.Generator }}
2424

2525
{{ partial "0_utilities/fonts.html" . }}
26-
<link href='{{ "assets/css/base.css" | relURL }}' rel="stylesheet">
2726
<link href='{{ "assets/css/main.css" | relURL }}' rel="stylesheet">
2827
{{ if .Site.Params.dev.enable}}
2928
<link href='{{ "assets/cssinfo/css-info.css" | relURL }}' rel="stylesheet">
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
:root {
2-
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.btn {
2+
@apply font-bold py-3 px-4 bg-l-green text-white rounded;
3+
width: fit-content;
4+
}

themes/dlc/srcCSS/main.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@import 'tailwind.css';
2-
@import './**/*.css';
2+
@import '../../linode-hugo-base-theme/srcCSS/components/**/*.css';
3+
@import 'components/**/*.css';

themes/dlc/static/assets/css/base.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)