Added MaterialUI

This commit is contained in:
Malak
2024-08-18 14:42:24 +03:00
committed by QkoSad
parent 7cd63ec826
commit 78ba14cc98
24 changed files with 738 additions and 667 deletions
+10 -8
View File
@@ -1,3 +1,4 @@
import { Avatar, Box, Card, CardHeader, Typography } from "@mui/material";
import React from "react";
import { ProfileType } from "../../types";
@@ -13,15 +14,16 @@ const ProfileTop = ({
}: {
profile: ProfileType;
}) => {
console.log(avatar)
return (
<div className="profile-top bg-primary p-2">
<>
<img className="round-img my-1" src={avatar} alt="" />
<h1 className="large">{name}</h1>
<p className="lead">
<Typography variant="h1">{name}</Typography>
<Typography>
{status} {company ? <span> at {company}</span> : null}
</p>
<p>{location ? <span>{location}</span> : null}</p>
<div className="icons my-1">
</Typography>
<Typography>{location ? <span>{location}</span> : null}</Typography>
<Box>
{website ? (
<a href={website} target="_blank" rel="noopener noreferrer">
<i className="fas fa-globe fa-2x" />
@@ -41,8 +43,8 @@ const ProfileTop = ({
</a>
))
: null}
</div>
</div>
</Box>
</>
);
};