Fix alignment of button and spacing of sections

This commit is contained in:
JST5000
2023-04-07 16:53:44 -07:00
committed by Caleb Kniffen
parent 3a58221dcf
commit 4b870e5e8d
3 changed files with 45 additions and 22 deletions

File diff suppressed because one or more lines are too long

View File

@@ -102,9 +102,20 @@
}
.page-docs {
.h4::before {
margin-top: 0;
height: 0;
}
.row {
margin-right: 0;
margin-left: 0;
}
section {
margin-top: 64px;
margin-bottom: 64px;
margin-top: 128px;
margin-bottom: 128px;
margin-right: 8%;
}
@@ -128,17 +139,8 @@
width: 100%;
}
.row {
margin-right: 0;
margin-left: 0;
}
.col {
display: flex;
.btn-primary {
align-self: flex-end;
}
.flat-card-padding {
margin-bottom: 75px;
}
img {
@@ -149,3 +151,21 @@
}
}
.align-button-on-bottom {
.btn-primary {
position: absolute;
bottom: 0;
}
}
.quickstart-card {
padding: 32px;
.quickstart-image {
margin-left: -32px;
margin-right: -32px;
margin-bottom: -32px;
width: calc(100% + 64px);
}
}

View File

@@ -32,10 +32,10 @@
alt={{title}}
/>
<h5 class="row">{{ title }}</h5>
<p class="row faded-text">
<p class="row faded-text flat-card-padding">
{{ description }}
</p>
<div class="col">
<div class="col align-button-on-bottom">
{{ primaryButton(href, linkText, false) }}
</div>
</div>
@@ -288,14 +288,14 @@
<div class="mx-auto mb-10">
<h4>Getting Started with XRP Ledger</h4>
</div>
<div class="card-grid card-grid-2xN">
<div class="card-grid card-grid-2xN quickstart-card">
<div class="col">
<div class="card video-image">
<h5 class="mt-7"> Quickstart to XRP Ledger </h5>
<p class="mb-8 mt-4">
An introduction to fundamental aspects of the XRP Ledger.
</p>
<div class="dg-lg-block mb-5">
<div class="dg-lg-block mb-3">
<a
class="btn btn-primary btn-arrow get-started-button"
href="./tutorials/quickstart/"
@@ -307,7 +307,7 @@
src="/assets/img/backgrounds/docs-quick-start.svg"
alt="quick-start"
id="quick-start-img"
class="img-fluid"
class="quickstart-image"
/>
</div>
</div>
@@ -318,12 +318,15 @@
{{ videoCard(video.url, video.title, video.src) }}
{% endfor %}
</div>
<div class="align-button-on-bottom">
{{ primaryButton("https://www.youtube.com/playlist?list=PLJQ55Tj1hIVZtJ_JdTvSum2qMTsedWkNi", "Watch Full Series", true) }}
</div>
</div>
</div>
</section>
<section class="py-26 text-left">
<section class="text-left">
<h4 class="pb-4">Intermediate Learning Sources</h4>
<div class="card-grid card-grid-3xN">
{% for video in intermediateVideos %}
@@ -332,7 +335,7 @@
</div>
</section>
<section class="py-26 text-left">
<section class="text-left">
<div class="card-grid card-grid-2xN">
<div class="col d-flex align-items-center justify-content-center">
<img