Skip to content

Commit 7d1460d

Browse files
author
aryan
committed
some polishing
1 parent 5bce2bf commit 7d1460d

5 files changed

Lines changed: 27 additions & 35 deletions

File tree

layouts/exercises/list.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,19 @@
77
<div class="hx-mx-auto hx-flex {{ partial `utils/page-width` . }}">
88
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true
99
"displayPlaceholder" true) }}
10+
{{/* {{ partial "toc.html" (dict "Params" (dict "toc" false)) }} */}}
1011
<article
1112
class="hx-w-full hx-break-words hx-flex hx-min-h-[calc(100vh-var(--navbar-height))] hx-min-w-0 hx-justify-center hx-pb-8 hx-pr-[calc(env(safe-area-inset-right)-1.5rem)]"
1213
>
1314
<main class="hx-w-full hx-min-w-0 hx-max-w-6xl hx-pt-4 md:hx-px-6">
14-
{{/* {{partial "tag-bar.html" . }} */}}
1515
<br class="hx-mt-1.5 hx-text-sm" />
1616
{{/* {{ if .Title }}
1717
<h1
1818
class="hx-text-center hx-mt-2 hx-text-4xl hx-font-bold hx-tracking-tight hx-text-slate-900 dark:hx-text-slate-100"
1919
>
2020
{{ .Title }}
2121
</h1>
22-
{{ end }} */}} {{/*
23-
<div class="content">{{ .Content }}</div>
24-
*/}} {{/*
25-
<h1 class="hx-text-center">Blog with featured tag</h1>
26-
*/}}
27-
28-
{{/* {{ partial "exercise-cards.html" . }} */}}
22+
{{ end }} */}}
2923

3024
{{ partial "questions-list.html" . }}
3125

layouts/partials/chapters/chapter-card.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22

33
{{ if .page.Title }}
4-
<a href="{{ .RelPermalink }}">
4+
<a href="{{ .page.RelPermalink }}">
55
<li class="chapter-item">
66
{{- $img := (.Resources.ByType "image").GetMatch "*feature*" -}} {{- if
77
$img -}}
88
<img
99
class="chapter-image"
1010
src="{{ $img.RelPermalink }}"
11-
alt="{{ .Title }}"
11+
alt="{{ .page.Title }}"
1212
loading="lazy"
1313
width="100"
1414
height="100"
@@ -18,7 +18,7 @@
1818
<img
1919
class="chapter-image"
2020
src="{{ .page.Params.image }}"
21-
alt="{{ .Title }}"
21+
alt="{{ .page.Title }}"
2222
loading="lazy"
2323
width="100"
2424
height="100"
@@ -28,7 +28,7 @@
2828
<img
2929
class="chapter-image"
3030
src="{{ .page.Params.icon }}"
31-
alt="{{ .Title }}"
31+
alt="{{ .page.Title }}"
3232
loading="lazy"
3333
width="100"
3434
height="100"

layouts/partials/home/spotlight-section.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,12 @@ <h2>
117117
/* Responsive adjustments for smaller screens */
118118
@media (max-width: 992px) {
119119
.spotlight-content {
120-
flex-direction: column; /* Stack content vertically on smaller screens */
121-
text-align: center;
122120
gap: 40px;
123121
}
124122

125123
.spotlight-images {
126-
grid-template-columns: repeat(
127-
auto-fit,
128-
minmax(180px, 1fr)
129-
); /* Adjust image card grid */
124+
grid-template-columns: repeat(2, 1fr); /* 2 columns */
125+
130126
justify-content: center; /* Center grid items */
131127
}
132128

@@ -150,6 +146,10 @@ <h2>
150146
}
151147

152148
@media (max-width: 600px) {
149+
.spotlight-content {
150+
flex-direction: column;
151+
}
152+
153153
.spotlight-images {
154154
grid-template-columns: 1fr; /* Single column on very small screens */
155155
}

layouts/partials/qna-card.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<link
2-
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"
3-
rel="stylesheet"
4-
/>
51

62
<div class="card-container mona-sans hextra-scrollbar">
73
<a href="{{.RelPermalink}}">
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
1-
<div class="blogs-wrapper">
1+
<div class="question-list-wrapper">
22
{{- $pages := partial "utils/sort-pages" (dict "page" . "by"
33
site.Params.blog.list.sortBy "weight" site.Params.blog.list.sortOrder) -}} {{-
4-
range $pages }}
5-
{{/* {{ partial "question-cards.html" . }} */}}
6-
{{ partial "qna-card.html" . }}
7-
{{ with .Pages }}
8-
{{ range . }}
9-
{{ partial "qna-card.html" . }}
10-
{{ end }}
11-
{{ end }}
12-
{{ end -}}
4+
range $pages }} {{/* {{ partial "question-cards.html" . }} */}} {{ partial
5+
"qna-card.html" . }}
6+
{{ with .Pages }}
7+
{{ range . }}
8+
{{ partial "qna-card.html" . }}
9+
{{ end }}
10+
{{ end }}
11+
{{ end -}}
1312
</div>
1413

1514
<style>
16-
.blogs-wrapper {
15+
.question-list-wrapper {
16+
margin-top: 0px;
17+
margin-bottom: 40px;
1718
display: flex;
1819
flex-wrap: wrap;
1920
gap: 20px;
2021
padding: 0 18px;
22+
justify-content: center;
2123
}
2224
@media (max-width: 768px) {
23-
.blogs-wrapper {
25+
.question-list-wrapper {
2426
justify-content: center;
2527
gap: 20px;
2628
}
27-
}
29+
}
2830
</style>

0 commit comments

Comments
 (0)