Integrate React frontend for desktop app
* Added component files
* Added dependencies and settings on package.json
* Updated package-lock.json to match new dependencies
* Added react scripts and config files
This commit is contained in:
1 parent
b5d87dd1eb
commit
577fb7cfab
100 files changed
+45030
-422
No files matched your search
@@ -0,0 +1,30 @@
|
||||
import React from 'react';
|
||||
import {Card, CardContent, CardMedia, Typography} from "@mui/material";
|
||||
import banner from "../../images/banner.jpg";
|
||||
import pfp from "../../images/pfp.png";
|
||||
|
||||
const UserProfileHeader = ({actualUser}) => {
|
||||
return (
|
||||
<Card className="profileSection">
|
||||
<CardMedia className="banner"
|
||||
component="img"
|
||||
image={banner}
|
||||
alt="PP"
|
||||
/>
|
||||
<div className="profileCard">
|
||||
<div className="profilePicBG">
|
||||
<CardMedia className="profileAvatar"
|
||||
component="img"
|
||||
image={pfp}
|
||||
alt="ProfilePic"
|
||||
/>
|
||||
</div>
|
||||
<CardContent className="userSection">
|
||||
<Typography variant="h5">{actualUser}</Typography>
|
||||
</CardContent>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserProfileHeader;
|
||||
Reference in new issue
Block a user