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
No related merge requests found
import Hello from "./components/images";
import Image from "./components/images";
import "./components/images/style.module.scss"
function App() {
return (<>
<Hello/>
<Hello/>
<Image
src={"./gani.jpg"}
alt="Image not found"
className={""}
width={"200px"}
height={"200px"}
/>
</>
)
}
......
import React from "react";
import "./style.css";
const Hello= () => {
function Image(props) {
const { imageClass, src, alt, width,height,id} = props;
return (
<div className="primary">
<img src="./gani.jpg" alt="image not found"/>
</div>
)
<img
id={id}
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 {
width: 110px;
height: 110px;
border: 2px solid rgb(172, 70, 78);
display: flex;
align-items: center;
justify-content: center;
}
.primary img {
width: 100px;
height: 100px;
.imageStyleClass {
border-radius: 50%;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment