27
27
< h1 class ="font-black text-2xl mb-8 xl:text-4xl "> {{ .context.Title | .context.RenderString }}</ h1 >
28
28
{{ end }}
29
29
30
- < div class ="grid md:grid-cols-80-20 md:gap-4 print:block ">
30
+ < div class ="grid md:grid-cols-[minmax(0,1fr),270px] md:gap-4 md:pr -4 print:block ">
31
31
32
- < div class ="print:hidden max-w-[92vw] md:max-w-none md:order-2 md:top-24 md:sticky md:max-h-fullv md:overflow-y-auto border-t border-stone ">
32
+ < div class ="print:hidden max-w-[92vw] md:max-w-none md:order-2 md:top-24 md:sticky md:h-[calc(100vh-6rem)] md:overflow-y-auto border-t border-stone ">
33
33
<!-- Table of contents -->
34
34
{{ if and (ne .context.Params.toc false) (ne .context.TableOfContents "< nav id =\ "TableOfContents\"> </ nav > ") }}
35
- < div class ="border border-stone border-t-0 px-6 pt-1 pb-4 mb-8 md:mb-0 text-sm [&_a]:text-skye-dark hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4 ">
35
+ < div class ="border border-stone border-t-0 px-6 pt-1 pb-4 mb-8 md:mb-0 text-sm [&_a]:text-skye-dark hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4 [&_nav_ul>li]:mb-2 [&_nav_ul_ul>li]:mt-2 ">
36
36
37
37
{{ if not .context.Page.IsHome }}
38
38
< h3 class ="pt-4 pb-2 font-light text-base text-slate "> < a href ="/ "> Back to home</ a > </ h3 >
@@ -57,7 +57,7 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
57
57
{{ end }}
58
58
59
59
< div
60
- class ="bg-gradient-to-b from-[#FF4A11] from-0% via-[#ED49F0] via-45% to-[#DDF933] to-100% rounded-2xl p-[1px] my-1 ">
60
+ class ="bg-gradient-to-b from-[#FF4A11] from-0% via-[#ED49F0] via-45% to-[#DDF933] to-100% rounded-2xl p-[1px] mt-1 mb-4 ">
61
61
< div class ="rounded-2xl p-5 bg-[#f9f9f9] flex-col justify-start items-start gap-4 inline-flex ">
62
62
{{ $recruitment := .context.Site.Params.vendor.recruit }}
63
63
{{ $vendorName := .context.Site.Params.vendor.name }}
@@ -89,21 +89,22 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
89
89
< div class ="cta-body ">
90
90
{{ index $recruitment "description"}}
91
91
</ div >
92
- < div class ="cta-terms ">
93
- {{ index $recruitment "fine" }}
94
- </ div >
92
+
95
93
</ div >
96
94
</ div >
97
95
< a href ="{{ index $recruitment "link " }}" class="px-6 py-2 bg-[#6046FF] hover:!bg-[#4D38CC] rounded-3xl text-white text-center text-sm font-semibold ">
98
96
{{ index $recruitment "cta" }}
99
97
</ a >
98
+ < div class ="cta-terms ">
99
+ {{ index $recruitment "fine" }}
100
+ </ div >
100
101
</ div >
101
102
</ div >
102
103
{{ end }}
103
104
104
105
</ div >
105
106
106
- < div class ="prose xl:prose-lg max-w-[96vw] md:max-w-none prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg ">
107
+ < div class ="prose xl:prose-lg max-w-[96vw] md:max-w-full w-full prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg ">
107
108
<!-- Add the stack picker for Get started section -->
108
109
{{ if and ( eq .context.Section "get-started" ) ( ne .context.Title "Introduction" ) }}
109
110
{{ if eq $.Site.Params.vendor.name "Platform.sh" }}
@@ -116,12 +117,18 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
116
117
117
118
<!-- If the page is a list page, add section cards -->
118
119
{{ if .isList }}
119
- {{ range .context.Pages }}
120
- < button onclick ="location.href = '{{ .RelPermalink }}'; " class ="block text-left mb-7 p-8 text-primary-darker border-l-4 border-skye-dark hover:no-underline bg-stone hover:bg-skye-dark hover:text-white focus:bg-skye-dark focus:text-white hover:cursor-pointer [&:hover_a]:text-snow [&:focus_a]:text-snow [&:hover_a]:font-extrabold [&:focus_a]:font-extrabold ">
121
- < span class ="block font-bold mb-4 "> {{ if isset .Params "sidebartitle" }}{{ .Params.sidebarTitle | .RenderString }}{{ else }}{{ .Title | .RenderString }}{{ end }}</ span >
122
- < span class ="block "> {{ .Params.description | .RenderString }}</ span >
123
- </ button >
124
- {{ end }}
120
+ < div class ="space-y-4 not-prose ">
121
+ {{ range .context.Pages }}
122
+ < a href ="{{ .RelPermalink }} " class ="block p-[2px] bg-stone hover:bg-skye-dark rounded-xl transition-all ">
123
+ < div class ="p-8 bg-white rounded-xl h-full hover:shadow-lg ">
124
+ < h3 class ="text-xl font-medium mb-2 text-gray-900 ">
125
+ {{ if isset .Params "sidebartitle" }}{{ .Params.sidebarTitle | .RenderString }}{{ else }}{{ .Title | .RenderString }}{{ end }}
126
+ </ h3 >
127
+ < p class ="text-gray-600 m-0 "> {{ .Params.description | .RenderString }}</ p >
128
+ </ div >
129
+ </ a >
130
+ {{ end }}
131
+ </ div >
125
132
{{ end }}
126
133
127
134
{{ if .context.Params.related }}
0 commit comments