Commit c7cf2600 by asranov0003

feat: initialise routes page

parent 4788ee92
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"denied": "Denied", "denied": "Denied",
"loading": "Loading...", "loading": "Loading...",
"selectDates": "Select dates", "selectDates": "Select dates",
"selectTime": "Select time",
"selectAppAndDates": "Select App & Dates", "selectAppAndDates": "Select App & Dates",
"from": "From", "from": "From",
"to": "To", "to": "To",
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"denied": "Выкл", "denied": "Выкл",
"loading": "Загрузка...", "loading": "Загрузка...",
"selectDates": "Выбрать даты", "selectDates": "Выбрать даты",
"selectTime": "Выбрать время",
"selectAppAndDates": "Выбрать приложение и даты", "selectAppAndDates": "Выбрать приложение и даты",
"from": "От", "from": "От",
"to": "До", "to": "До",
......
...@@ -30,10 +30,11 @@ ...@@ -30,10 +30,11 @@
font-weight: bold; font-weight: bold;
} }
.routes__filter__dates { .routes__filter__date {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0.5rem 0;
} }
.routes__filter__date label { .routes__filter__date label {
......
...@@ -2,39 +2,47 @@ import React from "react"; ...@@ -2,39 +2,47 @@ import React from "react";
import "./Routes.css"; import "./Routes.css";
import SectionHeader from "../../layouts/SectionHeader"; import SectionHeader from "../../layouts/SectionHeader";
import CButton from "../../components/CButton"; import CButton from "../../components/CButton";
import { MdInfoOutline } from "react-icons/md"; import { useTranslation } from "react-i18next";
import GoogleMapReact from "google-map-react";
const Routes: React.FC = () => { const Routes: React.FC = () => {
const { t } = useTranslation();
return ( return (
<div className="routes wrapper"> <div className="routes wrapper">
<SectionHeader to="/home" /> <SectionHeader to="/home" />
<div className="routes__content"> <div className="routes__content">
<div> <div style={{ height: "67vh", width: "100%" }}>
<div className="routes__content__header"> <GoogleMapReact
<h3>Routes</h3> defaultCenter={{ lat: 40.7128, lng: -74.006 }}
<MdInfoOutline className="routes__content__header__icon" /> defaultZoom={12}
</div> options={{ disableDefaultUI: true }}
></GoogleMapReact>
<p className="routes__content__empty">No data</p>
</div> </div>
<div className="routes__filter"> <div className="routes__filter">
<p className="routes__filter__title">Select Dates</p> <p className="routes__filter__title">{t("common.selectTime")}</p>
<div className="routes__filter__dates"> <div className="routes__filter__dates">
<div className="routes__filter__date"> <div className="routes__filter__date">
<label htmlFor="from">From</label> <label htmlFor="from">{t("common.from")}</label>
<input type="date" id="from" /> <div>
<input type="date" id="from" />
<input type="time" id="from-time" />
</div>
</div> </div>
<div className="routes__filter__date"> <div className="routes__filter__date">
<label htmlFor="to">To</label> <label htmlFor="to">{t("common.to")}</label>
<input type="date" id="to" /> <div>
<input type="date" id="to" />
<input type="time" id="to-time" />
</div>
</div> </div>
</div> </div>
<CButton title="Search" /> <CButton title={t("button.search")} />
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment