Skip to content

Commit

Permalink
Merge pull request #23 from yashwanthvarma18/DataCard-6
Browse files Browse the repository at this point in the history
The Desgin along with components ready
  • Loading branch information
dakshsinghrathore authored Oct 25, 2024
2 parents 07e3129 + 6bc1639 commit 4b1d50d
Show file tree
Hide file tree
Showing 12 changed files with 102 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ function App() {
)
}

export default App
export default App
54 changes: 54 additions & 0 deletions src/components/DataCard/DataCard6.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.data-card-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #0a1a2f; /* Dark background */
}

.card-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px; /* Adjust the gap as needed */
}
.card {
border-radius: 10px;
overflow: hidden;

}
.card img {
width: 100%;
height: auto;
display: block;
}



.community-section {
max-width: 400px;
}


.community-section h2 {
font-size: 24px;
margin-bottom: 10px;
}

.community-section p {
font-size: 16px;
margin-bottom: 20px;
}

.join-button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}

.join-button:hover {
background-color: #0056b3;
}
47 changes: 47 additions & 0 deletions src/components/DataCard/DataCard6.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import "./DataCard6.css";
import image1 from "./image1.png";
import image2 from "./image2.png";
import image3 from "./image3.png";
import image4 from "./image4.png";
import image5 from "./image5.png";
import image6 from "./image6.png";
import image7 from "./image7.png";
import image8 from "./image8.png";
import image9 from "./image9.png";

function DataCard6() {
const cards = [
{ id: 1, image: image1, alt: "Person 1" },
{ id: 2, image: image2, alt: "Person 2" },
{ id: 3, image: image3, alt: "Person 3" },
{ id: 4, image: image4, alt: "Person 4" },
{ id: 5, image: image5, alt: "Person 5" },
{ id: 6, image: image6, alt: "Person 6" },
{ id: 7, image: image7, alt: "Person 7" },
{ id: 8, image: image8, alt: "Person 8" },
{ id: 9, image: image9, alt: "Person 9" },
];

return (
<div className="data-card-container">
<div className="card-grid">
{cards.map((card) => (
<div key={card.id} className="card">
<img src={card.image} alt={card.alt} />
</div>
))}
</div>
<div className="community-section">
<h2>Share your excitement with a thriving community</h2>
<p>
From beginners and casual players to high rollers and expert players,
our community loves to support one another. Get tips and tricks
through our online chat, forums, and more.
</p>
<button className="join-button">Join the community</button>
</div>
</div>
);
}

export default DataCard6;
Binary file added src/components/DataCard/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/DataCard/image9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b1d50d

Please sign in to comment.