102 lines
2.0 KiB
Plaintext
102 lines
2.0 KiB
Plaintext
---
|
|
import type { Partehartzea } from "models/Hasiera";
|
|
import ExternalSVG from "./ExternalSVG.astro";
|
|
|
|
interface Props {
|
|
partehartzea: Partehartzea;
|
|
}
|
|
|
|
const { partehartzea } = Astro.props;
|
|
|
|
const hasEstekak = partehartzea.estekak?.length > 0;
|
|
---
|
|
|
|
<li>
|
|
<div><ExternalSVG externalSVG={partehartzea.ikonoa} /></div>
|
|
|
|
<h3>{partehartzea.izenburua}</h3>
|
|
<p>{partehartzea.deskribapena}</p>
|
|
|
|
{
|
|
hasEstekak && (
|
|
<div class="estekak">
|
|
{partehartzea.estekak.map(({ url, label }) => (
|
|
<a href={url}>{label}</a>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
<a href={`mailto:${partehartzea.email}`}>{partehartzea.email}</a>
|
|
</li>
|
|
|
|
<style lang="scss">
|
|
@use "../../../style/mixins/displayFonts.scss";
|
|
@use "../../../style/tools/mediaQueries.scss";
|
|
|
|
li {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: var(--space-04-mobile);
|
|
|
|
@include mediaQueries.aboveTablet {
|
|
width: 30%;
|
|
padding: var(--space-04-desktop);
|
|
}
|
|
}
|
|
|
|
div {
|
|
color: var(--gorria);
|
|
margin-bottom: var(--space-03-mobile);
|
|
|
|
@include mediaQueries.aboveTablet {
|
|
margin-bottom: var(--space-03-desktop);
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
margin-bottom: var(--space-04-mobile);
|
|
text-align: center;
|
|
|
|
@include displayFonts.display4;
|
|
@include mediaQueries.aboveTablet {
|
|
margin-bottom: var(--space-05-desktop);
|
|
}
|
|
}
|
|
|
|
p {
|
|
text-align: center;
|
|
margin-bottom: var(--space-04-mobile);
|
|
|
|
@include mediaQueries.aboveTablet {
|
|
margin-bottom: var(--space-05-desktop);
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var(--marroia);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
@include displayFonts.display6;
|
|
}
|
|
|
|
.estekak {
|
|
margin-bottom: var(--space-04-mobile);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-02-mobile);
|
|
align-items: center;
|
|
|
|
@include mediaQueries.aboveTablet {
|
|
margin-bottom: var(--space-05-desktop);
|
|
gap: var(--space-03-desktop);
|
|
}
|
|
}
|
|
</style>
|