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 ca659f42 authored by Hugues's avatar Hugues Committed by Christophe Chaudier
Browse files

:bug:(tagline) center texts and icons

parent 8a36b270
No related branches found
No related tags found
1 merge request!31Resolve "center tagline icon and textes"
import React from "react"
import { ContainerIconWrapper } from "../elements"
export const ContainerIcon = ({children}) => {
return <ContainerIconWrapper>{children}</ContainerIconWrapper>
}
export default ContainerIcon
import React from "react"
import Img from "gatsby-image"
import { useStaticQuery ,graphql } from "gatsby"
import { iconWrapper } from "../elements"
import { IconFreedomWrapper, TitleTaglineIconWrapper, TextTaglineIconWrapper } from "../elements"
export const IconFreedom = ({ fluid }) => {
......@@ -15,14 +15,16 @@ export const IconFreedom = ({ fluid }) => {
}
`)
return (
<iconWrapper>
<IconFreedomWrapper>
<Img fluid={fluid ? fluid : data.imageSharp.fluid} style={{
left: "40%",
margin: "auto auto auto auto",
width: "64px",
}}
/>
</iconWrapper>
</IconFreedomWrapper>
)
}
import React from "react"
import Img from "gatsby-image"
import { useStaticQuery ,graphql } from "gatsby"
import { iconWrapper } from "../elements"
import { IconGdprWrapper } from "../elements"
export const IconGdpr = ({ fluid }) => {
......@@ -17,13 +17,13 @@ export const IconGdpr = ({ fluid }) => {
`)
return (
<iconWrapper>
<IconGdprWrapper>
<Img fluid={fluid ? fluid : data.imageSharp.fluid} style={{
right: "-40%",
margin: "auto auto auto auto",
width: "64px",
}}
/>
</iconWrapper>
</IconGdprWrapper>
)
}
......
import React from "react"
import Img from "gatsby-image"
import { useStaticQuery ,graphql } from "gatsby"
import { iconWrapper } from "../elements"
import { IconSecuriteWrapper } from "../elements"
export const IconSecurite = ({ fluid }) => {
......@@ -17,13 +17,15 @@ export const IconSecurite = ({ fluid }) => {
`)
return (
<iconWrapper>
<div>
<IconSecuriteWrapper>
<Img fluid={fluid ? fluid : data.imageSharp.fluid} style={{
left: "40%",
margin: "auto auto auto auto",
width: "64px",
}}
/>
</iconWrapper>
</IconSecuriteWrapper>
</div>
)
}
......
export * from './Commons'
export * from './Container'
export * from './ContainerIcon'
export * from './TitleTagline'
export * from './TitleIcon'
export * from './IconSecurite'
......
......@@ -4,6 +4,7 @@ import { colors, media } from "../tokens";
export const ContainerWrapper = styled.div`
display: grid;
padding: 5rem 1rem 5rem 1rem;
gap: 0 2rem;
gap: 0 2rem;
margin: "auto auto auto auto",
`
;
import styled from "styled-components"
import { colors, media } from "../tokens";
export const ContainerIconWrapper = styled.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
grid-auto-rows: minmax(100px, auto);
line-height: 2;
text-align: center;
font-size: 1rem;
background-color: ${colors.green};
color: ${colors.primary};
padding-top: 30px;
padding-bottom: 30px;
`
;
import styled from "styled-components"
import { colors, media } from "../tokens"
export const iconWrapper = styled.div`
export const IconSecuriteWrapper = styled.div`
grid-column: auto auto auto;
grid-row: 2 / 3;
overflow: hidden;
position: relative;
`
export const IconFreedomWrapper = styled.div`
grid-column: 3 / span 10;
grid-row: 2 / 4;
overflow: hidden;
position: relative;
@media ${media.medium} {
position: relative;
grid-column: 2 / span 6;
}
}
`
export const IconGdprWrapper = styled.div`
grid-column: 3 / span 10;
grid-row: 2 / 4;
overflow: hidden;
......
......@@ -2,16 +2,9 @@ import styled from "styled-components"
import { colors, media } from "../tokens";
export const TitleIconWrapper = styled.div`
display: grid;
grid-template-columns: auto auto auto auto;
line-height: 2;
text-align: center;
font-size: 1rem;
background-color: ${colors.green};
color: ${colors.primary};
padding-top: 30px;
padding-bottom: 30px;
padding-right: 30px;
padding-left: 30px;
display: flex;
align-items: flex-start;
`
// grid-template-columns: auto auto auto auto;
export * from './ContainerElements';
export * from './ContainerIconElements';
export * from './TitleTaglineElements';
export * from './ImageElements';
export * from './TitleIconElements';
......
......@@ -6,7 +6,7 @@ import Wrapper from "../components/Wrapper"
import SEO from "../components/SEO"
import RelatedPosts from "../components/RelatedPosts"
import { Text } from "../components/Commons"
import { Container, TitleTagline, TitleIcon } from "../components"
import { Container, TitleTagline, TitleIcon, ContainerIcon } from "../components"
import { iconWrapper, TitleTaglineElements } from "../elements"
import { IconSecurite } from "../components"
import { IconFreedom } from "../components"
......@@ -50,25 +50,36 @@ const posts = data.posts.edges
à protéger leurs codes sources de lespionnage industriel
</TitleTagline>
</Container>
<ContainerIcon>
<TitleIcon>
<div>
<IconSecurite />
<h2>Sécurité</h2>
<p>Vos données sont en lieu sûr et sauvegardées toutes les nuits</p>
</div>
</TitleIcon>
<TitleIcon>
<div>
<IconFreedom />
<h2>Souverain</h2>
<p>Nous sommes hébergés en France et conformes au RGPD</p>
</div>
</TitleIcon>
<div>
<TitleIcon>
<div >
<IconGdpr />
<h2>Libre</h2>
<p>Notre solution s'appuie sur des logiciels libres et nos conditions générales sont éthiques.</p>
</div>
</TitleIcon>
</ContainerIcon>
<Wrapper>
<RelatedPosts posts={posts} />
</Wrapper>
......
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