UNPKG

@mdbootstrap/react-profiles

Version:

Responsive Profiles built with Bootstrap 5. Lots of templates such as card profile, user profile, profile form, with followers, avatars, comments, stats, social media and many more.

81 lines (80 loc) 4.36 kB
import React from 'react'; import './editButton.css'; import { MDBCol, MDBContainer, MDBRow, MDBCard, MDBCardText, MDBCardBody, MDBCardImage, MDBBtn, MDBTypography } from 'mdb-react-ui-kit'; export default function EditButton() { return ( <div className="gradient-custom-2" style={{ backgroundColor: '#9de2ff' }}> <MDBContainer className="py-5 h-100"> <MDBRow className="justify-content-center align-items-center h-100"> <MDBCol lg="9" xl="7"> <MDBCard> <div className="rounded-top text-white d-flex flex-row" style={{ backgroundColor: '#000', height: '200px' }}> <div className="ms-4 mt-5 d-flex flex-column" style={{ width: '150px' }}> <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-profiles/avatar-1.webp" alt="Generic placeholder image" className="mt-4 mb-2 img-thumbnail" fluid style={{ width: '150px', zIndex: '1' }} /> <MDBBtn outline color="dark" style={{height: '36px', overflow: 'visible'}}> Edit profile </MDBBtn> </div> <div className="ms-3" style={{ marginTop: '130px' }}> <MDBTypography tag="h5">Andy Horwitz</MDBTypography> <MDBCardText>New York</MDBCardText> </div> </div> <div className="p-4 text-black" style={{ backgroundColor: '#f8f9fa' }}> <div className="d-flex justify-content-end text-center py-1"> <div> <MDBCardText className="mb-1 h5">253</MDBCardText> <MDBCardText className="small text-muted mb-0">Photos</MDBCardText> </div> <div className="px-3"> <MDBCardText className="mb-1 h5">1026</MDBCardText> <MDBCardText className="small text-muted mb-0">Followers</MDBCardText> </div> <div> <MDBCardText className="mb-1 h5">478</MDBCardText> <MDBCardText className="small text-muted mb-0">Following</MDBCardText> </div> </div> </div> <MDBCardBody className="text-black p-4"> <div className="mb-5"> <p className="lead fw-normal mb-1">About</p> <div className="p-4" style={{ backgroundColor: '#f8f9fa' }}> <MDBCardText className="font-italic mb-1">Web Developer</MDBCardText> <MDBCardText className="font-italic mb-1">Lives in New York</MDBCardText> <MDBCardText className="font-italic mb-0">Photographer</MDBCardText> </div> </div> <div className="d-flex justify-content-between align-items-center mb-4"> <MDBCardText className="lead fw-normal mb-0">Recent photos</MDBCardText> <MDBCardText className="mb-0"><a href="#!" className="text-muted">Show all</a></MDBCardText> </div> <MDBRow> <MDBCol className="mb-2"> <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Lightbox/Original/img%20(112).webp" alt="image 1" className="w-100 rounded-3" /> </MDBCol> <MDBCol className="mb-2"> <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Lightbox/Original/img%20(107).webp" alt="image 1" className="w-100 rounded-3" /> </MDBCol> </MDBRow> <MDBRow className="g-2"> <MDBCol className="mb-2"> <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Lightbox/Original/img%20(108).webp" alt="image 1" className="w-100 rounded-3" /> </MDBCol> <MDBCol className="mb-2"> <MDBCardImage src="https://mdbcdn.b-cdn.net/img/Photos/Lightbox/Original/img%20(114).webp" alt="image 1" className="w-100 rounded-3" /> </MDBCol> </MDBRow> </MDBCardBody> </MDBCard> </MDBCol> </MDBRow> </MDBContainer> </div> ); }