Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 8d403911 authored by HGouttebroze's avatar HGouttebroze Committed by Christophe Chaudier
Browse files

reverse images and text block position on features section

parent 11c8ede6
No related branches found
No related tags found
1 merge request!22Resolve "features like componentkit.org"
...@@ -46,23 +46,22 @@ const FeatureList = [ ...@@ -46,23 +46,22 @@ const FeatureList = [
function Feature({Svg, title, description}) { function Feature({Svg, title, description}) {
return ( return (
<div className={clsx("hero container text--center padding-horiz--md")}> <div className="sectionsReverse row">
<div className="row"> <div className="col col--5 text--center">
<div className={"col col--5"}> <Svg className={styles.svg} alt={title} />
<Svg className={styles.svg} alt={title} />
</div>
<div className={"col col--5"}>
<h3>{title}</h3>
<p>{description}</p>
</div>
</div> </div>
<div className="col col--5">
<h3>{title}</h3>
<p>{description}</p>
</div>
</div> </div>
); );
} }
export default function HomepageFeatures() { export default function HomepageFeatures() {
return ( return (
<section className="sections" id="features"> <section className="sections container" id="features">
<h2 className={clsx("text--center text--uppercase", styles.title)}>Fonctionnalités</h2> <h2 className={clsx("text--center text--uppercase", styles.title)}>Fonctionnalités</h2>
<div> <div>
{FeatureList.map((props, idx) => ( {FeatureList.map((props, idx) => (
......
...@@ -2,5 +2,10 @@ ...@@ -2,5 +2,10 @@
.svg { .svg {
height: 175px; height: 175px;
width: 175px; width: 175px;
}
.title {
font-weight: bold;
padding-bottom: 40px;
} }
...@@ -49,14 +49,12 @@ function Promise({Svg, title, description}) { ...@@ -49,14 +49,12 @@ function Promise({Svg, title, description}) {
export default function HomepagePromises() { export default function HomepagePromises() {
return ( return (
<section className="sections"> <section className="section-promises">
<div className="container"> <div className="row">
<div className="row"> {PromiseList.map((props, idx) => (
{PromiseList.map((props, idx) => ( <Promise key={idx} {...props} />
<Promise key={idx} {...props} /> ))}
))} </div>
</div>
</div>
</section> </section>
); );
} }
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
--ifm-button-color: var(--ifm-color-primary); --ifm-button-color: var(--ifm-color-primary);
--ifm-code-font-size: 95%; --ifm-code-font-size: 95%;
--ifm-font-family-base: "Comfortaa", cursive; --ifm-font-family-base: "Comfortaa", cursive;
--ifm-font-family: "Montserrat", sans-serif; --ifm-font-family: "Montserrat", sans-serif;
--ifm-navbar-shadow: none; --ifm-container-width: 900px;
} }
.docusaurus-highlight-code-line { .docusaurus-highlight-code-line {
...@@ -84,9 +84,25 @@ header { ...@@ -84,9 +84,25 @@ header {
} }
/************ main elements style***********/ /************ main elements style***********/
.section-promises {
padding: 4rem 0;
width: 100%;
}
.sections { .sections {
padding: 4rem 0;
width: var(--ifm-container-width);
}
.sectionsReverse {
margin: 0 16px 0 16px;
padding: 4rem 0; padding: 4rem 0;
width: 100%; width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.sectionsReverse:nth-of-type(odd) {
flex-direction: row-reverse;
} }
/************ footer style ***********/ /************ footer style ***********/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment