Skip to content

Commit

Permalink
migrate home header page
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizFNJ committed Jan 17, 2025
1 parent 38bcffd commit 3e92884
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/components/Home/HomeHeader/HomeHeader.style.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import styled from "styled-components";
import { queries } from "../../../styles/mediaQueries";
import colors from "../../../styles/colors";
import { Col } from "antd";
import Grid from "@mui/material/Grid";

const HomeHeaderStyle = styled(Col)`
const HomeHeaderStyle = styled(Grid)`
display: flex;
background-color: ${colors.blackTertiary};
align-items: center;
Expand Down
16 changes: 8 additions & 8 deletions src/components/Home/HomeHeader/HomeHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Col } from "antd";
import Grid from "@mui/material/Grid";
import React from "react";
import CTASection from "../CTA/CTASection";
import HomeHeaderStyle from "./HomeHeader.style";
Expand All @@ -8,17 +8,17 @@ import HomeHeaderSearch from "./HomeHeaderSearch";

const HomeHeader = ({ stats }) => {
return (
<HomeHeaderStyle>
<Col
xxl={12}
lg={16}
sm={18}
xs={24}
<HomeHeaderStyle container>
<Grid item
xl={6}
lg={8}
sm={9}
xs={12}
className="home-header-content"
>
<HomeHeaderTitle />
<CTASection />
</Col>
</Grid>
<HomeStats stats={stats} />

<HomeHeaderSearch />
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/HomeHeader/HomeHeaderSearch.style.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Col } from "antd";
import Grid from "@mui/material/Grid";
import styled from "styled-components";
import { queries } from "../../../styles/mediaQueries";
import colors from "../../../styles/colors";

const HomeHeaderSearchStyled = styled(Col)`
const HomeHeaderSearchStyled = styled(Grid)`
display: flex;
flex-direction: column;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/HomeHeader/HomeHeaderSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const HomeHeaderSearch = () => {
};

return (
<HomeHeaderSearchStyled xxl={12} lg={16} sm={18} xs={24}>
<HomeHeaderSearchStyled container xl={6} lg={8} sm={9} xs={12}>
<h2 className="title">{t("home:homeHeaderSearchTitle")}</h2>

<InputSearch
Expand Down
6 changes: 3 additions & 3 deletions src/components/Home/HomeHeader/HomeHeaderTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from "react";
import { Col } from "antd";
import Grid from "@mui/material/Grid";
import { useTranslation } from "next-i18next";

const HomeHeaderTitle = () => {
const { t } = useTranslation();
return (
<Col className="home-header-title">
<Grid item className="home-header-title">
<h1>{t("home:title")}</h1>
</Col>
</Grid>
);
};

Expand Down
3 changes: 1 addition & 2 deletions src/components/Kanban/KanbanToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Grid } from "@mui/material";
import React from "react";
import { useTranslation } from "next-i18next";

import { FormControlLabel, Switch } from "@mui/material";
import { FormControlLabel, Switch, Grid } from "@mui/material";

const KanbanToolbar = ({ filterUserTasks, setFilterUserTasks }) => {
const { t } = useTranslation();
Expand Down

0 comments on commit 3e92884

Please sign in to comment.