add hover text
This commit is contained in:
@@ -179,6 +179,7 @@ plore all the products that are driving this transformation.
|
|||||||
image_src="/images/3node.png",
|
image_src="/images/3node.png",
|
||||||
image_alt="3node",
|
image_alt="3node",
|
||||||
title="3Node",
|
title="3Node",
|
||||||
|
tooltip="The backbone of storage and infrastructure, providing compute and data resources.",
|
||||||
card_link="Dashboard"
|
card_link="Dashboard"
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
@@ -186,6 +187,7 @@ plore all the products that are driving this transformation.
|
|||||||
image_src="/images/mycelium.png",
|
image_src="/images/mycelium.png",
|
||||||
image_alt="mycelium",
|
image_alt="mycelium",
|
||||||
title="MYCELIUM",
|
title="MYCELIUM",
|
||||||
|
tooltip="End-to-end encrypted overlay network, always looking for the shortest possible path between participants ",
|
||||||
card_link="Dashboard"
|
card_link="Dashboard"
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
@@ -193,6 +195,7 @@ plore all the products that are driving this transformation.
|
|||||||
image_src="/images/aibox.png",
|
image_src="/images/aibox.png",
|
||||||
image_alt="aibox",
|
image_alt="aibox",
|
||||||
title="AIBOX",
|
title="AIBOX",
|
||||||
|
tooltip="A self-hosted AI compute solution powered by ThreeFold. ",
|
||||||
card_link="Dashboard"
|
card_link="Dashboard"
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
@@ -200,6 +203,7 @@ plore all the products that are driving this transformation.
|
|||||||
image_src="/images/3phone.png",
|
image_src="/images/3phone.png",
|
||||||
image_alt="3phone",
|
image_alt="3phone",
|
||||||
title="3PHONE",
|
title="3PHONE",
|
||||||
|
tooltip="OwnPhone is the first secure device in the 3Phone family designed to work seamlessly with the ThreeFold Grid.",
|
||||||
card_link="Dashboard"
|
card_link="Dashboard"
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
@@ -207,6 +211,7 @@ plore all the products that are driving this transformation.
|
|||||||
image_src="/images/3router.png",
|
image_src="/images/3router.png",
|
||||||
image_alt="ThreeFold Cloud",
|
image_alt="ThreeFold Cloud",
|
||||||
title="3ROUTER",
|
title="3ROUTER",
|
||||||
|
tooltip="Smart routers ensure shortest-path connections between nodes and phones with end-to-end encryption.",
|
||||||
card_link="Dashboard"
|
card_link="Dashboard"
|
||||||
) }}
|
) }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,15 +2,21 @@
|
|||||||
{% set image_alt = image_alt | default(value="") %}
|
{% set image_alt = image_alt | default(value="") %}
|
||||||
{% set title = title | default(value="") %}
|
{% set title = title | default(value="") %}
|
||||||
{% set card_link = card_link | default(value="") %}
|
{% set card_link = card_link | default(value="") %}
|
||||||
|
{% set tooltip = tooltip | default(value="") %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a href="{{ card_link }}" class="flex-1 mx-2 mb-8" target="_blank">
|
<a href="{{ card_link }}" class="flex-1 mx-2 mb-8" target="_blank">
|
||||||
|
{% if tooltip %}
|
||||||
|
<div class="tooltip">
|
||||||
|
<span class="tooltiptext">{{ tooltip }}</span>
|
||||||
|
{% endif %}
|
||||||
<div class="fade-in-box flex flex-col p-6 rounded-2xl bg-white/5">
|
<div class="fade-in-box flex flex-col p-6 rounded-2xl bg-white/5">
|
||||||
<img class="fade-in blinking-effect relative mx-auto mb-4" width="60%" src="{{ image_src }}" alt="{{ image_alt }}">
|
<img class="fade-in blinking-effect relative mx-auto mb-4" width="60%" src="{{ image_src }}" alt="{{ image_alt }}">
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex justify-center my-4 items-center gap-x-3 lg:text-xl text-lg font-semibold text-white">
|
<div class="flex justify-center my-4 items-center gap-x-3 lg:text-xl text-lg font-semibold text-white">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</div>
|
</div>
|
||||||
@@ -44,4 +50,52 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tooltip container */
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tooltip text */
|
||||||
|
.tooltip .tooltiptext {
|
||||||
|
font-size: 12px;
|
||||||
|
visibility: hidden;
|
||||||
|
background-color: rgb(26 26 26 / 70%);
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
/* Position the tooltip text - see examples below! */
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
bottom: 0px;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
right: 0px;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Show the tooltip text when you mouse over the tooltip container */
|
||||||
|
.tooltip:hover .tooltiptext {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.tooltip .tooltiptext {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
bottom: -7px !important;
|
||||||
|
right: 0px !important;
|
||||||
|
top: 0px !important;
|
||||||
|
left: 0px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user