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

image component

parent 06543f40
No related branches found
No related tags found
3 merge requests!7Revert "Merge branch 'features/Adam/image' into 'development'",!5Features/ashok/cards,!3Features/adam/image
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
.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