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

Old dev #1626

Merged
merged 3 commits into from
Aug 18, 2024
Merged

Old dev #1626

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions src/Pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const MuLiveCounter = () => {
}, []);

return (
<div className={styles.rightside}>
<div style={{}}>
{counts && (
<div className={styles.countcontainer}>
<div className={styles.count}>
Expand All @@ -64,7 +64,9 @@ const MuLiveCounter = () => {
<CountUp
end={
orgTypeCount.org_type === "Company"
? 200
? 213
: orgTypeCount.org_type === "Community"
? 30
: orgTypeCount.org_count
}
duration={5}
Expand Down Expand Up @@ -94,7 +96,7 @@ const MuLiveCounter = () => {

<div className={styles.count}>
<p className={styles.cvc_heading}>
<CountUp end={counts.karma_pow_count.karma_count} duration={5} />+
<CountUp end={counts.karma_pow_count.karma_count} duration={5} />
</p>
<p className={styles.cvc_text}>Total Karma Mined</p>
</div>
Expand Down Expand Up @@ -124,9 +126,10 @@ const MuLiveCounter = () => {
</div>
<div className={styles.count}>
<p className={styles.cvc_heading}>
<CountUp end={20} duration={5} />
<CountUp end={1} duration={5} />
Cr+
</p>
<p className={styles.cvc_text}>Lakhs Gig Works</p>
<p className={styles.cvc_text}>worth of Gig Works</p>
</div>

{counts.enablers_mentors_count
Expand Down Expand Up @@ -520,16 +523,27 @@ const Home = () => {
<div
className={styles.count_view}
style={{
height: "100%",
...(window.innerWidth >= 1024 && {
display: "flex",
flexDirection: "column",
alignContent: "center",
justifyContent: "center",
gap: "3rem",
}),
}}
>
<div
style={{
height: "100%", // Ensure the container takes full height of its parent
display: "flex",
flexDirection: "column",
justifyContent: "flex-start",
alignItems: "flex-start", // Align items to the start of the container\
...(window.innerWidth >= 1024 && {
height: "100%", // Ensure the container takes full height of its parent
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center", // Align items to the start of the container
width: "100%",
padding: "1rem",
gap: "3rem",
}),
}}
className={styles.left_side}
>
Expand Down
Loading