-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ae0d25
commit a636f79
Showing
10 changed files
with
173 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,63 @@ | ||
import { FC } from 'react'; | ||
import { AppForm } from '../../core/form/AppForm'; | ||
import { useForm } from 'react-hook-form'; | ||
import { Button } from '@mui/material'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
export const HomePage: FC = () => { | ||
const form = useForm(); | ||
const navigate = useNavigate(); | ||
|
||
return <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'start', gap: 20 }}></div>; | ||
return <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'start', gap: 20 }}> | ||
<div className='w-full p-4 bg-gray-100'> | ||
<div className='mb-2 font-bold opacity-75'>מצב כללי</div> | ||
<div className='flex gap-4'> | ||
<div className='flex flex-col items-center p-4 bg-gray-300 rounded'> | ||
<span className='text-3xl font-bold'> 18</span> | ||
<span> פעילות </span> | ||
</div> | ||
<div className='flex flex-col items-center p-4 bg-red-300 rounded'> | ||
<span className='text-3xl font-bold'> 3 </span> | ||
<span> תקלות </span> | ||
</div> | ||
</div> | ||
</div> | ||
<div className='w-full px-4 flex gap-2'> | ||
<div className='flex-1'> | ||
<AppForm | ||
form={form} | ||
noSubmit | ||
fields={[{name: 'search', type: 'text', placeholder: 'חיפוש מעלית', helperText:'חיפוש לפי: שם לקוח / מיקום / מזהה מעלית' ,value: '', grid: {colSpan: 12}}]}/> | ||
</div> | ||
<Button className='px-4 min-h-0 min-w-0 h-[43px]'> | ||
<i className='fas fa-magnifying-glass'></i> | ||
</Button> | ||
</div> | ||
<div className='px-4 w-full'> | ||
<div className='w-full bg-gray-100 rounded'> | ||
<div className='flex justify-between h-full p-4'> | ||
<div className='flex gap-2 flex-col'> | ||
<div className='flex gap-2'> | ||
<span className='font-bold opacity-75'>#03</span> | ||
<span className='bg-lime-300 px-2 rounded'>תקינה</span> | ||
</div> | ||
<div className='flex gap-4'> | ||
<span> | ||
<i className='fas fa-user me-2'></i> | ||
שפיר הנדסה | ||
</span> | ||
<span> | ||
<i className='fas fa-map-marker-alt me-2'></i> | ||
אשדוד | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div className='flex gap-2'> | ||
<Button onClick={() => navigate('/s/device/1234')}>פתח</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import { Button } from '@mui/material'; | ||
import React from 'react'; | ||
import { FC } from 'react'; | ||
import { useNavigate, useParams } from 'react-router-dom'; | ||
|
||
export const DevicePage: FC = React.memo(() => { | ||
const navigate = useNavigate(); | ||
return ( | ||
<> | ||
<div className='w-full bg-gray-100 '> | ||
<div className='flex flex-col items-start h-full p-4'> | ||
<Button className='p-0 pb-2 min-w-0' variant='text' onClick={() => navigate(-1)}> | ||
<i className='fas fa-arrow-left me-2'></i> | ||
חזור | ||
</Button> | ||
<div className='flex gap-2 flex-col'> | ||
<div className='flex gap-2'> | ||
<span className='font-bold opacity-75'>#03</span> | ||
<span className='bg-lime-300 px-2 rounded'>תקינה</span> | ||
<span> | ||
<i className='fas fa-wrench me-2 opacity-50'></i> | ||
Model 2BFX | ||
</span> | ||
</div> | ||
<div className='flex gap-4'> | ||
<span> | ||
<i className='fas fa-user me-2 opacity-50'></i> | ||
שפיר הנדסה | ||
</span> | ||
<span> | ||
<i className='fas fa-map-marker-alt me-2 opacity-50'></i> | ||
אשדוד | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className='flex justify-center mt-4 gap-2 text-sm opacity-75'> | ||
<span> | ||
עדכון אחרון | ||
</span> | ||
<span> | ||
24/02 12:00 | ||
</span> | ||
</div> | ||
<div className='flex flex-wrap gap-y-4 p-4'> | ||
<div className='flex w-full lg:w-1/4 lg:pe-4'> | ||
<div className='p-2 py-1 ps-4 flex-1 rounded-s border border-lime-300'> | ||
מתח ראשי | ||
</div> | ||
<div className='p-2 py-1 w-1/4 bg-lime-300 rounded-e flex justify-center'> | ||
יש מתח | ||
</div> | ||
</div> | ||
|
||
<div className='flex w-full lg:w-1/4 lg:pe-4'> | ||
<div className='p-2 py-1 ps-4 flex-1 rounded-s border border-lime-300'> | ||
דלת חיצונית | ||
</div> | ||
<div className='p-2 py-1 w-1/4 bg-lime-300 rounded-e flex justify-center'> | ||
יש מתח | ||
</div> | ||
</div> | ||
|
||
<div className='flex w-full lg:w-1/4 lg:pe-4'> | ||
<div className='p-2 py-1 ps-4 flex-1 rounded-s border border-red-300'> | ||
דלת פנימית | ||
</div> | ||
<div className='p-2 py-1 w-1/4 bg-red-300 rounded-e flex justify-center'> | ||
אין מתח | ||
</div> | ||
</div> | ||
|
||
<div className='flex w-full lg:w-1/4 lg:pe-4'> | ||
<div className='p-2 py-1 ps-4 flex-1 rounded-s border border-lime-300'> | ||
מנוע | ||
</div> | ||
<div className='p-2 py-1 w-1/4 bg-lime-300 rounded-e flex justify-center'> | ||
יש מתח | ||
</div> | ||
</div> | ||
|
||
<div className='flex w-full lg:w-1/4 lg:pe-4'> | ||
<div className='p-2 py-1 ps-4 flex-1 rounded-s border border-lime-300'> | ||
משקל | ||
| ||
<span className='text-xs opacity-75'> | ||
משקל מקסימלי 350 kg | ||
</span> | ||
</div> | ||
<div className='p-2 py-1 w-1/4 bg-lime-300 rounded-e flex justify-center'> | ||
327.8 kg | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
</> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters