Skip to content

Commit

Permalink
FeatCards dscnsec#14 Completed
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwanthvarma18 committed Oct 25, 2024
1 parent 6bc1639 commit 19957b0
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function App() {
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>

</>
)
}
Expand Down
55 changes: 55 additions & 0 deletions src/components/FeetCards/FeatCards.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.feat-cards {
display: flex;
flex-direction: column;
gap: 20px;
background-color: #081c2c; /* Ensure the background color is set */
padding: 20px; /* Increase dimensions by adding padding */
}

.card {
position: relative;
background-size: cover;
padding-left: 10px;
padding-right: 10px;
border-radius: 10px;
color: white;
box-sizing: border-box;

}

.card-content {
max-width: 60%;
}

.features {
display: flex;
gap: 10px;
margin: 10px 0;
}

.feature {
display: flex;
align-items: center;
gap: 5px;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px 10px;
border-radius: 5px;
}

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

.person-image {
position: absolute;
bottom: 0;
right: 0;
height: 104%;
border-radius: 10px;
}

72 changes: 72 additions & 0 deletions src/components/FeetCards/FeatCards.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import './FeatCards.css';
import back1 from './back1.png';
import back2 from './back2.png';
import c1_1 from './c1-1.png';
import c1_2 from './c1-2.png';
import c1_3 from './c1-3.png';
import c1_4 from './c1-4.png';
import c2_1 from './c2-1.png';
import c2_2 from './c2-2.png';
import c2_3 from './c2-3.png';
import c2_4 from './c2-4.png';
import p1 from './p-1.png';
import p2 from './p-2.png';

const FeatCards = () => {
return (
<div className="feat-cards" style={{ backgroundColor: '#081c2c' }}>
<div className="card" style={{ backgroundImage: `url(${back1})` }}>
<div className="card-content">
<h2>Thousands of thrilling games.<br />Thousands of ways to win big.</h2>
<div className="features">
<div className="feature">
<img src={c1_1} alt="New Releases" />
New Releases
</div>
<div className="feature">
<img src={c1_2} alt="Slots" />
Slots
</div>
<div className="feature">
<img src={c1_3} alt="Live Casino" />
Live Casino
</div>
<div className="feature">
<img src={c1_4} alt="Table Games" />
Table Games
</div>
</div>
<button className="explore-button">Explore Casino</button>
</div>
<img src={p1} alt="Person" className="person-image" />
</div>
<div className="card" style={{ backgroundImage: `url(${back2})` }}>
<div className="card-content">
<h2>Watch and bet on the biggest events across sports and beyond</h2>
<div className="features">
<div className="feature">
<img src={c2_1} alt="Sports" />
Sports
</div>
<div className="feature">
<img src={c2_2} alt="Esports" />
Esports
</div>
<div className="feature">
<img src={c2_3} alt="Horse Racing" />
Horse Racing
</div>
<div className="feature">
<img src={c2_4} alt="Live Streams" />
Live Streams
</div>
</div>
<button className="explore-button">Explore Sports</button>
</div>
<img src={p2} alt="Person" className="person-image" />
</div>
</div>
);
};

export default FeatCards;
Binary file added src/components/FeetCards/back1.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/FeetCards/back2.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/FeetCards/c1-1.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/FeetCards/c1-2.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/FeetCards/c1-3.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/FeetCards/c1-4.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/FeetCards/c2-1.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/FeetCards/c2-2.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/FeetCards/c2-3.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/FeetCards/c2-4.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/FeetCards/output.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/FeetCards/p-1.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/FeetCards/p-2.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 19957b0

Please sign in to comment.