Chore: grid on features page
This commit is contained in:
parent
729ff7168a
commit
5ac4ec0419
8 changed files with 130 additions and 147 deletions
|
@ -1,24 +1,30 @@
|
|||
---
|
||||
interface SectionProps {
|
||||
interface Props {
|
||||
imgUrl: string;
|
||||
imgAlt: string;
|
||||
title: string;
|
||||
description: string;
|
||||
note: string;
|
||||
centered?: boolean;
|
||||
}
|
||||
const { imgUrl, imgAlt, title, description, note } = Astro.props;
|
||||
import '../styles/components/ImageSection.scss'
|
||||
const {
|
||||
imgUrl,
|
||||
imgAlt,
|
||||
title,
|
||||
description,
|
||||
note,
|
||||
centered = false,
|
||||
} = Astro.props;
|
||||
import "../styles/components/ImageSection.scss";
|
||||
---
|
||||
|
||||
<section class="ImageSection">
|
||||
<div class="content">
|
||||
<h1>{title}</h1>
|
||||
<div class="imgDiv">
|
||||
<img src={imgUrl} alt={imgAlt} />
|
||||
<p>{description}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p>{note}</p>
|
||||
</div>
|
||||
<section class:list={["ImageSection", { centered }]}>
|
||||
<h1>{title}</h1>
|
||||
<div class="imgDiv">
|
||||
<img src={imgUrl} alt={imgAlt} />
|
||||
<p>{description}</p>
|
||||
</div>
|
||||
<div>
|
||||
<p>{note}</p>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue