Skip to content

Commit 9ca14e8

Browse files
author
“CaitlinYoung7”
committed
styling altered, font changed, cards centre aligned
1 parent ae61682 commit 9ca14e8

File tree

5 files changed

+173
-123
lines changed

5 files changed

+173
-123
lines changed

src/components/Blackjack.module.css

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@
66
border-radius: 10px;
77
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
88
color: #f0f0f0;
9-
font-family: "Arial", sans-serif;
9+
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
1010
}
1111

1212
.gameArea {
1313
flex: 1;
1414
padding: 20px;
1515
}
1616

17+
.total {
18+
bottom: 0;
19+
margin-top: 20px;
20+
}
21+
1722
.sidebar {
1823
width: 200px;
1924
padding: 20px;
@@ -27,21 +32,27 @@
2732

2833
.hands {
2934
display: flex;
30-
flex-direction: column;
31-
gap: 20px;
35+
flex-direction: row;
36+
gap: 40px;
3237
margin-top: 20px;
38+
align-items: center;
39+
justify-content: center;
3340
}
3441

3542
.hand h3 {
36-
margin-bottom: 10px;
43+
margin-bottom: 20px;
3744
font-size: 1.2em;
3845
color: #f4c430;
46+
text-align: center;
3947
}
4048

4149
.cards {
4250
display: flex;
4351
flex-wrap: wrap;
44-
gap: 10px;
52+
gap: 20px;
53+
justify-content: center;
54+
align-items: center;
55+
margin-bottom: 20px;
4556
}
4657

4758
.actions {
@@ -51,8 +62,8 @@
5162
}
5263

5364
.actionButton {
54-
background-color: #d4af37;
55-
color: #1a1a1a;
65+
background-color: hsl(0, 0%, 0%);
66+
color: #ffdb26;
5667
border: none;
5768
padding: 12px 24px;
5869
margin: 0 10px;
@@ -66,6 +77,7 @@
6677

6778
.actionButton:hover {
6879
background-color: #f4c430;
80+
color: #000;
6981
transform: translateY(-2px);
7082
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
7183
}
@@ -79,26 +91,35 @@
7991
font-size: 18px;
8092
background-color: #062d1b;
8193
padding: 15px;
94+
font-weight: lighter;
8295
border-radius: 5px;
8396
margin-bottom: 20px;
8497
}
8598

8699
.stats p {
87100
margin-bottom: 10px;
101+
letter-spacing: 0.5px;
88102
font-weight: bold;
89103
}
90104

91105
.betting {
92106
display: flex;
93107
justify-content: center;
94108
align-items: center;
95-
margin-top: 20px;
109+
110+
margin-bottom: 40px;
111+
}
112+
113+
.headingblackjack {
114+
font-size: 22px;
115+
padding: 10px;
116+
font-weight: bold;
96117
}
97118

98119
.betInput {
99120
padding: 12px;
100121
font-size: 18px;
101-
width: 150px;
122+
width: 180px;
102123
margin-right: 10px;
103124
border: none;
104125
border-radius: 5px;
@@ -109,9 +130,11 @@
109130
.message {
110131
font-size: 24px;
111132
text-align: center;
133+
margin-top: 20px;
112134
margin-bottom: 20px;
113-
font-weight: bold;
114-
color: #f4c430;
135+
font-weight: 100;
136+
letter-spacing: 0.5px;
137+
color: #ffffff;
115138
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
116139
}
117140

@@ -125,4 +148,3 @@
125148
border-radius: 0 0 10px 10px;
126149
}
127150
}
128-

0 commit comments

Comments
 (0)