Skip to content

Commit 14f848d

Browse files
kwilkinsGitHub Enterprise
authored andcommitted
Merge pull request linode#54 from kwilkins/DLC-81-community-section
DLC-81 Add community and main page link to Library & Tools page
2 parents 575075c + 771bc5f commit 14f848d

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22

33
<div class="flex flex-wrap mb-8 -mx-4">
44

5-
<div class="w-full sm:w-1/4 md:w-1/5 px-4">
5+
<div class="w-full sm:w-1/4 md:w-1/5 px-4 flex flex-wrap">
66
<div id="filters" class="button-group filters-group sm:py-4 sm:mt-4">
7-
<div class="flex flex-wrap md:block">
8-
<div class="md:my-4 invisible sm:visible">{{ partial "0_svgs/divider.svg" (dict "width" 170) }}</div>
9-
<h4 class="uppercase mb-4 w-full">Created By</h4>
7+
<div class="md:block">
8+
<div class="md:my-4 invisible sm:visible text-center">{{ partial "0_svgs/divider.svg" (dict "width" 170) }}</div>
9+
<h4 class="uppercase mb-4 w-full md:text-center">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-
<div class="flex flex-wrap md:block">
14-
<h4 class="uppercase mb-4 w-full">Language</h4>
13+
<div class="md:block">
14+
<h4 class="uppercase mb-4 w-full md:text-center">Language</h4>
1515
{{range ($.Site.GetPage "taxonomyTerm" "languages").Pages }}
1616
{{ partial "1_atoms/radio.html" (dict "ID" (lower (replace .Title "." "-")) "Name" "language" "Value" (print "." (lower (replace .Title "." "-"))) "Label" .Title) . }}
1717
{{end}}
1818
</div>
1919
<button class="text-BaseBlue underline mt-4" onclick="uncheckAll('filters')">Reset Filters</button>
20+
<div class="md:block md:text-center mt-16">
21+
<h4 class="uppercase mb-4 w-full community-header">Want More Help?</h4>
22+
<a href="https://linode.com/community/questions" target="_blank" class="btn btn-small block text-center">Visit Linode Community</a>
23+
</div>
2024
</div>
2125
</div>
2226

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
.lib-item .bg-ThemeCell {
22
min-height: 145px;
3-
}
3+
}
4+
5+
.community-header:before {
6+
@apply border-BaseGreen;
7+
content: "";
8+
display: block;
9+
margin-bottom: 24px;
10+
box-sizing: border-box;
11+
height: 2px;
12+
width: 50px;
13+
border-width: 2px;
14+
border-style: solid;
15+
}
16+
17+
@screen md {
18+
19+
.community-header:before {
20+
margin-left: auto;
21+
margin-right: auto;
22+
}
23+
}

0 commit comments

Comments
 (0)