This commit is contained in:
E 2021-03-10 19:51:31 -07:00
parent fa6809b507
commit 6720816a97
4 changed files with 52 additions and 20 deletions

View File

@ -62,8 +62,18 @@
.loading-bar-container { .loading-bar-container {
background: #282c34; background: #282c34;
width: 100%; width: 100%;
height: 30px;
min-height: 30px;
} }
.loading-bar { .loading-bar {
background: green; background: #66ff66;
height: 100%;
}
.page-head {
background: #282c34;
color: white !important;
margin-top: 0;
padding: 1rem;
} }

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
import { Card, message, Modal, PageHeader, Spin } from 'antd' import { Card, message, Modal, PageHeader, Row, Spin, Typography } from 'antd'
import { getSession } from '../api' import { getSession } from '../api'
type Props = { type Props = {
@ -33,6 +33,8 @@ export const SessionPictures = ({ clientId }: Props) => {
if (!urls?.length) return null if (!urls?.length) return null
const u = urls.length / 89
return ( return (
<> <>
<Modal <Modal
@ -49,14 +51,20 @@ export const SessionPictures = ({ clientId }: Props) => {
alt="large modal" alt="large modal"
></img> ></img>
</Modal> </Modal>
<PageHeader <Row align="middle" justify="center">
title="Session Pictures" <Typography.Title level={3}>Session Pictures</Typography.Title>
subTitle={`${urls.length}/${89 * 1} loaded`} <Typography.Text>{urls.length}/ 89 loaded</Typography.Text>
> </Row>
<div className="loading-bar-container"> <div className="loading-bar-container">
<div className="loading-bar"></div> <div
className="loading-bar"
style={{
width: `${u * 100}%`,
background: `hsl(${Math.floor(1 * 120)}, 90%, 70%)`,
}}
></div>
</div> </div>
</PageHeader>
<div className="photo-wall"> <div className="photo-wall">
{urls ? ( {urls ? (
urls urls

View File

@ -1,4 +1,13 @@
import { Button, Divider, Form, Input, message, PageHeader, Row } from 'antd' import {
Button,
Divider,
Form,
Input,
message,
PageHeader,
Row,
Typography,
} from 'antd'
import FormItem from 'antd/lib/form/FormItem' import FormItem from 'antd/lib/form/FormItem'
import { Store } from 'antd/lib/form/interface' import { Store } from 'antd/lib/form/interface'
import { Content } from 'antd/lib/layout/layout' import { Content } from 'antd/lib/layout/layout'
@ -32,10 +41,12 @@ export const Dashboard = () => {
return ( return (
<Content> <Content>
<PageHeader <Typography.Title className="page-head" level={3}>
title="Dashboard" Dashboard
subTitle="Enter the name, email and phone number of the subject" </Typography.Title>
></PageHeader> <Typography.Text>
Enter the name, email and phone number of the subject
</Typography.Text>
<Divider /> <Divider />
<Form <Form
className="dashboard-form" className="dashboard-form"

View File

@ -53,16 +53,19 @@ export const Session = (props: Props) => {
return ( return (
<Content> <Content>
<Row justify="center"> <Typography.Title className="page-head" level={3}>
<Typography.Title>Client: {client?.name}</Typography.Title> Session View
</Row> </Typography.Title>
<Row justify="space-around" style={{ width: '60%', margin: 'auto' }}> <Row justify="space-around" style={{ width: '60%', margin: 'auto' }}>
<Typography.Text> <Typography.Text>
<strong>email:</strong> {client?.email} <strong>Name:</strong> {client?.name}
</Typography.Text> </Typography.Text>
<Typography.Text> <Typography.Text>
<strong>phone:</strong> {client?.phone} <strong>Email:</strong> {client?.email}
</Typography.Text>
<Typography.Text>
<strong>Phone:</strong> {client?.phone}
</Typography.Text> </Typography.Text>
</Row> </Row>
<Divider /> <Divider />