Skip to content
Snippets Groups Projects
Commit e8dece67 authored by Adam Shaikh's avatar Adam Shaikh
Browse files

image component

parent 06543f40
Branches
No related tags found
No related merge requests found
.card-profile-image {
position: absolute;
left: 50%;
max-width: 140px;
transition: all .15s ease;
transform: translate(-50%,-50%) scale(1);
border: 3px solid #fff;
border-radius: 0.375rem;
vertical-align: middle;
}
import React from "react";
import PropTypes from "prop-types";
import "./Image.scss";
// Profile Image common components
function Image({src, width}) {
return (
<>
<div className="mt-7 card-profile-image">
<img src={src} width={width} className="rounded-circle card-profile-image"/>
</div>
</>
);
}
Image.propTypes = {
src: PropTypes.string,
width: PropTypes.string
};
export default Image;
export { default as Button } from "./Button";
export { default as Image } from "./image";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment