Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: FloatingDiv component #8

Merged
merged 1 commit into from Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions gaurang/src/Components/FloatingDiv/FloatingDiv.css
@@ -0,0 +1,19 @@
.floatingDiv {
justify-content: space-around;
background: white;
box-shadow: var(--boxShadow);
border-radius: 17px;
display: flex;
align-items: center;
padding: 0px 28px 0px 0px;
height: 4.5rem;
}
.floatingDiv > img {
transform: scale(0.4);
}
.floatingDiv > span {
font-family: sans-serif;
font-size: 16px;
/* yahan ye color add kia hy bad mein dark mode k waqt */
color: black;
}
20 changes: 20 additions & 0 deletions gaurang/src/Components/FloatingDiv/FloatingDiv.jsx
@@ -0,0 +1,20 @@
import React from "react";

import './FloatingDiv.css'


const FloatinDiv = ({img, text1, text2}) => {
return (
// darkMode
<div className="floatingDiv">
<img src={img} alt="" />
<span>
{text1}
<br/>
{text2}
</span>
</div>
);
};

export default FloatinDiv;