Skip to content

Commit

Permalink
The Desgin along with components ready
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanthvarma18 committed Oct 22, 2024
1 parent 05e1ae6 commit ec40aef
Show file tree
Hide file tree
Showing 13 changed files with 4,175 additions and 7 deletions.
4,065 changes: 4,065 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import { useState } from 'react';
import reactLogo from './assets/react.svg';
import viteLogo from '/vite.svg';
import './App.css';
import DataCard6 from './components/DataCard/DataCard6'; // Import DataCard6

function App() {
const [count, setCount] = useState(0)
const [count, setCount] = useState(0);

return (
<>
Expand All @@ -28,8 +29,9 @@ function App() {
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
<DataCard6 />
</>
)
);
}

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 React from 'react';
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 ec40aef

Please sign in to comment.