mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Make cards links, and fix video-image bug
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -273,6 +273,28 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.float-up-on-hover {
|
||||||
|
transition: all 0.35s ease-out;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
-webkit-transform: translateY(-16px);
|
||||||
|
-moz-transform: translateY(-16px);
|
||||||
|
-ms-transform: translateY(-16px);
|
||||||
|
-o-transform: translateY(-16px);
|
||||||
|
transform: translateY(-16px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make the floating idempotent
|
||||||
|
.video-image {
|
||||||
|
&:hover {
|
||||||
|
-webkit-transform: none;
|
||||||
|
-moz-transform: none;
|
||||||
|
-ms-transform: none;
|
||||||
|
-o-transform: none;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.align-button-on-bottom {
|
.align-button-on-bottom {
|
||||||
|
|
||||||
|
|||||||
@@ -29,25 +29,25 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro flatCard(href, title, description, linkText, imgClass) %}
|
{% macro flatCard(href, title, description, linkText, imgClass) %}
|
||||||
<div class="card video-image flat-card">
|
<a href="{{href}}" class="card flat-card float-up-on-hover">
|
||||||
<img
|
<img
|
||||||
class="mb-2 {{imgClass}}"
|
class="mb-2 {{imgClass}}"
|
||||||
alt={{title}}
|
alt={{title}}
|
||||||
/>
|
/>
|
||||||
<h5 class="row">
|
<h5 class="row">
|
||||||
<a href="{{href}}" class="nav-link">{{ title }}</a>
|
<div class="nav-link">{{ title }}</div>
|
||||||
</h5>
|
</h5>
|
||||||
<p class="row faded-text flat-card-padding">
|
<p class="row faded-text flat-card-padding">
|
||||||
{{ description }}
|
{{ description }}
|
||||||
</p>
|
</p>
|
||||||
<div class="col align-button-on-bottom">
|
<div class="col align-button-on-bottom">
|
||||||
{{ primaryButton(href, linkText, false) }}
|
<div class="btn btn-primary btn-arrow-out" id="{{href}}-button">{{ linkText }}</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</a>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro videoCard(url, title, src)%}
|
{% macro videoCard(url, title, src)%}
|
||||||
<div class="col">
|
<div class="col float-up-on-hover">
|
||||||
<iframe id="video1" style="display:none;" src="{{url}}" title="{{title}}" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
<iframe id="video1" style="display:none;" src="{{url}}" title="{{title}}" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||||
<a href="{{url}}" id="playvideo" class="btn1" data-url={{url}}>
|
<a href="{{url}}" id="playvideo" class="btn1" data-url={{url}}>
|
||||||
<img
|
<img
|
||||||
@@ -55,9 +55,9 @@
|
|||||||
id={{title}}
|
id={{title}}
|
||||||
src={{src}}
|
src={{src}}
|
||||||
/>
|
/>
|
||||||
|
<h6 class="pt-3">{{ title }}</h6>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<h6 class="pt-3">{{ title }}</h6>
|
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@@ -278,25 +278,24 @@
|
|||||||
<h4 class="pb-4">Getting Started</h4>
|
<h4 class="pb-4">Getting Started</h4>
|
||||||
<div class="card-grid card-grid-2xN quickstart-card">
|
<div class="card-grid card-grid-2xN quickstart-card">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card video-image">
|
<a href="./xrpl-quickstart.html" class="card float-up-on-hover">
|
||||||
<h5 class="mt-7"> Quickstart to XRP Ledger </h5>
|
<h5 class="mt-7"> Quickstart to XRP Ledger </h5>
|
||||||
<p class="mb-8 mt-4">
|
<p class="mb-8 mt-4">
|
||||||
An introduction to fundamental aspects of the XRP Ledger.
|
An introduction to fundamental aspects of the XRP Ledger.
|
||||||
</p>
|
</p>
|
||||||
<div class="dg-lg-block mb-3">
|
<div class="dg-lg-block mb-3">
|
||||||
<a
|
<div
|
||||||
class="btn btn-primary btn-arrow get-started-button"
|
class="btn btn-primary btn-arrow get-started-button"
|
||||||
href="./xrpl-quickstart.html"
|
|
||||||
>
|
>
|
||||||
Get Started
|
Get Started
|
||||||
</a>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
alt="quick-start"
|
alt="quick-start"
|
||||||
id="quick-start-img"
|
id="quick-start-img"
|
||||||
class="quickstart-image"
|
class="quickstart-image"
|
||||||
/>
|
/>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card-grid card-grid-2xN video-grid">
|
<div class="card-grid card-grid-2xN video-grid">
|
||||||
|
|||||||
Reference in New Issue
Block a user