Skip to content

Commit 4b1d50d

Browse files
Merge pull request #23 from yashwanthvarma18/DataCard-6
The Desgin along with components ready
2 parents 07e3129 + 6bc1639 commit 4b1d50d

File tree

12 files changed

+102
-1
lines changed

12 files changed

+102
-1
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ function App() {
3232
)
3333
}
3434

35-
export default App
35+
export default App
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.data-card-container {
2+
display: flex;
3+
justify-content: space-between;
4+
align-items: center;
5+
padding: 20px;
6+
background-color: #0a1a2f; /* Dark background */
7+
}
8+
9+
.card-grid {
10+
display: grid;
11+
grid-template-columns: repeat(3, 1fr);
12+
gap: 20px; /* Adjust the gap as needed */
13+
}
14+
.card {
15+
border-radius: 10px;
16+
overflow: hidden;
17+
18+
}
19+
.card img {
20+
width: 100%;
21+
height: auto;
22+
display: block;
23+
}
24+
25+
26+
27+
.community-section {
28+
max-width: 400px;
29+
}
30+
31+
32+
.community-section h2 {
33+
font-size: 24px;
34+
margin-bottom: 10px;
35+
}
36+
37+
.community-section p {
38+
font-size: 16px;
39+
margin-bottom: 20px;
40+
}
41+
42+
.join-button {
43+
background-color: #007bff;
44+
color: white;
45+
border: none;
46+
padding: 10px 20px;
47+
border-radius: 5px;
48+
cursor: pointer;
49+
transition: background-color 0.3s;
50+
}
51+
52+
.join-button:hover {
53+
background-color: #0056b3;
54+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import "./DataCard6.css";
2+
import image1 from "./image1.png";
3+
import image2 from "./image2.png";
4+
import image3 from "./image3.png";
5+
import image4 from "./image4.png";
6+
import image5 from "./image5.png";
7+
import image6 from "./image6.png";
8+
import image7 from "./image7.png";
9+
import image8 from "./image8.png";
10+
import image9 from "./image9.png";
11+
12+
function DataCard6() {
13+
const cards = [
14+
{ id: 1, image: image1, alt: "Person 1" },
15+
{ id: 2, image: image2, alt: "Person 2" },
16+
{ id: 3, image: image3, alt: "Person 3" },
17+
{ id: 4, image: image4, alt: "Person 4" },
18+
{ id: 5, image: image5, alt: "Person 5" },
19+
{ id: 6, image: image6, alt: "Person 6" },
20+
{ id: 7, image: image7, alt: "Person 7" },
21+
{ id: 8, image: image8, alt: "Person 8" },
22+
{ id: 9, image: image9, alt: "Person 9" },
23+
];
24+
25+
return (
26+
<div className="data-card-container">
27+
<div className="card-grid">
28+
{cards.map((card) => (
29+
<div key={card.id} className="card">
30+
<img src={card.image} alt={card.alt} />
31+
</div>
32+
))}
33+
</div>
34+
<div className="community-section">
35+
<h2>Share your excitement with a thriving community</h2>
36+
<p>
37+
From beginners and casual players to high rollers and expert players,
38+
our community loves to support one another. Get tips and tricks
39+
through our online chat, forums, and more.
40+
</p>
41+
<button className="join-button">Join the community</button>
42+
</div>
43+
</div>
44+
);
45+
}
46+
47+
export default DataCard6;

src/components/DataCard/image1.png

53.3 KB
Loading

src/components/DataCard/image2.png

67.3 KB
Loading

src/components/DataCard/image3.png

75.9 KB
Loading

src/components/DataCard/image4.png

67.8 KB
Loading

src/components/DataCard/image5.png

20.5 KB
Loading

src/components/DataCard/image6.png

70.5 KB
Loading

src/components/DataCard/image7.png

80.3 KB
Loading

0 commit comments

Comments
 (0)