Skip to content

Commit ca1bb39

Browse files
committed
added images , added promoted card, added text to display
1 parent 28715a5 commit ca1bb39

File tree

7 files changed

+55
-20
lines changed

7 files changed

+55
-20
lines changed
124 KB
Loading
25.8 KB
Loading
15.9 KB
Loading
7.76 KB
Loading

client/src/components/Home.jsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,32 @@ export default function Home() {
8282
}
8383
};
8484

85-
86-
8785
const [selectedValue, setSelectedValue] = useState('Only Value');
8886

87+
const options = [
88+
{
89+
heading: "LeetCode Profiles is an application that enables users to display and share their LeetCode statistics and accomplishments globally",
90+
imgSrc: "/promoted1.webp",
91+
},
92+
{
93+
heading: "Enjoying our project? Drop a star on our GitHub repo to show your support! This will help others to discover the project. 🌟",
94+
imgSrc: "/promoted2.webp",
95+
},
96+
{
97+
heading: "Could you please consider dropping a star on our GitHub repository? 👻 ",
98+
imgSrc: "/promoted3.webp",
99+
},
100+
{
101+
heading: "Could you drop a star on the GitHub repo? It helps a lot! 👋 ",
102+
imgSrc: "/promoted4.webp",
103+
},
104+
{
105+
heading: "Can you please share this project with your friends and family? ✨ ",
106+
imgSrc: "/promoted4.webp",
107+
}
108+
];
109+
const [random, setRandom] = useState(Math.floor(Math.random() * options.length));
110+
89111

90112
return (
91113
<>

client/src/components/PromotedCard.jsx

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,42 @@
1-
import Questions from "./Profile/Circle&Questions/Questions";
2-
import Circle from "./Profile/Circle&Questions/Circle";
3-
import { useState, useEffect } from "react";
4-
import Profile from "./Profile/About/Profile";
5-
import SocialLinks from "./Profile/About/SocialLinks";
6-
import { motion } from "framer-motion";
71

82

93
export default function PromotedCard() {
104

11-
12-
135
return (
14-
<div className="flex justify-center flex-col items-center rounded-lg h-[280px] bg-[#292829]">
15-
<div>
16-
<div className="flex gap-1 xl:gap-4 items-center justify-between ">
17-
{/* Profile */}
6+
<a href="https://leetcode.com/contest/weekly-contest-259/" rel="noreferrer" target="_blank" className="hover:scale-105 transition-transform duration-300 " >
7+
<div className="flex justify-center flex-col items-center rounded-lg h-[280px] bg-[#292829]">
8+
<div>
9+
<div className="flex gap-1 xl:gap-4 items-center justify-between ">
10+
{/* Profile */}
11+
<div className="flex items-center text-white justify-center px-4 py-1 w-full gap-2 mb-2 rounded-md">
12+
<img
13+
alt="nextui logo"
14+
className="rounded-full"
15+
height={26}
16+
radius="sm"
17+
src={`/assets/leetcode.png`}
18+
width={26}
19+
/>
20+
<h4 className="font-bold text-large SourceCodePro">LeetCode Profiles</h4>
21+
</div>
1822

19-
</div>
20-
<div style={{ height: '0.5px', backgroundColor: '#E0E0E0' }} className="h-[0.5px] bg-white" />
23+
</div>
24+
<div style={{ height: '0.5px', backgroundColor: '#E0E0E0' }} className="h-[0.5px] bg-white" />
2125

22-
<div className=" flex lg:flex-row gap-5 items-center justify-center mt-4">
23-
{/* Circle */}
26+
<div className=" flex lg:flex-row gap-5 items-center justify-center mt-4 w-full">
27+
{/* Circle */}
2428

25-
</div>
29+
<p className="text-xs text-white uppercase font-bold SourceCodePro mx-auto mt-2 bg-gray-600 px-16 py-2 rounded-md ">
30+
Promoted
31+
</p>
32+
33+
</div>
2634

2735

2836

37+
</div>
2938
</div>
30-
</div>
39+
</a>
3140

3241
)
3342
}

client/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
22
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
33
@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap");
4+
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
45

56
@tailwind base;
67
@tailwind components;
@@ -37,6 +38,9 @@ body {
3738
font-family: "Cedarville Cursive", cursive;
3839
font-weight: 400; /* Bold style */
3940
}
41+
.SourceCodePro {
42+
font-family: "Source Code Pro", monospace;
43+
}
4044

4145
:root {
4246
--green-10: #004d1b;

0 commit comments

Comments
 (0)