Skip to content

Commit f8a4fa2

Browse files
committed
[training] Improve page design for desktop and mobile
1 parent 458f7c5 commit f8a4fa2

File tree

2 files changed

+60
-24
lines changed

2 files changed

+60
-24
lines changed

assets/scss/_styles_project.scss

+35-4
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,42 @@ details {
339339

340340
.ot-training {
341341
@extend .td-no-left-sidebar;
342+
$card-padding: 2rem;
342343

343-
.otca img {
344-
border-style: none !important;
345-
max-width: 244px;
346-
margin: auto;
344+
.badge--otca {
345+
margin-top: map-get($spacers, 4) !important;
346+
img {
347+
border-style: none !important;
348+
display: initial;
349+
max-width: 244px;
350+
}
351+
@include media-breakpoint-up(md) {
352+
padding-left: $card-padding;
353+
}
354+
355+
@include media-breakpoint-down(md) {
356+
text-align: center;
357+
}
358+
}
359+
360+
.card--course-wrapper {
361+
@include media-breakpoint-up(md) {
362+
padding-left: $card-padding;
363+
}
364+
}
365+
366+
.card--course {
367+
margin-top: map-get($spacers, 5) !important;
368+
margin-bottom: map-get($spacers, 5) !important;
369+
370+
@include media-breakpoint-down(md) {
371+
margin-left: auto !important;
372+
margin-right: auto !important;
373+
}
374+
375+
img {
376+
padding-bottom: 2.6rem;
377+
}
347378
}
348379
}
349380

content/en/training/index.md

+25-20
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Certified Associate (OTCA), available from [Cloud Native Certifications][]:
2222

2323
<!-- prettier-ignore -->
2424
[![OTCA badge]][OTCA certification]
25-
{.otca .hk-no-external-icon .mt-4}
25+
{.badge--otca .card-and-img-position .hk-no-external-icon}
2626

2727
[Cloud Native Certifications]: https://www.cncf.io/training/certification/
2828
[OTCA badge]: lft-badge-opentelemetry-associate2.svg
@@ -31,26 +31,31 @@ Certified Associate (OTCA), available from [Cloud Native Certifications][]:
3131
## Courses
3232

3333
A **FREE** course available from [Cloud Native Training Courses for
34-
OpenTelemetry][CNTCOT] offered by the Linux Foundation:
34+
OpenTelemetry][CNTCOT] and offered by the Linux Foundation:
3535

36-
<div class="card p-1 m-auto mt-5 mb-5" style="width: 20rem">
37-
<img src="LFS148-Course-Badge-300x300.avif"
38-
class="img-initial pt-3 pb-3 w-75 m-auto"
39-
alt="LFS148 course badge">
40-
<div class="card-body ps-4 pe-4 bg-light-subtle">
41-
<div class="h5 card-title">Getting Started with OpenTelemetry</div>
42-
<p class="card-text">
43-
A course designed for software developers, DevOps engineers, site reliability engineers (SREs), and anyone looking to implement telemetry solutions across apps and environments.
44-
</p>
45-
<p class="card-text text-body-secondary small">
46-
Online, self-paced, 8-10 hrs,
47-
<a href="{{% param LFS148 %}}">learn more</a>.
48-
</p>
49-
<p class="text-center m-0">
50-
<a href="{{% param LFS148 %}}" target="_blank" rel="noopener" class="btn btn-primary ">
51-
Register
52-
</a>
53-
</p>
36+
<div class="card--course-wrapper">
37+
<div class="card card--course" style="width: 20rem">
38+
<img src="LFS148-Course-Badge-300x300.avif"
39+
class="img-initial pt-3 w-75 m-auto"
40+
alt="LFS148 course badge">
41+
<div class="card-body ps-4 pe-4 bg-light-subtle">
42+
<div class="h4 card-title pt-2 pb-2">
43+
<span class="badge text-bg-secondary float-end">FREE</span>
44+
Getting Started with OpenTelemetry
45+
</div>
46+
<p class="card-text">
47+
A course designed for software developers, DevOps engineers, site reliability engineers (SREs), and anyone looking to implement telemetry solutions across apps and environments.
48+
</p>
49+
<p class="card-text text-body-secondary small">
50+
Online, self-paced, 8-10 hrs,
51+
<a href="{{% param LFS148 %}}">learn more</a>.
52+
</p>
53+
<p class="text-center m-0 pt-1 pb-2">
54+
<a href="{{% param LFS148 %}}" target="_blank" rel="noopener" class="btn btn-primary">
55+
Register
56+
</a>
57+
</p>
58+
</div>
5459
</div>
5560
</div>
5661

0 commit comments

Comments
 (0)