-
Notifications
You must be signed in to change notification settings - Fork 13
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
bbfa516
commit a97bebc
Showing
27 changed files
with
275 additions
and
114 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
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,5 +1,5 @@ | ||
package com.mercure.utils; | ||
|
||
public enum MessageTypeEnum { | ||
TEXT, FILE | ||
TEXT, FILE, CALL | ||
} |
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,53 +1,44 @@ | ||
import {Box, Card, CardContent, Grid, Typography} from "@mui/material" | ||
import React, {useContext, useEffect} from "react" | ||
import {Card, CardContent, Grid, Typography} from "@mui/material" | ||
import React, {useEffect} from "react" | ||
import {generateColorMode} from "./utils/enable-dark-mode" | ||
import {useThemeContext} from "../context/theme-context" | ||
import {FooterComponent} from "./partials/footer-component" | ||
import {LoginComponent} from "./login/LoginComponent" | ||
import {UserContext} from "../context/UserContext" | ||
|
||
export const HomeComponent = (): React.JSX.Element => { | ||
const {theme} = useThemeContext() | ||
const {user} = useContext(UserContext)! | ||
|
||
useEffect(() => { | ||
document.title = "Home | FLM" | ||
}, []) | ||
|
||
return ( | ||
<div className={generateColorMode(theme)} | ||
style={{ | ||
width: "100%", | ||
height: "calc(100% - 64px)", | ||
textAlign: "center" | ||
}}> | ||
<Box p={2}> | ||
<Grid container> | ||
<Grid item xs={6}> | ||
<Card variant="outlined"> | ||
<CardContent> | ||
<Typography variant="h5" gutterBottom> | ||
Welcome to FastLiteMessage {user?.firstName} | ||
</Typography> | ||
<div className={generateColorMode(theme)} style={{height: "100%"}}> | ||
<Grid container style={{height: "100%", verticalAlign: "middle"}}> | ||
<Grid item xs={6}> | ||
<Card variant="outlined"> | ||
<CardContent> | ||
<Typography variant="h5" gutterBottom> | ||
Welcome to FastLiteMessage | ||
</Typography> | ||
|
||
<img src={"/assets/icons/landing_logo.svg"} height={"300"} alt={"test svg"}/> | ||
<img src={"/assets/icons/landing_logo.svg"} height={"300"} alt={"test svg"}/> | ||
|
||
<Typography variant="h5" gutterBottom> | ||
Simple, fast and secure | ||
</Typography> | ||
<div>FastLiteMessage allow to communicate with other people, create groups, make | ||
serverless video calls in an easy way. Log into your account or register to start | ||
using FastLiteMessage. | ||
</div> | ||
<FooterComponent/> | ||
</CardContent> | ||
</Card> | ||
</Grid> | ||
<Grid item xs={6}> | ||
<LoginComponent/> | ||
</Grid> | ||
<Typography variant="h5" gutterBottom> | ||
Simple, fast and secure | ||
</Typography> | ||
<div>FastLiteMessage allow to communicate with other people, create groups, make | ||
serverless video calls in an easy way. Log into your account or register to start | ||
using FastLiteMessage. | ||
</div> | ||
<FooterComponent/> | ||
</CardContent> | ||
</Card> | ||
</Grid> | ||
</Box> | ||
<Grid xs={6}> | ||
<LoginComponent/> | ||
</Grid> | ||
</Grid> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.