-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96fceeb
commit 27db81f
Showing
3 changed files
with
63 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { FC } from 'react'; | ||
import cx from 'classnames'; | ||
|
||
import { STORIES } from '../../lib/consts'; | ||
|
||
export const StoriesBlock: FC = () => { | ||
return ( | ||
<div> | ||
{STORIES.map((story) => ( | ||
<div key={story.id} className={cx('story-block', `bg-${story.id}`, `text-${story.id}-2`)}> | ||
<div className="container py-4"> | ||
<div className="row position-relative pb-4"> | ||
<div className="col-3"> | ||
<img className="img-fluid" src={story.image.path} alt={story.image.alt} /> | ||
<div> | ||
<a className={`small link-${story.id}-2`} href={story.image.creditPath}> | ||
{story.image.credit} | ||
</a> | ||
</div> | ||
</div> | ||
<div className="col-9"> | ||
<p className="fs-5 story-title">Story</p> | ||
<h2 className={`text-${story.id}-2`}>{story.title}</h2> | ||
<p className="fs-5">{story.description}</p> | ||
</div> | ||
<span className="position-absolute text-end bottom-0 end-0 w-auto"> | ||
<a href={story.path} className={`link-${story.id}-2`}> | ||
En savoir plus → | ||
</a> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Head from 'next/head'; | ||
import { FC } from 'react'; | ||
import Layout from '../../components/Layout'; | ||
import { StoriesBlock } from '../../components/stories/StoriesBlocks'; | ||
|
||
const StoriesPage: FC = () => { | ||
return ( | ||
<Layout page="stories"> | ||
<Head> | ||
<title>Respadon | Stories</title> | ||
<meta name="description" content="Respadon | Stories" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
|
||
<div className="container"> | ||
<div className="row"> | ||
<StoriesBlock /> | ||
</div> | ||
</div> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default StoriesPage; |