Skip to content

Commit 98c88d1

Browse files
Alban BaillyGitHub Enterprise
authored andcommitted
Merge pull request linode#49 from kwilkins/DLC-83-styling
DLC-83 Styling Updates
2 parents 0691253 + 89f0acd commit 98c88d1

File tree

14 files changed

+62
-83
lines changed

14 files changed

+62
-83
lines changed

themes/dlc/gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ gulp.task('compile', () => {
6767
purgecss({
6868
content: [baseThemeHtml, html],
6969
whitelist: ['mobile-nav', 'active'],
70+
whitelistPatterns: [/wl$/],
7071
extractors: [
7172
{
7273
extractor: TailwindExtractor,
@@ -87,6 +88,7 @@ gulp.task('size', () => {
8788
purgecss({
8889
content: [baseThemeHtml, html],
8990
whitelist: ['mobile-nav', 'active'],
91+
whitelistPatterns: [/wl$/],
9092
extractors: [
9193
{
9294
extractor: TailwindExtractor,

themes/dlc/layouts/_default/guides.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }}
22

33
<div class="mx-auto text-center max-w-lg my-8 pb-4">
4-
<h2>API Guides</h2>
4+
<h2 class="font-light text-d-dark-green">API Guides</h2>
55
</div>
66

77
<div class="max-w-xl mx-auto pb-4">
@@ -10,7 +10,7 @@ <h2>API Guides</h2>
1010
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
1111
<div class="p-8 h-full bg-d-cell tile">
1212
<header>
13-
<h3 class="mt-0 text-2xl"><a href="{{ .Params.external_url }}" class="text-black tile-link" target="_blank">{{ .Title | markdownify }}</a></h3>
13+
<h3 class="mt-0 text-2xl font-normal"><a href="{{ .Params.external_url }}" class="text-black tile-link" target="_blank">{{ .Title | markdownify }}</a></h3>
1414
{{ partial "2_molecules/post-categories" . }}
1515
</header>
1616
<section>{{ .Content }}</section>
@@ -34,17 +34,17 @@ <h3 class="mt-0 text-2xl"><a href="{{ .Params.external_url }}" class="text-black
3434
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
3535
<div class="p-8 h-full flex flex-col justify-center">
3636
<header>
37-
<h2 class="mt-0">Want more help?</h2>
37+
<h2 class="mt-0 font-light text-d-dark-green">Want more help?</h2>
3838
</header>
39-
<p class="text-xl mt-2">Find answers, ask questions, and help others.</p>
39+
<p class="text-xl mt-2 font-light">Find answers, ask questions, and help others.</p>
4040
<a href="https://linode.com/community/questions" target="_blank" class="btn mt-4">Join our Community</a>
4141
</div>
4242
</article>
4343
</div>
4444

4545
<div class="my-8 -mx-4 pb-4">
4646
<div class="text-center my-4">{{ partial "0_svgs/divider.svg" }}</div>
47-
<h2 class="text-center mx-auto">Get started in the Linode cloud today.</h2>
47+
<h2 class="text-center mx-auto font-light text-d-dark-green">Get started in the Linode cloud today.</h2>
4848
<div class="flex justify-center">
4949
<a href="https://manager.linode.com/session/signup" target="_blank" class="btn mt-4 mr-2">Create an Account</a>
5050
<a href="https://www.linode.com/linodes" target="_blank" class="btn mt-4 ml-2">Learn More</a>

themes/dlc/layouts/_default/libraries-tools.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ <h4 class="uppercase mb-4 w-full">Created By</h4>
1010
{{ partial "1_atoms/radio.html" (dict "ID" "linode" "Name" "created" "Value" ".linode" "Label" "Linode") . }}
1111
{{ partial "1_atoms/radio.html" (dict "ID" "community" "Name" "created" "Value" ".community" "Label" "Community") . }}
1212
</div>
13-
<button class="btn btn-small mt-4 mb-4" onclick="uncheckAll('createdFilters')">View All</button>
1413
<div id="languageFilters" class="flex flex-wrap md:block">
1514
<h4 class="uppercase mb-4 w-full">Language</h4>
1615
{{range ($.Site.GetPage "taxonomyTerm" "languages").Pages }}
1716
{{ partial "1_atoms/radio.html" (dict "ID" (lower (replace .Title "." "-")) "Name" "language" "Value" (print "." (lower (replace .Title "." "-"))) "Label" .Title) . }}
1817
{{end}}
1918
</div>
20-
<button class="btn btn-small mt-4" onclick="uncheckAll('languageFilters')">View All</button>
19+
<button class="text-d-turq underline mt-4" onclick="uncheckAll('languageFilters')">Reset Filters</button>
2120
</div>
2221
</div>
2322

themes/dlc/layouts/index.html

Lines changed: 29 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,73 @@
11
{{ define "main" }}
22
<div class="row-full relative -mt-2 px-2">
33
<section class="header max-w-3xl mx-auto px-4 md:px-8 py-12 relative z-10">
4-
<h2>How easily can you create a Linode?</h2>
5-
<div class="text-2xl my-3">Are two steps easy enough?</div>
4+
<h2 class="text-center font-light text-d-dark-green">How easily can you create a Linode?</h2>
5+
<div class="text-2xl my-3 text-center font-light">Are two steps easy enough?</div>
66
{{ partial "2_molecules/code-box.html" }}
7-
<div class="mt-6"><a href="https://www.linode.com/cli" target="_blank" class="btn mt-3">Get Started with the Linode CLI</a></div>
7+
<div class="mt-6 text-center"><a href="https://www.linode.com/cli" target="_blank" class="btn mt-3">Get Started with the Linode CLI</a></div>
88
</section>
9-
<img src='{{ "img/grid.png" | relURL }}' class="home-lins absolute pin-t pin-r" />
109
</div>
1110

1211
<div class="flex flex-wrap my-8 -mx-4 pb-8">
1312
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
1413
<div class="px-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
1514
<h2 class="mt-0 font-normal text-center"><a href="https://developers.linode.com/" class="text-black tile-link">API Documentation</a></h3>
1615
<p class="text-xl mt-2 text-center">Reference Documentation for the Linode API</p>
17-
<a href="https://developers.dev.linode.com/api/v4" target="_blank" class="btn mt-6">View API Docs</a>
1816
</div>
1917
</article>
2018
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
2119
<div class="p-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
2220
<h2 class="mt-0 font-normal text-center"><a href="/guides/" class="text-black tile-link">Guides</a></h3>
2321
<p class="text-xl mt-2 text-center">How-to’s and Examples Using the Linode API</p>
24-
<a href="/guides/" class="btn mt-6">View Guides</a>
2522
</div>
2623
</article>
2724
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
2825
<div class="p-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
2926
<h2 class="mt-0 font-normal text-center"><a href="/libraries-tools/" class="text-black tile-link">Libraries &amp; Tools</a></h3>
3027
<p class="text-xl mt-2 text-center">Jumpstart Your API Integration</p>
31-
<a href="/libraries-tools/" class="btn mt-6">View Libraries &amp; Tools</a>
3228
</div>
3329
</article>
3430
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
3531
<div class="p-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
3632
<h2 class="mt-0 font-normal text-center"><a href="https://www.linode.com/community/" target="_blank" class="text-black tile-link">Community Questions</a></h3>
3733
<p class="text-xl mt-2 text-center">Questions and Answers from the Linode Community</p>
38-
<a href="https://linode.com/community/questions" target="_blank" class="btn mt-6">View Q&amp;A</a>
3934
</div>
4035
</article>
4136
</div>
4237

4338
<div class="mx-auto text-center max-w-lg my-8">
44-
<h2>Events</h2>
45-
<div class="text-2xl my-3">Catch us on the road at conferences, meetups, and job fairs.</div>
39+
<h2 class="font-light text-d-dark-green">Events</h2>
40+
<div class="text-2xl my-3 font-light">Catch us on the road at conferences, meetups, and job fairs.</div>
4641
</div>
47-
<div class="flex flex-wrap my-8 -mx-4 pb-8 justify-center">
48-
{{ range last 3 ((where .Pages "Section" "events").ByParam "start_date") }}
49-
{{ $t := (time .Params.end_date) }}
50-
{{ if ge ($t.Unix) (now.Unix) }}
51-
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
52-
<div class="p-8 h-full bg-d-cell tile-border">
53-
<header>
54-
<h3 class="mt-0 mb-4"><a href="{{ .Params.event_url }}" class="text-black tile-link" target="_blank">{{ .Title | markdownify }}</a></h3>
55-
</header>
56-
<section>
57-
<div><strong>{{ .Params.location }}</strong></div>
58-
<div><strong>{{ dateFormat "Jan 2, 2006" .Params.start_date }}</strong></div>
59-
<p>{{ .Content }}</p>
60-
</section>
61-
{{ if .Params.register_link }}
62-
<footer>
63-
<a href="{{ .Params.register_link }}" target ="_blank">Register Now</a>
64-
</footer>
65-
{{ end }}
66-
</div>
67-
</article>
68-
{{ end }}
69-
{{ end }}
70-
<a class="btn block mx-auto" href="https://www.linode.com/events" target="_blank">View All Events</a>
42+
<div class="my-8 -mx-4 pb-8">
43+
<div class="flex flex-wrap items-center justify-center">
44+
{{ range last 3 ((where .Pages "Section" "events").ByParam "start_date") }}
45+
{{ $t := (time .Params.end_date) }}
46+
{{ if ge ($t.Unix) (now.Unix) }}
47+
<article class="w-full md:w-1/3 px-4 mb-4 md:mb-8">
48+
<div class="p-8 h-full bg-d-cell tile">
49+
<header>
50+
<h3 class="mt-0 mb-4"><a href="{{ .Params.event_url }}" class="text-black tile-link" target="_blank">{{ .Title | markdownify }}</a></h3>
51+
</header>
52+
<section>
53+
<div><strong>{{ .Params.location }}</strong></div>
54+
<div><strong>{{ dateFormat "Jan 2, 2006" .Params.start_date }}</strong></div>
55+
<p>{{ .Content }}</p>
56+
</section>
57+
</div>
58+
</article>
59+
{{ end }}
60+
{{ end }}
61+
</div>
62+
<a class="btn block mx-auto text-center" href="https://www.linode.com/events" target="_blank">View All Events</a>
7163
</div>
7264

73-
<div class="relative row-full pb-8">
65+
<div class="relative row-full pb-8 home-cubes">
7466
<div class="mx-auto text-center max-w-lg my-8">
75-
<h2>Careers at Linode</h2>
76-
<div class="text-2xl mt-4">Help us create the platform of tomorrow.</div>
67+
<h2 class="font-light text-d-dark-green">Careers at Linode</h2>
68+
<div class="text-2xl mt-4 font-light">Help us create the platform of tomorrow.</div>
7769
<a class="btn block mx-auto mt-6" href="https://www.linode.com/careers" target="_blank">View Opportunities</a>
7870
</div>
79-
<img src='{{ "img/triangles.png" | relURL }}' class="home-triangles absolute pin-b pin-l" />
8071
</div>
8172

8273
{{ end }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828

2929
<link rel="shortcut icon" href='{{ "/img/favicon.ico" | relURL }}' type="image/x-icon" />
3030
</head>
31-
<body>
31+
<body class="{{ .Title | urlize }}-wl">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="flex flex-wrap mb-4 py-4">
22
<div class="w-full md:w-1/4 py-2 md:p-6 md:text-right mt-1 flex items-center md:block">
3-
<div class="timeago text-sm uppercase font-semibold mr-4 md:mr-0" datetime='{{ .Date.Format "2006-01-02T15:04:05-07:00" }}'>{{ .Date }}</div>
3+
<div class="timeago mr-4 md:mr-0" datetime='{{ .Date.Format "2006-01-02T15:04:05-07:00" }}'>{{ .Date }}</div>
44
{{ if .Params.version }}
55
<div class="text-d-turq md:mt-4 leading-none">{{ .Params.version }}</div>
66
{{ end }}
77
</div>
88
<div class="w-full md:w-3/4 py-2 md:p-6">
9-
<h2 class="mt-0 text-xl">{{ .Title | markdownify }}</h2>
9+
<h2 class="mt-0 text-2xl font-normal">{{ .Title | markdownify }}</h2>
1010
<div class="changelog-entry">{{ .Content | markdownify }}</div>
1111
</div>
1212
</div>

themes/dlc/layouts/partials/2_molecules/code-box.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="code-box bg-d-beige rounded md:my-8">
1+
<div class="code-box bg-d-beige rounded md:my-8 mx-auto">
22
<div class="code-box-header border-white flex justify-start py-4 px-6">
33
<span class="code-box-circle circle-red"></span>
44
<span class="code-box-circle circle-yellow"></span>

themes/dlc/layouts/partials/3_organisms/banner.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="bg-d-header-green">
2-
<header class="header max-w-3xl mx-auto px-4 md:px-8 py-10 text-white">
2+
<header class="header max-w-3xl mx-auto px-4 md:px-8 py-8 text-white">
33
<div class="text-4xl">{{ .Title }}</div>
4-
<div class="text-3xl">
4+
<div class="text-3xl font-light">
55
{{ .Subtitle }}
66
</div>
77
</header>

themes/dlc/srcCSS/components/1_atoms/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.btn {
2-
@apply font-bold py-3 px-4 bg-d-turq text-white rounded;
2+
@apply py-3 px-4 bg-d-turq text-white;
33
width: fit-content;
44
transition: background-color 225ms ease-in-out,
55
color 225ms ease-in-out;

themes/dlc/srcCSS/components/1_atoms/tag.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.tag {
2-
@apply font-bold px-2 bg-d-blue-light text-d-turq rounded text-xs uppercase;
2+
@apply font-normal px-2 bg-l-nav-grey text-l-full-black text-xs uppercase;
33
padding-top: 6px;
44
padding-bottom: 5px;
55
width: fit-content;
Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.tile {
22
position: relative;
3-
border: 1px solid transparent;
3+
outline: 2px solid white;
4+
outline-offset: -10px;
45
transition: border-color 225ms ease-in-out;
56
}
67

@@ -17,21 +18,6 @@
1718
transition: color 225ms ease-in-out;
1819
}
1920

20-
.tile:hover {
21-
@apply border-d-turq-hov;
21+
.tile-link:hover {
22+
@apply text-d-header-green;
2223
}
23-
24-
.tile:hover .btn {
25-
@apply bg-d-turq-hov;
26-
}
27-
28-
.tile-border {
29-
@apply border-t-5 border-solid border-d-turq;
30-
transition: border-color 225ms ease-in-out;
31-
position: relative;
32-
}
33-
34-
.tile-border:hover {
35-
@apply border-d-turq-hov;
36-
}
37-

themes/dlc/srcCSS/components/4_pages/home.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
max-width: 200px;
33
}
44

5-
.home-triangles {
6-
bottom: -.5rem;
7-
max-width: 150px;
5+
.developer-tools-wl .content {
6+
background-image: url('/img/cubes.png');
7+
background-size: 594px;
8+
background-repeat: no-repeat;
9+
background-position: bottom left;
810
}
911

1012
@screen md {
1113
.home-lins {
1214
max-width: 437px;
1315
}
14-
.home-triangles {
15-
max-width: 277px;
16-
}
1716
}
1817

1918
.code-box {

themes/dlc/static/img/cubes.png

99.5 KB
Loading

themes/dlc/tailwind.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ View the full documentation at https://tailwindcss.com.
4646
let colors = {
4747
// Linode Colors
4848
'l-green': '#1AB15C',
49-
'l-nav-grey': '#a6a6a6',
49+
'l-nav-grey': '#E1E8EC',
5050
'l-full-black': '#000',
51-
'd-header-green': '#2F9072',
52-
'd-turq': '#346C8A',
51+
'd-header-green': '#3D9C46',
52+
'd-turq': '#107C9E',
5353
'd-turq-hov': '#4B81D5',
54-
'd-cell': '#EBEFF0',
54+
'd-cell': '#f4f4f4',
5555
'd-blue-light': '#EDF7FE',
56-
'd-beige': '#ECECEC',
56+
'd-beige': '#f4f4f4',
57+
'd-dark-green': '#4E674F',
58+
'd-transparent-blue': 'rgba(220,231,232,0.7)',
5759

5860
// Standard Colors
5961
'transparent': 'transparent',
@@ -208,7 +210,7 @@ module.exports = {
208210

209211
fonts: {
210212
'sans': [
211-
'Lato',
213+
'Source Sans Pro',
212214
'sans-serif',
213215
],
214216
'serif': [

0 commit comments

Comments
 (0)