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

feat(ui): misc UI updates #74

Merged
merged 1 commit into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/components/presentation.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Box, Grid, Theme } from "@material-ui/core";
import Typography from "@material-ui/core/Typography";
import { makeStyles } from "@material-ui/styles";
import { graphql, StaticQuery } from "gatsby";
import Img from "gatsby-image";
import React, { FC } from "react";

import { presentationData } from "../display-data/presentation-data";
import { makeStyles } from "@material-ui/styles";

export const imageQuery = graphql`
query {
Expand All @@ -20,6 +20,12 @@ export const imageQuery = graphql`
`;

const useStyles = makeStyles((theme: Theme) => ({
icon: {
"&>svg": {
height: "auto",
width: theme.spacing(6),
},
},
root: {
width: "100%",
},
Expand All @@ -33,11 +39,11 @@ const Presentation: FC = () => {
render={(data) => (
<Grid container spacing={1} alignItems="center" justify="center">
<Grid item md={6}>
<Grid container spacing={6} justify="center">
<Grid container spacing={4} justify="center">
{presentationData.map((presentationItem) => (
<Grid item md={6} key={presentationItem.title}>
<Typography variant="h6" color="textPrimary">
<Box>{presentationItem.logo}</Box>
<Typography variant="h5" color="textPrimary">
<Box className={classes.icon}>{presentationItem.logo}</Box>
<Box>{presentationItem.title}</Box>
</Typography>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion src/display-data/presentation-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const presentationData = [
},
{
logo: <SearchIcon />,
title: "Mener un audit",
title: "Mener une opération d'audit",
},
{
logo: <FileCopyIcon />,
Expand Down
8 changes: 7 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const useStyles = makeStyles((theme: Theme) => ({
headerButtons: {
marginTop: theme.spacing(4),
},
downloadButton: {
fontWeight: "bold",
},
}));

const getDownloadLink = (): string => {
Expand Down Expand Up @@ -65,6 +68,7 @@ const IndexPage: FC = () => {
color="primary"
onClick={onDownloadClick}
startIcon={<GetAppIcon />}
className={classes.downloadButton}
>
Télécharger
</Button>
Expand Down Expand Up @@ -114,7 +118,9 @@ const IndexPage: FC = () => {
Ils parlent de nous
</Typography>
</Box>
<HomepageTweets />
<Box pb={2}>
<HomepageTweets />
</Box>
<Grid container justify="center">
<Grid item>
<Button
Expand Down
14 changes: 14 additions & 0 deletions src/pages/qui-sommes-nous.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import TimelineElement from "../components/timeline-element";
import { currentMembers, oldMembers } from "../display-data/team-data";
import { timelineElements } from "../display-data/timeline-data";
import Layout from "../layout";
import TwitterIcon from "@material-ui/icons/Twitter";
import Button from "@material-ui/core/Button";

const useStyles = makeStyles(() =>
createStyles({
Expand Down Expand Up @@ -39,6 +41,18 @@ const Downloads: FC = () => {
Product Manager, etc) pour développer un outil avec les méthodes
agiles en co-construction permanente avec ses utilisateur·trice·s.
</Typography>
<Box p={2}>
<Button
size="small"
startIcon={<TwitterIcon />}
target="_blank"
rel="noopener"
href="https://twitter.com/archifiltre"
color="primary"
>
Nous suivre sur Twitter
</Button>
</Box>
</Box>
<Box p={3} textAlign="center">
<Typography variant="h5" color="textPrimary">
Expand Down
1 change: 1 addition & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const makeTheme = (variant: ThemeOptions): Theme => {

const light: ThemeOptions = {
palette: {
background: { default: "rgba(0, 0, 0, 0.04)" },
type: "light",
},
};
Expand Down