Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
feat(design): conformite marque de l etat
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Aug 12, 2021
1 parent f2c3822 commit 7916064
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 51 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/common/Logo/Logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import PropTypes from "prop-types";
import React from "react";
import { Box, Flex, Text } from "rebass";

import { Marianne } from "./Marianne";
import LogoEtat from "../LogoEtat";
import { logoStyle, logoTextStyle } from "./style";

const Logo = (props) => {
const { hasTitle, title } = props;

return (
<Flex>
<Box sx={logoStyle}>
<Marianne />
<Box sx={logoStyle} mr="6">
<LogoEtat />
</Box>
{hasTitle && (
<Box>
Expand Down
47 changes: 0 additions & 47 deletions src/components/common/Logo/Marianne.js

This file was deleted.

1 change: 1 addition & 0 deletions src/components/common/Logo/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const logoTextStyle = {
fontWeight: 500,
lineHeight: "46px",
ml: 3,
mt: 2,
"@media screen and (max-width: 700px)": {
fontSize: 3,
ml: 5,
Expand Down
13 changes: 13 additions & 0 deletions src/components/common/LogoEtat/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";

function LogoEtat(props) {
return (
<img
src="/Ministere_des_Solidarites_et_de_la_Sante.png"
alt="Ministère des Solidarités et de la Santé"
{...props}
/>
);
}

export default LogoEtat;
2 changes: 1 addition & 1 deletion src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function App({ Component, pageProps }) {
}
`}</style>
</Head>
{router.pathname !== "/" && <Header />}
<Header />
<Component {...pageProps} />
<Footer landing />
</ThemeProvider>
Expand Down

0 comments on commit 7916064

Please sign in to comment.