Neuaufbau: Astro 5, Anfrage statt Buchung, Kundenkarte, Design-Tokens, SEO/GEO, Security-Header
This commit is contained in:
1 parent
49afd192ef
commit
0aa72718a0
86 files changed
+9743
-1079
No files matched your search
@@ -0,0 +1,44 @@
|
||||
---
|
||||
import Icon from './Icon.astro';
|
||||
import { salon } from '../data/site';
|
||||
interface Props { variant?: 'chip' | 'block' }
|
||||
const { variant = 'chip' } = Astro.props;
|
||||
const g = salon.google;
|
||||
---
|
||||
{variant === 'chip' ? (
|
||||
<a class="rchip" href={g.url} rel="noopener">
|
||||
<span class="rchip__stars" aria-hidden="true">{[1,2,3,4,5].map(() => <Icon name="star" />)}</span>
|
||||
<span><strong>{g.rating}</strong> bei {g.count} Google-Bewertungen</span>
|
||||
</a>
|
||||
) : (
|
||||
<div class="rblock">
|
||||
<p class="rblock__num display" aria-hidden="true">{g.rating}</p>
|
||||
<div class="rblock__txt">
|
||||
<span class="rblock__stars" aria-hidden="true">{[1,2,3,4,5].map(() => <Icon name="star" />)}</span>
|
||||
<p class="rblock__sent">{g.count} Menschen haben uns auf Google bewertet, im Schnitt mit {g.rating} von 5 Sternen.</p>
|
||||
<p class="small leise">Stand {g.asOf}. Die einzelnen Bewertungen finden Sie bei Google.</p>
|
||||
<a class="more" href={g.url} rel="noopener"><span>Bewertungen auf Google lesen</span><Icon name="external" /></a>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<style>
|
||||
.rchip {
|
||||
display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.6rem;
|
||||
min-height: var(--tap);
|
||||
color: var(--c-anthrazit); text-decoration: none; font-size: var(--fs-small);
|
||||
}
|
||||
.rchip:hover { color: var(--c-petrol); }
|
||||
.rchip strong { font-weight: 700; }
|
||||
.rchip > span:last-child { text-decoration: underline; text-decoration-color: var(--c-silber); text-underline-offset: 0.25em; }
|
||||
.rchip__stars, .rblock__stars { display: inline-flex; gap: 2px; color: var(--c-petrol); }
|
||||
.rchip__stars :global(svg) { width: 1rem; height: 1rem; }
|
||||
.rblock { display: grid; gap: var(--s-5); align-items: end; }
|
||||
@media (min-width: 48rem) { .rblock { grid-template-columns: auto 1fr; gap: var(--s-7); } }
|
||||
.rblock__num {
|
||||
font-size: var(--fs-mega); line-height: 0.82; letter-spacing: -0.04em;
|
||||
color: var(--c-petrol);
|
||||
}
|
||||
.rblock__txt { max-width: 34rem; display: grid; gap: var(--s-3); justify-items: start; }
|
||||
.rblock__stars :global(svg) { width: 1.4rem; height: 1.4rem; }
|
||||
.rblock__sent { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; }
|
||||
</style>
|
||||
Reference in new issue
Block a user