Skip to content

Commit acdab80

Browse files
authored
Merge pull request #1158 from vansh-codes/main
2 parents bfaffce + a1c081f commit acdab80

File tree

5 files changed

+98
-8
lines changed

5 files changed

+98
-8
lines changed

Website/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
server/node_modules
2+
node_modules
3+
server/.env
4+
.env

Website/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@
6161
```bash
6262
git push origin <your_branch_name>
6363
```
64+
65+
> [!NOTE]
66+
> If you're having trouble cloning the repository on your system, try running the following commands to optimize Git for large repositories and slower connections:
67+
>
68+
> ```bash
69+
> git config --global core.compression 9
70+
> git config --global http.maxRequestBuffer 1G
71+
> git config --global http.lowSpeedLimit 0
72+
> git config --global http.lowSpeedTime 999999
73+
> git config --global http.postBuffer 1048576000
74+
> ```
75+
>
76+
> Alternatively, you can use [GitHub Codespaces](https://github.com/features/codespaces) to clone and work on the repository in a cloud environment.
77+
6478
- Go to your forked repository on GitHub and click on `Compare & pull request`.
6579
- Add an appropriate title and description to your pull request explaining your changes and efforts done.
6680
- Click on `Create pull request`.

Website/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h2>Welcome to the Machine Learning Repositories</h2>
3737

3838
<!-- Toggle button for Repository Statistics -->
3939
<section>
40-
<button id="toggle-stats">Show/Hide Repository Statistics</button>
40+
<button id="toggle-stats"><span id="display">Show</span> Repository Statistics</button>
4141
</section>
4242

4343
<!-- Statistics Cards -->
@@ -86,7 +86,7 @@ <h2>Repositories</h2>
8686
</main>
8787

8888
<footer class="footer">
89-
<p>&copy; 2024 Machine Learning Repos - <a href="https://github.com/recodehive">RecodeHive</a>. All rights reserved.</p>
89+
<p>&copy; 2024 Machine Learning Repos - <a href="https://github.com/recodehive" id="footer-link">RecodeHive</a>. All rights reserved.</p>
9090
</footer>
9191

9292
<script src="js/script.js"></script>

Website/js/script.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@ document.addEventListener('DOMContentLoaded', function() {
3636
function toggleLanguagesSection() {
3737
const toggleLanguagesButton = document.createElement('button');
3838
toggleLanguagesButton.id = 'toggle-languages';
39-
toggleLanguagesButton.textContent = 'Show/Hide Languages Used';
39+
toggleLanguagesButton.textContent = 'Show Languages Used';
4040
const languagesList = document.getElementById('language-list');
4141
document.getElementById('languages').insertBefore(toggleLanguagesButton, languagesList);
4242

4343
languagesList.style.display = 'none';
4444

4545
toggleLanguagesButton.addEventListener('click', function() {
4646
languagesList.style.display = languagesList.style.display === 'none' ? 'block' : 'none';
47+
toggleLanguagesButton.textContent = languagesList.style.display === 'none' ? 'Show Languages Used' : 'Hide Languages Used';
4748
});
4849
}
4950

@@ -97,10 +98,12 @@ document.addEventListener('DOMContentLoaded', function() {
9798
function toggleStatsSection() {
9899
const toggleButton = document.getElementById('toggle-stats');
99100
const statsSection = document.getElementById('statistics-cards');
101+
const toggleTextDisplay = document.getElementById('display');
100102
statsSection.style.display = 'none';
101103

102104
toggleButton.addEventListener('click', function() {
103105
statsSection.style.display = statsSection.style.display === 'none' ? 'block' : 'none';
106+
toggleTextDisplay.textContent = statsSection.style.display === 'none' ? 'Show' : 'Hide';
104107
});
105108
}
106109

Website/styles.css

Lines changed: 74 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ html, body {
66
}
77

88
body {
9-
background-color: #0a0a2e; /* Darkest blue */
10-
color: #f1f1f1;
9+
background-color: #f4f4f4;
1110
font-family: 'Arial', sans-serif;
1211
display: flex;
1312
flex-direction: column;
1413
}
1514

1615
header {
17-
background-color: #121245; /* Slightly lighter dark blue */
16+
background-color: #333;
1817
padding: 10px 20px;
1918
}
2019

@@ -52,6 +51,10 @@ header {
5251
white-space: nowrap; /* Prevents wrapping of links */
5352
}
5453

54+
.nav-links a:hover{
55+
text-decoration: underline;
56+
}
57+
5558
main {
5659
padding: 20px;
5760
flex: 1; /* Makes main content take up the remaining space */
@@ -85,12 +88,13 @@ button#toggle-stats {
8588
}
8689

8790
button#toggle-stats:hover {
88-
background-color: #2a2a7e; /* Lighter blue on hover */
91+
background-color: #2a2a7e;
8992
}
9093

9194
#statistics-cards {
9295
display: none;
9396
text-align: center;
97+
color: black;
9498
}
9599

96100
.stats-grid {
@@ -101,7 +105,7 @@ button#toggle-stats:hover {
101105
}
102106

103107
.stat-card {
104-
background-color: #121245; /* Dark blue for stat cards */
108+
background-color: white;
105109
padding: 20px;
106110
border-radius: 8px;
107111
width: 150px;
@@ -142,6 +146,9 @@ button#toggle-stats:hover {
142146
text-align: center;
143147
margin-top: auto;
144148
}
149+
#footer-link{
150+
color: white
151+
}
145152

146153
button#toggle-languages {
147154
display: block;
@@ -158,3 +165,65 @@ button#toggle-languages {
158165
button#toggle-languages:hover {
159166
background-color: #2a2a7e; /* Lighter blue on hover */
160167
}
168+
169+
#repo-list {
170+
margin: 20px auto;
171+
max-width: 1200px;
172+
padding: 0 20px;
173+
}
174+
175+
#directories {
176+
display: flex;
177+
flex-wrap: wrap;
178+
justify-content: center;
179+
gap: 20px;
180+
list-style-type: none;
181+
padding: 0;
182+
margin-top: 50px;
183+
margin-bottom: 100px;
184+
}
185+
186+
.card {
187+
background: #fff;
188+
border: 1px solid #ddd;
189+
border-radius: 8px;
190+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
191+
flex: 1 1 calc(33.333% - 20px);
192+
max-width: calc(33.333% - 20px);
193+
padding: 20px;
194+
box-sizing: border-box;
195+
transition: transform 0.3s ease, box-shadow 0.3s ease;
196+
}
197+
198+
.card:hover {
199+
transform: translateY(-10px);
200+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
201+
}
202+
.card .btn-view-repo {
203+
display: inline-block;
204+
padding: 0.5rem 1rem;
205+
color: white;
206+
background-color: #1a1a5e;
207+
text-decoration: none;
208+
border-radius: 0.25rem;
209+
font-size: 0.875rem;
210+
}
211+
212+
.card .btn-view-repo:hover{
213+
background-color:#2a2a7e;
214+
}
215+
216+
217+
@media (max-width: 768px) {
218+
.card {
219+
flex: 1 1 calc(50% - 20px);
220+
max-width: calc(50% - 20px);
221+
}
222+
}
223+
224+
@media (max-width: 480px) {
225+
.card {
226+
flex: 1 1 100%;
227+
max-width: 100%;
228+
}
229+
}

0 commit comments

Comments
 (0)