Skip to content

Commit 23e5fe5

Browse files
Merge pull request #26 from yashwanthvarma18/FeatCards-#14
FeatCards #14 Completed
2 parents 4b1d50d + 19957b0 commit 23e5fe5

File tree

16 files changed

+128
-0
lines changed

16 files changed

+128
-0
lines changed

src/App.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function App() {
2828
<p className="read-the-docs">
2929
Click on the Vite and React logos to learn more
3030
</p>
31+
3132
</>
3233
)
3334
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
.feat-cards {
2+
display: flex;
3+
flex-direction: column;
4+
gap: 20px;
5+
background-color: #081c2c; /* Ensure the background color is set */
6+
padding: 20px; /* Increase dimensions by adding padding */
7+
}
8+
9+
.card {
10+
position: relative;
11+
background-size: cover;
12+
padding-left: 10px;
13+
padding-right: 10px;
14+
border-radius: 10px;
15+
color: white;
16+
box-sizing: border-box;
17+
18+
}
19+
20+
.card-content {
21+
max-width: 60%;
22+
}
23+
24+
.features {
25+
display: flex;
26+
gap: 10px;
27+
margin: 10px 0;
28+
}
29+
30+
.feature {
31+
display: flex;
32+
align-items: center;
33+
gap: 5px;
34+
background-color: rgba(0, 0, 0, 0.5);
35+
padding: 5px 10px;
36+
border-radius: 5px;
37+
}
38+
39+
.explore-button {
40+
background-color: #007bff;
41+
border: none;
42+
padding: 10px 20px;
43+
color: white;
44+
border-radius: 5px;
45+
cursor: pointer;
46+
}
47+
48+
.person-image {
49+
position: absolute;
50+
bottom: 0;
51+
right: 0;
52+
height: 104%;
53+
border-radius: 10px;
54+
}
55+
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
import './FeatCards.css';
2+
import back1 from './back1.png';
3+
import back2 from './back2.png';
4+
import c1_1 from './c1-1.png';
5+
import c1_2 from './c1-2.png';
6+
import c1_3 from './c1-3.png';
7+
import c1_4 from './c1-4.png';
8+
import c2_1 from './c2-1.png';
9+
import c2_2 from './c2-2.png';
10+
import c2_3 from './c2-3.png';
11+
import c2_4 from './c2-4.png';
12+
import p1 from './p-1.png';
13+
import p2 from './p-2.png';
14+
15+
const FeatCards = () => {
16+
return (
17+
<div className="feat-cards" style={{ backgroundColor: '#081c2c' }}>
18+
<div className="card" style={{ backgroundImage: `url(${back1})` }}>
19+
<div className="card-content">
20+
<h2>Thousands of thrilling games.<br />Thousands of ways to win big.</h2>
21+
<div className="features">
22+
<div className="feature">
23+
<img src={c1_1} alt="New Releases" />
24+
New Releases
25+
</div>
26+
<div className="feature">
27+
<img src={c1_2} alt="Slots" />
28+
Slots
29+
</div>
30+
<div className="feature">
31+
<img src={c1_3} alt="Live Casino" />
32+
Live Casino
33+
</div>
34+
<div className="feature">
35+
<img src={c1_4} alt="Table Games" />
36+
Table Games
37+
</div>
38+
</div>
39+
<button className="explore-button">Explore Casino</button>
40+
</div>
41+
<img src={p1} alt="Person" className="person-image" />
42+
</div>
43+
<div className="card" style={{ backgroundImage: `url(${back2})` }}>
44+
<div className="card-content">
45+
<h2>Watch and bet on the biggest events across sports and beyond</h2>
46+
<div className="features">
47+
<div className="feature">
48+
<img src={c2_1} alt="Sports" />
49+
Sports
50+
</div>
51+
<div className="feature">
52+
<img src={c2_2} alt="Esports" />
53+
Esports
54+
</div>
55+
<div className="feature">
56+
<img src={c2_3} alt="Horse Racing" />
57+
Horse Racing
58+
</div>
59+
<div className="feature">
60+
<img src={c2_4} alt="Live Streams" />
61+
Live Streams
62+
</div>
63+
</div>
64+
<button className="explore-button">Explore Sports</button>
65+
</div>
66+
<img src={p2} alt="Person" className="person-image" />
67+
</div>
68+
</div>
69+
);
70+
};
71+
72+
export default FeatCards;

src/components/FeetCards/back1.png

14.3 KB
Loading

src/components/FeetCards/back2.png

17.4 KB
Loading

src/components/FeetCards/c1-1.png

4.66 KB
Loading

src/components/FeetCards/c1-2.png

4.08 KB
Loading

src/components/FeetCards/c1-3.png

4.84 KB
Loading

src/components/FeetCards/c1-4.png

3.61 KB
Loading

src/components/FeetCards/c2-1.png

4.13 KB
Loading

0 commit comments

Comments
 (0)