generated from bisco/codex-bootstrap
merge: social promo refinements into wp
This commit is contained in:
@@ -47,6 +47,7 @@ test("provides usable contact actions", async ({ page }) => {
|
|||||||
"href",
|
"href",
|
||||||
"https://wa.me/393331234567",
|
"https://wa.me/393331234567",
|
||||||
);
|
);
|
||||||
|
await expect(page.getByText("Seguici sui social")).toBeVisible();
|
||||||
await expect(page.locator(".social-links a")).toHaveCount(2);
|
await expect(page.locator(".social-links a")).toHaveCount(2);
|
||||||
await expect(page.getByRole("link", { name: "Instagram" })).toHaveAttribute(
|
await expect(page.getByRole("link", { name: "Instagram" })).toHaveAttribute(
|
||||||
"href",
|
"href",
|
||||||
|
|||||||
@@ -189,13 +189,16 @@ $social_links = array_values(
|
|||||||
<p class="lead">Non serve esperienza: basta la curiosità di incontrare il teatro e il gruppo.</p>
|
<p class="lead">Non serve esperienza: basta la curiosità di incontrare il teatro e il gruppo.</p>
|
||||||
<p><strong>Dove</strong><br><?php echo esc_html( azionelab_mod( 'contact_address' ) ); ?></p>
|
<p><strong>Dove</strong><br><?php echo esc_html( azionelab_mod( 'contact_address' ) ); ?></p>
|
||||||
<?php if ( $social_links ) : ?>
|
<?php if ( $social_links ) : ?>
|
||||||
<div class="social-links">
|
<div class="social-promo">
|
||||||
<?php foreach ( $social_links as $social_link ) : ?>
|
<p class="social-promo-title">Seguici sui social</p>
|
||||||
<a href="<?php echo esc_url( $social_link['url'] ); ?>" rel="noopener noreferrer">
|
<div class="social-links">
|
||||||
<?php echo azionelab_social_icon( $social_link['icon'] ); ?>
|
<?php foreach ( $social_links as $social_link ) : ?>
|
||||||
<span><?php echo esc_html( $social_link['label'] ); ?></span>
|
<a href="<?php echo esc_url( $social_link['url'] ); ?>" rel="noopener noreferrer">
|
||||||
</a>
|
<?php echo azionelab_social_icon( $social_link['icon'] ); ?>
|
||||||
<?php endforeach; ?>
|
<span><?php echo esc_html( $social_link['label'] ); ?></span>
|
||||||
|
</a>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -185,9 +185,12 @@ blockquote { margin: 2rem 0 0; padding-left: 1.5rem; border-left: 3px solid var(
|
|||||||
.contact-actions { display: grid; gap: 0.8rem; }
|
.contact-actions { display: grid; gap: 0.8rem; }
|
||||||
.contact-action { display: grid; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 0.9rem; text-decoration: none; }
|
.contact-action { display: grid; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 0.9rem; text-decoration: none; }
|
||||||
.contact-action span { color: var(--color-sand); font-size: 0.78rem; text-transform: uppercase; }
|
.contact-action span { color: var(--color-sand); font-size: 0.78rem; text-transform: uppercase; }
|
||||||
.social-links { display: flex; margin-top: 1.25rem; flex-wrap: wrap; gap: 1rem; }
|
.social-promo { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 248, 239, 0.22); }
|
||||||
.social-links a { display: inline-flex; align-items: center; gap: 0.45rem; text-underline-offset: 0.25em; }
|
.social-promo-title { margin-bottom: 0.8rem; color: var(--color-sand); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
|
||||||
.social-icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
|
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
|
||||||
|
.social-links a { display: inline-flex; min-height: 2.85rem; padding: 0.72rem 0.95rem; border: 1px solid rgba(255, 248, 239, 0.28); border-radius: 0.5rem; align-items: center; gap: 0.55rem; background: rgba(255, 248, 239, 0.08); font-weight: 750; text-decoration: none; }
|
||||||
|
.social-links a:hover { border-color: rgba(255, 248, 239, 0.52); background: rgba(255, 248, 239, 0.14); }
|
||||||
|
.social-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; color: var(--color-primary-soft); }
|
||||||
.site-footer { padding-block: 2rem; color: #f7efe4; background: var(--color-dark-text); }
|
.site-footer { padding-block: 2rem; color: #f7efe4; background: var(--color-dark-text); }
|
||||||
.site-footer a { color: #fff8ef; }
|
.site-footer a { color: #fff8ef; }
|
||||||
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; font-size: 0.85rem; }
|
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; font-size: 0.85rem; }
|
||||||
|
|||||||
Reference in New Issue
Block a user