Jaouadart commited on
Commit
5d665ef
·
verified ·
1 Parent(s): e972da8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +20 -12
index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
2
  <html lang="ar" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
@@ -32,20 +32,23 @@
32
  background-color: #3F51B5;
33
  color: white;
34
  padding: 1rem;
35
- border-radius: 9999px;
 
 
 
36
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
37
  display: flex;
38
  align-items: center;
39
  justify-content: space-between;
40
- width: 95%;
41
- margin: 0 auto;
42
  }
43
  .grid-container {
44
  display: grid;
45
  grid-template-columns: repeat(2, 1fr);
46
- gap: 0.5rem; /* Reduced gap */
47
  margin-top: 1.5rem;
48
- padding: 0 0.25rem; /* Reduced padding */
49
  }
50
  .card, .alphabet-card {
51
  padding: 1rem;
@@ -57,7 +60,8 @@
57
  flex-direction: column;
58
  align-items: center;
59
  text-align: center;
60
- min-height: 14rem; /* Increased min height */
 
61
  position: relative;
62
  background-color: #FFB74D;
63
  }
@@ -65,19 +69,23 @@
65
  transform: scale(1.05);
66
  }
67
  .card-image {
68
- width: 150px; /* Increased size */
69
- height: 150px; /* Increased size */
70
  margin-bottom: 0.5rem;
71
  object-fit: contain;
72
  position: absolute;
73
- top: 1rem;
 
 
74
  }
75
  .card-text {
76
- font-size: 1.25rem;
77
  font-weight: bold;
78
  color: #333;
79
  position: absolute;
80
- bottom: 1rem;
 
 
81
  }
82
  .alphabet-card {
83
  background-color: white;
 
1
+ <!DOCTYPE html>
2
  <html lang="ar" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
 
32
  background-color: #3F51B5;
33
  color: white;
34
  padding: 1rem;
35
+ border-top-left-radius: 0.75rem;
36
+ border-top-right-radius: 0.75rem;
37
+ border-bottom-left-radius: 0;
38
+ border-bottom-right-radius: 0;
39
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
40
  display: flex;
41
  align-items: center;
42
  justify-content: space-between;
43
+ width: 100%;
44
+ margin: 0;
45
  }
46
  .grid-container {
47
  display: grid;
48
  grid-template-columns: repeat(2, 1fr);
49
+ gap: 1rem;
50
  margin-top: 1.5rem;
51
+ padding: 0 1rem;
52
  }
53
  .card, .alphabet-card {
54
  padding: 1rem;
 
60
  flex-direction: column;
61
  align-items: center;
62
  text-align: center;
63
+ min-height: 12rem; /* Adjusted for smaller size */
64
+ aspect-ratio: 1 / 1;
65
  position: relative;
66
  background-color: #FFB74D;
67
  }
 
69
  transform: scale(1.05);
70
  }
71
  .card-image {
72
+ width: 120px; /* Adjusted image size */
73
+ height: 120px; /* Adjusted image size */
74
  margin-bottom: 0.5rem;
75
  object-fit: contain;
76
  position: absolute;
77
+ top: 50%;
78
+ left: 50%;
79
+ transform: translate(-50%, -60%);
80
  }
81
  .card-text {
82
+ font-size: 1.1rem; /* Adjusted font size */
83
  font-weight: bold;
84
  color: #333;
85
  position: absolute;
86
+ bottom: 1.5rem;
87
+ left: 50%;
88
+ transform: translateX(-50%);
89
  }
90
  .alphabet-card {
91
  background-color: white;