Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
thecybernanny-webapp
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asranov0003
thecybernanny-webapp
Commits
c7cf2600
Commit
c7cf2600
authored
Jul 28, 2025
by
asranov0003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: initialise routes page
parent
4788ee92
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
15 deletions
+26
-15
en.json
src/locales/en/en.json
+1
-0
ru.json
src/locales/ru/ru.json
+1
-0
Routes.css
src/pages/Routes/Routes.css
+2
-1
Routes.tsx
src/pages/Routes/Routes.tsx
+22
-14
No files found.
src/locales/en/en.json
View file @
c7cf2600
...
...
@@ -6,6 +6,7 @@
"denied"
:
"Denied"
,
"loading"
:
"Loading..."
,
"selectDates"
:
"Select dates"
,
"selectTime"
:
"Select time"
,
"selectAppAndDates"
:
"Select App & Dates"
,
"from"
:
"From"
,
"to"
:
"To"
,
...
...
src/locales/ru/ru.json
View file @
c7cf2600
...
...
@@ -6,6 +6,7 @@
"denied"
:
"Выкл"
,
"loading"
:
"Загрузка..."
,
"selectDates"
:
"Выбрать даты"
,
"selectTime"
:
"Выбрать время"
,
"selectAppAndDates"
:
"Выбрать приложение и даты"
,
"from"
:
"От"
,
"to"
:
"До"
,
...
...
src/pages/Routes/Routes.css
View file @
c7cf2600
...
...
@@ -30,10 +30,11 @@
font-weight
:
bold
;
}
.routes__filter__date
s
{
.routes__filter__date
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin
:
0.5rem
0
;
}
.routes__filter__date
label
{
...
...
src/pages/Routes/Routes.tsx
View file @
c7cf2600
...
...
@@ -2,39 +2,47 @@ import React from "react";
import
"./Routes.css"
;
import
SectionHeader
from
"../../layouts/SectionHeader"
;
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
{
t
}
=
useTranslation
();
return
(
<
div
className=
"routes wrapper"
>
<
SectionHeader
to=
"/home"
/>
<
div
className=
"routes__content"
>
<
div
>
<
div
className=
"routes__content__header"
>
<
h3
>
Routes
</
h3
>
<
MdInfoOutline
className=
"routes__content__header__icon"
/>
</
div
>
<
p
className=
"routes__content__empty"
>
No data
</
p
>
<
div
style=
{
{
height
:
"67vh"
,
width
:
"100%"
}
}
>
<
GoogleMapReact
defaultCenter=
{
{
lat
:
40.7128
,
lng
:
-
74.006
}
}
defaultZoom=
{
12
}
options=
{
{
disableDefaultUI
:
true
}
}
></
GoogleMapReact
>
</
div
>
<
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__date"
>
<
label
htmlFor=
"from"
>
From
</
label
>
<
input
type=
"date"
id=
"from"
/>
<
label
htmlFor=
"from"
>
{
t
(
"common.from"
)
}
</
label
>
<
div
>
<
input
type=
"date"
id=
"from"
/>
<
input
type=
"time"
id=
"from-time"
/>
</
div
>
</
div
>
<
div
className=
"routes__filter__date"
>
<
label
htmlFor=
"to"
>
To
</
label
>
<
input
type=
"date"
id=
"to"
/>
<
label
htmlFor=
"to"
>
{
t
(
"common.to"
)
}
</
label
>
<
div
>
<
input
type=
"date"
id=
"to"
/>
<
input
type=
"time"
id=
"to-time"
/>
</
div
>
</
div
>
</
div
>
<
CButton
title=
"Search"
/>
<
CButton
title=
{
t
(
"button.search"
)
}
/>
</
div
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment