|
1 |
| -body { |
2 |
| - font-family: Arial, sans-serif; |
| 1 | +/* Ensure full height of the body and remove margin/padding */ |
| 2 | +html, body { |
| 3 | + height: 100%; |
3 | 4 | margin: 0;
|
4 | 5 | padding: 0;
|
5 |
| - background-color: #f4f4f4; |
6 |
| - overflow-y: auto; |
7 | 6 | }
|
8 | 7 |
|
| 8 | +body { |
| 9 | + background-color: #0a0a2e; /* Darkest blue */ |
| 10 | + color: #f1f1f1; |
| 11 | + font-family: 'Arial', sans-serif; |
| 12 | + display: flex; |
| 13 | + flex-direction: column; |
| 14 | +} |
9 | 15 |
|
10 |
| -/* Header Styles */ |
11 | 16 | header {
|
12 |
| - background-color: #333; |
13 |
| - color: white; |
14 |
| - padding: 20px 20px; |
| 17 | + background-color: #121245; /* Slightly lighter dark blue */ |
| 18 | + padding: 10px 20px; |
| 19 | +} |
| 20 | + |
| 21 | +.navbar { |
15 | 22 | display: flex;
|
16 | 23 | justify-content: space-between;
|
17 | 24 | align-items: center;
|
18 | 25 | }
|
19 | 26 |
|
20 |
| -header h1 { |
21 |
| - margin: 0; |
22 |
| - text-align: left; |
| 27 | +.logo-container { |
| 28 | + display: flex; |
| 29 | + align-items: center; |
| 30 | + margin-right: 20px; /* Adds space between logo and links */ |
23 | 31 | }
|
24 | 32 |
|
25 |
| -nav ul { |
26 |
| - list-style: none; |
27 |
| - padding: 0; |
28 |
| - margin: 0; |
29 |
| - display: flex; |
| 33 | +.brand-name { |
| 34 | + font-size: 1.5em; |
| 35 | + color: #f1f1f1; |
30 | 36 | }
|
31 | 37 |
|
32 |
| -nav ul li { |
33 |
| - margin: 0 15px; |
| 38 | +.nav-links { |
| 39 | + list-style: none; |
| 40 | + display: flex; |
| 41 | + flex-grow: 1; /* Makes the nav links take up available space */ |
| 42 | + justify-content: flex-end; /* Align links to the left */ |
| 43 | + gap: 50px; /* Adds space between each link */ |
| 44 | + margin-left: 20px; |
| 45 | + right: 10px; /* Adjust this value for the gap between logo and links */ |
34 | 46 | }
|
35 | 47 |
|
36 |
| -nav ul li a { |
37 |
| - color: white; |
| 48 | +.nav-links a { |
38 | 49 | text-decoration: none;
|
| 50 | + color: #f1f1f1; |
39 | 51 | font-weight: bold;
|
| 52 | + white-space: nowrap; /* Prevents wrapping of links */ |
40 | 53 | }
|
41 | 54 |
|
42 |
| -/* Main Section Styles */ |
43 | 55 | main {
|
44 | 56 | padding: 20px;
|
45 |
| - text-align: center; |
| 57 | + flex: 1; /* Makes main content take up the remaining space */ |
46 | 58 | }
|
47 | 59 |
|
48 |
| -.cta-button { |
49 |
| - display: inline-block; |
50 |
| - padding: 10px 20px; |
51 |
| - background-color: #007bff; |
52 |
| - color: white; |
53 |
| - text-decoration: none; |
54 |
| - border-radius: 5px; |
55 |
| - margin-top: 20px; |
| 60 | +.welcome-section { |
| 61 | + text-align: center; |
| 62 | + margin-bottom: 30px; |
56 | 63 | }
|
57 | 64 |
|
58 |
| -/* Statistics Cards Styles */ |
59 |
| -.stats-grid { |
60 |
| - display: grid; |
61 |
| - grid-template-columns: repeat(4, 1fr); |
62 |
| - gap: 1rem; |
63 |
| - margin-top: 2rem; |
64 |
| - padding: 20px; |
| 65 | +h2 { |
| 66 | + font-size: 2em; |
| 67 | + margin-bottom: 20px; |
65 | 68 | }
|
66 | 69 |
|
67 |
| -.stat-card { |
68 |
| - background-color: #fff; |
69 |
| - padding: 20px; |
70 |
| - border-radius: 10px; |
71 |
| - text-align: center; |
72 |
| - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); |
| 70 | +p { |
| 71 | + font-size: 1.2em; |
| 72 | + line-height: 1.6; |
73 | 73 | }
|
74 | 74 |
|
75 |
| -.stat-card h3 { |
76 |
| - margin-bottom: 0.5rem; |
77 |
| - color: #007bff; |
| 75 | +button#toggle-stats { |
| 76 | + display: block; |
| 77 | + margin: 0 auto 20px auto; |
| 78 | + padding: 10px 20px; |
| 79 | + font-size: 1.1em; |
| 80 | + background-color: #1a1a5e; /* Dark blue button */ |
| 81 | + color: #f1f1f1; |
| 82 | + border: none; |
| 83 | + cursor: pointer; |
| 84 | + transition: background-color 0.3s ease; |
78 | 85 | }
|
79 | 86 |
|
80 |
| -/* Responsive Adjustments */ |
81 |
| -@media (max-width: 768px) { |
82 |
| - .stats-grid, |
83 |
| - .contributors-grid { |
84 |
| - grid-template-columns: 1fr; |
85 |
| - } |
| 87 | +button#toggle-stats:hover { |
| 88 | + background-color: #2a2a7e; /* Lighter blue on hover */ |
86 | 89 | }
|
87 | 90 |
|
88 |
| -/* Language List Styles */ |
89 |
| -#languages ul { |
90 |
| - list-style: none; |
91 |
| - padding: 0; |
92 |
| - margin: 0; |
| 91 | +#statistics-cards { |
| 92 | + display: none; |
| 93 | + text-align: center; |
93 | 94 | }
|
94 | 95 |
|
95 |
| -#languages li { |
96 |
| - margin-bottom: 0.5rem; |
| 96 | +.stats-grid { |
97 | 97 | display: flex;
|
98 |
| - align-items: center; |
99 |
| -} |
100 |
| - |
101 |
| -.language-bar { |
102 |
| - flex-grow: 1; |
103 |
| - height: 10px; |
104 |
| - border-radius: 5px; |
105 |
| - margin-left: 0.5rem; |
106 |
| - background-color: #007bff; |
| 98 | + justify-content: center; |
| 99 | + gap: 20px; |
| 100 | + flex-wrap: wrap; |
107 | 101 | }
|
108 | 102 |
|
109 |
| -/* Footer Styles */ |
110 |
| -footer { |
111 |
| - background-color: #333; |
112 |
| - color: white; |
| 103 | +.stat-card { |
| 104 | + background-color: #121245; /* Dark blue for stat cards */ |
| 105 | + padding: 20px; |
| 106 | + border-radius: 8px; |
| 107 | + width: 150px; |
113 | 108 | text-align: center;
|
114 |
| - padding: 10px 0; |
115 |
| - position: fixed; |
116 |
| - width: 100%; |
117 |
| - bottom: 0; |
| 109 | + margin-bottom: 20px; |
118 | 110 | }
|
119 | 111 |
|
120 |
| -footer a { |
121 |
| - text-decoration: none; |
122 |
| - color: #f4f4f4; |
| 112 | +.stat-card h3 { |
| 113 | + font-size: 1.2em; |
| 114 | + margin-bottom: 10px; |
123 | 115 | }
|
124 | 116 |
|
125 |
| -#repo-list { |
126 |
| - margin: 20px auto; |
127 |
| - max-width: 1200px; |
128 |
| - padding: 0 20px; |
| 117 | +#languages { |
| 118 | + text-align: center; |
| 119 | + margin-bottom: 30px; |
129 | 120 | }
|
130 | 121 |
|
131 |
| -#directories { |
132 |
| - display: flex; |
133 |
| - flex-wrap: wrap; |
134 |
| - justify-content: center; |
135 |
| - gap: 20px; |
136 |
| - list-style-type: none; |
| 122 | +#language-list { |
| 123 | + list-style: none; |
137 | 124 | padding: 0;
|
138 |
| - margin-top: 50px; |
139 |
| - margin-bottom: 100px; |
140 |
| -} |
141 |
| - |
142 |
| -.card { |
143 |
| - background: #fff; |
144 |
| - border: 1px solid #ddd; |
145 |
| - border-radius: 8px; |
146 |
| - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
147 |
| - flex: 1 1 calc(33.333% - 20px); |
148 |
| - max-width: calc(33.333% - 20px); |
149 |
| - padding: 20px; |
150 |
| - box-sizing: border-box; |
151 |
| - transition: transform 0.3s ease, box-shadow 0.3s ease; |
| 125 | + display: inline-block; |
| 126 | + text-align: center; |
| 127 | + column-count: 4; /* Adjust this value to increase or decrease the number of columns */ |
| 128 | + column-gap: 40px; /* Space between columns */ |
152 | 129 | }
|
153 | 130 |
|
154 |
| -.card:hover { |
155 |
| - transform: translateY(-10px); |
156 |
| - box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); |
157 |
| -} |
158 |
| -.card .btn-view-repo { |
159 |
| - display: inline-block; |
160 |
| - padding: 0.5rem 1rem; |
161 |
| - color: rgb(33, 16, 189); |
162 |
| - text-decoration: none; |
163 |
| - border-radius: 0.25rem; |
164 |
| - font-size: 0.875rem; |
| 131 | +#language-list li { |
| 132 | + margin: 10px 0; |
| 133 | + text-align: left; /* Align text to the left within each column */ |
165 | 134 | }
|
166 | 135 |
|
167 | 136 |
|
168 |
| -@media (max-width: 768px) { |
169 |
| - .card { |
170 |
| - flex: 1 1 calc(50% - 20px); |
171 |
| - max-width: calc(50% - 20px); |
172 |
| - } |
| 137 | +/* Footer stays at the bottom */ |
| 138 | +.footer { |
| 139 | + background-color: #121245; /* Dark blue for footer */ |
| 140 | + color: #f1f1f1; |
| 141 | + padding: 20px; |
| 142 | + text-align: center; |
| 143 | + margin-top: auto; |
173 | 144 | }
|
174 | 145 |
|
175 |
| -@media (max-width: 480px) { |
176 |
| - .card { |
177 |
| - flex: 1 1 100%; |
178 |
| - max-width: 100%; |
179 |
| - } |
| 146 | +button#toggle-languages { |
| 147 | + display: block; |
| 148 | + margin: 20px auto; |
| 149 | + padding: 10px 20px; |
| 150 | + font-size: 1.1em; |
| 151 | + background-color: #1a1a5e; /* Dark blue button */ |
| 152 | + color: #f1f1f1; |
| 153 | + border: none; |
| 154 | + cursor: pointer; |
| 155 | + transition: background-color 0.3s ease; |
180 | 156 | }
|
181 |
| -/* Additional Styles for Responsiveness */ |
182 |
| -@media (max-width: 768px) { |
183 |
| - .stats-grid { |
184 |
| - grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); |
185 |
| - } |
186 | 157 |
|
187 |
| - .contributors-grid { |
188 |
| - grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); |
189 |
| - } |
| 158 | +button#toggle-languages:hover { |
| 159 | + background-color: #2a2a7e; /* Lighter blue on hover */ |
190 | 160 | }
|
0 commit comments