mirror of
https://github.com/tabler/tabler.git
synced 2026-08-05 19:03:18 +04:00
Fix Sponsor card layout on RTL preview pages (#2774)
This commit is contained in:
@@ -4,5 +4,5 @@ import HomepageContent from '@shared/components/HomepageContent.astro'
|
||||
---
|
||||
|
||||
<DefaultLayout title="RTL mode" pageHeader="RTL mode" pretitle="Overview" actions="buttons" pageMenu="home" pageLibs={['apexcharts', 'jsvectormap']} rtl>
|
||||
<HomepageContent />
|
||||
<HomepageContent rtl />
|
||||
</DefaultLayout>
|
||||
|
||||
@@ -20,6 +20,12 @@ import Sponsor from './cards/Sponsor.astro'
|
||||
import SocialTraffic from './cards/SocialTraffic.astro'
|
||||
import Tasks from './cards/Tasks.astro'
|
||||
import Invoices from './cards/Invoices.astro'
|
||||
|
||||
interface Props {
|
||||
rtl?: boolean
|
||||
}
|
||||
|
||||
const { rtl = false } = Astro.props
|
||||
---
|
||||
|
||||
<div class="row row-deck row-cards">
|
||||
@@ -100,7 +106,7 @@ import Invoices from './cards/Invoices.astro'
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<Sponsor />
|
||||
<Sponsor rtl={rtl} />
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-4">
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
---
|
||||
import Icon from '@ui/Icon.astro'
|
||||
import { site } from '@shared/lib/site'
|
||||
|
||||
interface Props {
|
||||
rtl?: boolean
|
||||
}
|
||||
|
||||
const { rtl = false } = Astro.props
|
||||
---
|
||||
|
||||
<a href={site.githubSponsorsUrl} class="card border-primary" target="_blank" rel="noopener" aria-label="Sponsor Tabler!" style="background: color-mix(in srgb, var(--tblr-primary) 4%, var(--tblr-bg-surface))">
|
||||
@@ -194,13 +200,13 @@ import { site } from '@shared/lib/site'
|
||||
opacity=".3"></path>
|
||||
</svg>
|
||||
<div class="card-body d-flex flex-column justify-content-center p-5">
|
||||
<div class="row">
|
||||
<div class="col-7 offset-5 text-primary">
|
||||
<div class="row justify-content-end" dir="ltr">
|
||||
<div class="col-7 text-primary">
|
||||
<div class="h1 text-uppercase">Help Tabler Grow and Thrive</div>
|
||||
<p class="h3 fw-normal">Sponsor Tabler and help us make a difference!</p>
|
||||
<div class="mt-4">
|
||||
<button class="btn w-100 pe-none" type="button">
|
||||
<Icon name="heart" type="filled" color="pink" />
|
||||
<button class="btn w-100 pe-none" type="button" dir="ltr">
|
||||
<Icon name="heart" type="filled" color="pink" class={rtl ? 'icon-end' : undefined} />
|
||||
Become a Sponsor
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user