Skip to content

Commit 8ef628e

Browse files
committed
[AV-77311] Changing direction and removing collapse.js and its entry from footer-scripts.hbs
Created new handlebars layouts for the capella landing page to change spacing and other settings without upsetting other pages. Adding a lot more CSS to landing-page.css and adding comments to explain what the classes are doing.
1 parent 5cea90d commit 8ef628e

File tree

5 files changed

+116
-72
lines changed

5 files changed

+116
-72
lines changed

src/css/landing-page.css

Lines changed: 100 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -256,20 +256,95 @@
256256
box-shadow: 0 0 15px -5px #ccc;
257257
}
258258

259-
/* CSS for card-style landing page */
259+
/* CSS for redesigned Capella Landing Page */
260+
261+
/* Adjusting spacing gutters around the content */
262+
@media screen and (min-width: 769px) {
263+
main.capella-article {
264+
padding-right: 1.5rem;
265+
padding-left: 1.5rem;
266+
margin: 0 auto;
267+
max-width: clamp(55em, 60%, var(--width-page-area));
268+
}
269+
}
270+
271+
/* CSS for top section: H1, H2, and Capella Stars image */
272+
.doc.landing-page-capella .top-row {
273+
display: flex;
274+
flex-direction: row;
275+
padding: 1rem;
276+
margin-bottom: 2rem;
277+
margin-top: -1rem;
278+
}
279+
280+
.doc.landing-page-capella .top-row > .positioned-image {
281+
flex-direction: row;
282+
width: 35%;
283+
min-width: 300px;
284+
height: auto;
285+
position: relative;
286+
margin-top: -2.5rem; /* Adjust to position image right below the div */
287+
margin-left: 1rem; /* Adjust to position image to the right of the div */
288+
}
289+
290+
.doc.landing-page-capella .top-row > .top-row-text-container {
291+
flex-direction: column;
292+
padding-right: 1rem;
293+
position: relative;
294+
}
295+
296+
.doc.landing-page-capella .top-row > .top-row-text-container > h1 {
297+
font-weight: 600;
298+
margin-top: 1rem;
299+
}
300+
301+
/* Adjusted CSS for Tabbed "Ten Minutes" Content */
302+
.doc.landing-page-capella .tabs {
303+
margin: 2rem 0 2rem 0;
304+
width: 80%;
305+
}
306+
307+
.doc.landing-page-capella .tabs .tablist > ul li {
308+
align-content: space-around;
309+
justify-content: space-between;
310+
flex-wrap: wrap;
311+
margin-right: 1rem;
312+
}
313+
314+
.doc.landing-page-capella .tablist.ulist {
315+
display: flex;
316+
justify-content: center;
317+
}
318+
319+
.doc.landing-page-capella .tabpanel {
320+
display: flex;
321+
padding: 2em 1.25em;
322+
}
323+
324+
.doc.landing-page-capella .tabpanel > .text-tabs-container {
325+
flex-direction: column;
326+
padding: 2rem 4rem 2rem 1rem;
327+
width: 50%;
328+
}
329+
330+
.doc.landing-page-capella .tabpanel > .text-tabs-container > .paragraph > p > a {
331+
font-weight: var(--weight-semibold);
332+
}
260333

261-
.centered > h2 {
334+
/* CSS for How Do You Want To Start Building Today? section */
335+
.doc.landing-page-capella .centered > h2 {
262336
text-align: center;
337+
margin-top: 4rem;
263338
}
264339

265-
.card-container {
340+
.doc.landing-page-capella .card-container {
266341
display: flex;
267342
flex-wrap: wrap;
268-
width: 80%;
343+
width: 100%;
269344
margin: 20px auto;
270345
}
271346

272-
.card-box {
347+
.doc.landing-page-capella .card-box {
273348
width: 30%;
274349
margin: 1.66%;
275350
padding: 2rem;
@@ -279,60 +354,43 @@
279354
border-radius: 8.8px;
280355
}
281356

282-
.card-box > .fa-regular {
357+
.doc.landing-page-capella .card-box:hover {
358+
transition: box-shadow 0.3s ease-in-out;
359+
box-shadow: 5px 10px 29.48px 0 rgba(0, 0, 0, 0.4);
360+
}
361+
362+
.doc.landing-page-capella .card-box > .fa-regular {
283363
color: var(--color-brand-red);
284364
}
285365

286-
.card-box > h3 {
366+
.doc.landing-page-capella .card-box > h3 {
287367
margin-block-start: 0;
288368
padding-left: 0;
289369
text-align: center;
290370
}
291371

292-
.card-box > div.ulist > ul li {
372+
.doc.landing-page-capella .card-box > p {
373+
margin-top: 1rem;
374+
}
375+
376+
.doc.landing-page-capella .card-box > div.ulist > ul li {
293377
list-style-type: disc;
294378
color: var(--color-link);
295379
font-weight: var(--weight-semibold);
296380
}
297381

298-
.card-box > div.ulist > ul li:hover {
382+
.doc.landing-page-capella .card-box > div.ulist > ul li:hover {
299383
text-decoration: underline;
300384
}
301385

302-
.ten-minutes-container {
303-
display: flex;
304-
}
305-
306-
.ten-minutes-container > .collapsible-section {
307-
flex: 1;
308-
}
309-
310-
.ten-minutes-container > .collapsible-section > .collapsible {
311-
border: 1px solid #ccc;
312-
padding: 10px;
313-
margin: 5px;
314-
cursor: pointer;
315-
}
316-
317-
.ten-minutes-container > .collapsible-section > .collapsible h3 {
318-
margin: 0;
319-
}
320-
321-
.ten-minutes-container > .collapsible-section > .collapsible .content {
322-
display: none;
323-
margin-top: 10px;
324-
}
325-
326-
.image-section {
327-
flex: 1;
328-
display: flex;
329-
justify-content: center;
330-
align-items: center;
331-
}
332-
333-
.image-section img {
334-
max-width: 100%;
386+
.doc.landing-page-capella .ending-image {
387+
width: 100%; /* Adjust as needed */
335388
height: auto;
389+
display: block;
390+
margin: 0 auto;
391+
position: relative;
392+
top: 150px; /* Adjust this value to control the amount of overlap */
393+
z-index: 1;
336394
}
337395

338396
/* CSS for nav filter */

src/helpers/collapse.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/layouts/landing-page-capella.hbs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{{> head-first}}
5+
<title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title>
6+
{{> head-last}}
7+
</head>
8+
<body class="landing-page">
9+
{{> header}}
10+
{{> body-landing-page-capella}}
11+
{{> footer}}
12+
</body>
13+
</html>

src/partials/body-landing-page-capella.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
{{/if}}
1111
{{/with}}
1212
{{/if}}
13-
<main class="article" data-ceiling="topbar">
14-
<article class="doc landing-page-doc">
13+
<main class="capella-article" data-ceiling="topbar">
14+
<article class="doc landing-page-capella">
1515
{{{page.contents}}}
1616
</article>
1717
</main>
18-
</div>
18+
</div>

src/partials/footer-scripts.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,3 @@ MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
4949
{{#if (eq env.SHOW_FEEDBACK_BUTTON 'true')}}
5050
<script async id="feedback-script" src="{{{uiRootPath}}}/js/vendor/feedback.js?v=1" data-collector-id="{{#if env.JIRA_COLLECTOR_ID}}{{env.JIRA_COLLECTOR_ID}}{{else}}709818cb{{/if}}"></script>
5151
{{/if}}
52-
{{#if (eq page.layout 'landing-page-capella')}}
53-
<script async id="collapsible" src="{{{uiRootPath}}}/js/collapse.js"></script>
54-
{{/if}}

0 commit comments

Comments
 (0)