Widget
Card
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<!-- Widget code for a single card --> | <!-- Widget code for a single card --> | ||
<div style="width: 361px; min-height: 183px; padding: 24px; background: <!--{$cardColor|default:'#F3F6F9'}-->; border-radius: 6px; display: flex; flex-direction: column; align-items: <!--{$ | <div style="width: 361px; min-height: 183px; padding: 24px; background: <!--{$cardColor|default:'#F3F6F9'}-->; border-radius: 6px; display: flex; flex-direction: column; align-items: <!--{$iconCenter|default:'flex-start'}-->; gap: 10px; position: relative;"> | ||
<!-- | <!-- Conditional div for the image icon if top-center variable is set --> | ||
<!--{$ | <!--{$iconCenterTop|if_set:'<div style="width: 100%; text-align: center;"><img src="<!--{$imageIcon|default:'default-icon.png'}-->" alt="Icon" style="width: <!--{$iconSize|default:'50px'}-->; height: auto; margin-bottom: 10px;"></div>'}--> | ||
<!-- Regular positioning for image icon if variable not set --> | |||
<!--{$iconCenterTop|if_not_set:'<div style="position: absolute; top: 24px; left: 24px;"><img src="<!--{$imageIcon|default:'default-icon.png'}-->" alt="Icon" style="width: <!--{$iconSize|default:'50px'}-->; height: auto;"></div>'}--> | |||
<!-- Container for heading and subheading --> | |||
<!-- | <div style="flex-direction: column; justify-content: center; align-items: <!--{$iconCenter|default:'flex-start'}-->; gap: 4px; display: flex;"> | ||
<div style=" | |||
<div style="color: #44546F; font-size: 14px; font-weight: 400; word-wrap: break-word;"><!--{$heading|default:'Training'}--></div> | <div style="color: #44546F; font-size: 14px; font-weight: 400; word-wrap: break-word;"><!--{$heading|default:'Training'}--></div> | ||
<div style="color: #112B3C; font-size: 20px; font-weight: 700; word-wrap: break-word;"><!--{$subheading|default:'Learn by doing'}--></div> | <div style="color: #112B3C; font-size: 20px; font-weight: 700; word-wrap: break-word;"><!--{$subheading|default:'Learn by doing'}--></div> | ||
</div> | </div> | ||
<!-- Description text | <!-- Description text --> | ||
<div style="width: 313px; height: 50px; color: black; font-size: 14px; font-weight: 300; word-wrap: break-word;"><!--{$text|default:'At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'}--></div> | <div style="width: 313px; height: 50px; color: black; font-size: 14px; font-weight: 300; word-wrap: break-word;"><!--{$text|default:'At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'}--></div> | ||
<!-- Link and arrow at the bottom --> | <!-- Link and arrow at the bottom --> | ||
Line 18: | Line 16: | ||
<a href="<!--{$link|default:'#'}-->" style="display: inline-flex; align-items: center;"> | <a href="<!--{$link|default:'#'}-->" style="display: inline-flex; align-items: center;"> | ||
<div style="color: #1A50AD; font-size: 14px; font-weight: 600; word-wrap: break-word; margin-right: 10px;"><!--{$linktext|default:'Take Training'}--></div> | <div style="color: #1A50AD; font-size: 14px; font-weight: 600; word-wrap: break-word; margin-right: 10px;"><!--{$linktext|default:'Take Training'}--></div> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10" fill="none"> | <svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10" fill="none"> | ||
<path d="M1 5H13M13 5L9.57143 1.57143M13 5L9.57143 8.42857" stroke="#1A50AD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | <path d="M1 5H13M13 5L9.57143 1.57143M13 5L9.57143 8.42857" stroke="#1A50AD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> |
Revision as of 22:33, 10 November 2023
" alt="Icon" style="width: ; height: auto; margin-bottom: 10px;">
'}--> " alt="Icon" style="width: ; height: auto;">'}-->
<a href="" style="display: inline-flex; align-items: center;">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10" fill="none"> <path d="M1 5H13M13 5L9.57143 1.57143M13 5L9.57143 8.42857" stroke="#1A50AD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg> </a>
This page was edited more than 11 months ago on 02/10/2024. What links here