Leuchtturm React hinzugefügt
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
function Reiseziel({ziel}){
|
||||
return (
|
||||
<>
|
||||
{ziel.content.map((section, index) => { return (
|
||||
<section key={index}>
|
||||
<div className="content-text">
|
||||
<h2>{section.heading}</h2>
|
||||
<p>{section.text}</p>
|
||||
</div>
|
||||
<div className={"content-img " + section.imgAlign}><img src={"../src/assets/" + section.imgSrc} alt="Leuchtturm"/></div>
|
||||
</section>);
|
||||
})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Reiseziel;
|
||||
Reference in New Issue
Block a user