Skip to content
Snippets Groups Projects
Commit 01b90fc4 authored by Puneeth Kharvi's avatar Puneeth Kharvi
Browse files

changed

parent 99ec2dc3
No related branches found
No related tags found
1 merge request!2Feature/manjusha/sidebar1
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
import Hello from "./components/images"; import Image from "./components/images";
import "./components/images/style.module.scss"
function App() { function App() {
return (<> return (<>
<Hello/>
<Hello/> <Image
src={"./gani.jpg"}
alt="Image not found"
className={""}
width={"200px"}
height={"200px"}
/>
</> </>
) )
} }
......
import React from "react"; import React from "react";
import "./style.css";
const Hello= () => {
function Image(props) {
const { imageClass, src, alt, width,height,id} = props;
return ( return (
<div className="primary"> <img
<img src="./gani.jpg" alt="image not found"/> id={id}
</div> className={imageClass }
) src={src}
alt={alt}
height={height}
width={width}
/>
);
} }
export default Hello;
\ No newline at end of file export default Image;
\ No newline at end of file
.primary { .imageStyleClass {
width: 110px;
height: 110px; border-radius: 50%;
border: 2px solid rgb(172, 70, 78);
display: flex;
align-items: center;
justify-content: center;
}
.primary img {
width: 100px;
height: 100px;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment