Skip to content

Commit 1979d33

Browse files
committed
visual ui ux and usability
1 parent af68d26 commit 1979d33

3 files changed

Lines changed: 90 additions & 41 deletions

File tree

‎.publish/docs/index.html‎

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@
515515
background: var(--bg-secondary);
516516
border-bottom: 1px solid var(--border-color);
517517
padding: 2rem 2rem 1.5rem;
518+
max-height: 500px;
519+
overflow: hidden;
520+
transition: max-height 0.3s ease, padding 0.3s ease;
518521
}
519522

520523
.welcome-content {
@@ -561,6 +564,11 @@
561564
transition: transform 0.3s ease;
562565
}
563566

567+
.welcome-section.collapsed {
568+
padding: 0.75rem 2rem;
569+
max-height: 60px;
570+
}
571+
564572
.welcome-section.collapsed .welcome-text {
565573
display: none;
566574
}
@@ -690,13 +698,22 @@
690698
flex-shrink: 0;
691699
}
692700

701+
.github-star-count {
702+
opacity: 0.7;
703+
font-size: 0.8rem;
704+
margin-left: 0.25rem;
705+
}
706+
693707
@media (max-width: 640px) {
694708
.github-link span {
695709
display: none;
696710
}
697711
.github-link {
698712
padding: 0.5rem;
699713
}
714+
.github-star-count {
715+
display: none;
716+
}
700717
}
701718

702719
/* Theme Switcher */
@@ -2327,7 +2344,7 @@
23272344
"url": "https://cloudprojects.dev",
23282345
"logo": "https://cloudprojects.dev/og-image.png",
23292346
"sameAs": [
2330-
"https://github.com/mzazon/awesome-cloud-projects"
2347+
"https://github.com/mzazon/cloud-projects"
23312348
]
23322349
},
23332350
{
@@ -2388,18 +2405,20 @@ <h1 class="logo-text">CloudProjects</h1>
23882405
</button>
23892406
<button class="nav-btn" data-view="paths">
23902407
Learning Paths
2408+
<span class="count" id="paths-count">0</span>
23912409
</button>
23922410
<button class="nav-btn" data-view="favorites">
23932411
My Favorites
23942412
<span class="count" id="favorites-count">0</span>
23952413
</button>
23962414

2397-
<!-- GitHub Link -->
2398-
<a href="https://github.com/mzazon/awesome-cloud-projects" target="_blank" rel="noopener" class="github-link" title="View on GitHub">
2415+
<!-- GitHub Star Button -->
2416+
<a href="https://github.com/mzazon/cloud-projects" target="_blank" rel="noopener" class="github-link" title="Star us on GitHub">
23992417
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
24002418
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
24012419
</svg>
2402-
<span>View on GitHub</span>
2420+
<span>⭐ Star on GitHub</span>
2421+
<span class="github-star-count" id="github-star-count">...</span>
24032422
</a>
24042423

24052424
<!-- Theme Switcher -->
@@ -2463,9 +2482,9 @@ <h1 class="logo-text">CloudProjects</h1>
24632482
<!-- Beta Notice Banner -->
24642483
<div class="beta-notice" id="beta-notice">
24652484
<div class="beta-notice-content">
2466-
<div class="beta-notice-icon">🚀</div>
2485+
<div class="beta-notice-icon">ℹ️</div>
24672486
<div class="beta-notice-text">
2468-
<strong>Welcome to the beta experience of the CloudProjects site!</strong> This site is under active development. We developed this in response to many requests for a better search and sort experience for finding the cloud projects that you would like to learn from and work on. If you encounter any issues or have requests, please open an issue on our <a href="https://github.com/mzazon/awesome-cloud-projects/issues/new" target="_blank" rel="noopener">GitHub repository</a>.
2487+
<strong>Welcome to the CloudProjects site!</strong> This site is under active development. We developed this in response to many requests for a better search and sort experience for finding the cloud projects that you would like to learn from and work on. If you encounter any issues, have suggestions or requests, please open an issue on our <a href="https://github.com/mzazon/awesome-cloud-projects/issues/new" target="_blank" rel="noopener">GitHub repository</a>. Also, please feel free to contribute and open pull requests!
24692488
</div>
24702489
<button class="beta-notice-toggle" id="beta-notice-toggle" aria-label="Close notice">✕</button>
24712490
</div>
@@ -2483,6 +2502,9 @@ <h1 class="logo-text">CloudProjects</h1>
24832502
<p class="welcome-text">
24842503
A collection of cloud architecture recipes, tutorials, and real-world solutions across <strong>Amazon Web Services (AWS)</strong>, <strong>Microsoft Azure</strong>, and <strong>Google Cloud Platform (GCP)</strong>.
24852504
</p>
2505+
<p class="welcome-text">
2506+
Each project includes <strong>complete infrastructure as code templates</strong> in all popular formats: Terraform, CloudFormation, AWS CDK (TypeScript & Python), Azure Bicep, and Bash scripts. Deploy, customize, and learn from production-ready code.
2507+
</p>
24862508
<button class="welcome-toggle" id="welcome-toggle">
24872509
<span class="welcome-toggle-icon">▼</span>
24882510
<span class="welcome-toggle-text">Hide introduction</span>
@@ -2720,7 +2742,7 @@ <h3>No favorites yet</h3>
27202742
<footer class="footer">
27212743
<div class="footer-content">
27222744
<div class="footer-links">
2723-
<a href="https://github.com/mzazon/awesome-cloud-projects" target="_blank">GitHub Repository</a>
2745+
<a href="https://github.com/mzazon/cloud-projects" target="_blank">GitHub Repository</a>
27242746
<a href="#" id="keyboard-shortcuts">Keyboard Shortcuts</a>
27252747
</div>
27262748
<p>Built with ❤️ for the cloud community. Press <kbd class="kbd">/</kbd> to search.</p>
@@ -3597,6 +3619,23 @@ <h3 class="learning-path-title">${path.name}</h3>
35973619
});
35983620
}
35993621

3622+
// =====================================================
3623+
// GITHUB STAR COUNT
3624+
// =====================================================
3625+
3626+
async function fetchGitHubStars() {
3627+
try {
3628+
const response = await fetch('https://api.github.com/repos/mzazon/cloud-projects');
3629+
const data = await response.json();
3630+
const starCount = data.stargazers_count || 0;
3631+
const formattedCount = starCount.toLocaleString();
3632+
document.getElementById('github-star-count').textContent = formattedCount;
3633+
} catch (error) {
3634+
console.error('Failed to fetch GitHub stars:', error);
3635+
document.getElementById('github-star-count').textContent = '';
3636+
}
3637+
}
3638+
36003639
// =====================================================
36013640
// INITIALIZATION
36023641
// =====================================================
@@ -3607,6 +3646,7 @@ <h3 class="learning-path-title">${path.name}</h3>
36073646
initBurgerMenu();
36083647
initBetaNotice();
36093648
initWelcomeSection();
3649+
fetchGitHubStars();
36103650

36113651
// Render initial state
36123652
updateProviderCounts();

‎.publish/templates/README.jinja2‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The format of these recipes has been inspired by [AWS Cookbook, by O'Reilly Medi
3333
- **{{ provider.upper() }} Projects**: {{ count }}
3434
{%- endfor %}
3535
- **Categories**: {{ statistics.categories_with_recipes }}
36-
- **Average Difficulty**: {{ statistics.average_difficulty }}/4.0
36+
- **Average Difficulty**: {{ statistics.average_difficulty }}/400
3737

3838
{% if statistics.top_services %}
3939
### 🏆 Most Used Services

‎.publish/templates/site/index.html‎

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@
515515
background: var(--bg-secondary);
516516
border-bottom: 1px solid var(--border-color);
517517
padding: 2rem 2rem 1.5rem;
518+
max-height: 500px;
519+
overflow: hidden;
520+
transition: max-height 0.3s ease, padding 0.3s ease;
518521
}
519522

520523
.welcome-content {
@@ -561,6 +564,11 @@
561564
transition: transform 0.3s ease;
562565
}
563566

567+
.welcome-section.collapsed {
568+
padding: 0.75rem 2rem;
569+
max-height: 60px;
570+
}
571+
564572
.welcome-section.collapsed .welcome-text {
565573
display: none;
566574
}
@@ -690,34 +698,20 @@
690698
flex-shrink: 0;
691699
}
692700

701+
.github-star-count {
702+
opacity: 0.7;
703+
font-size: 0.8rem;
704+
margin-left: 0.25rem;
705+
}
706+
693707
@media (max-width: 640px) {
694708
.github-link span {
695709
display: none;
696710
}
697711
.github-link {
698712
padding: 0.5rem;
699713
}
700-
}
701-
702-
/* GitHub Star Badge */
703-
.github-star-badge {
704-
display: flex;
705-
align-items: center;
706-
text-decoration: none;
707-
transition: all var(--transition-fast);
708-
}
709-
710-
.github-star-badge img {
711-
height: 20px;
712-
transition: transform var(--transition-fast);
713-
}
714-
715-
.github-star-badge:hover img {
716-
transform: scale(1.05);
717-
}
718-
719-
@media (max-width: 640px) {
720-
.github-star-badge {
714+
.github-star-count {
721715
display: none;
722716
}
723717
}
@@ -2350,7 +2344,7 @@
23502344
"url": "https://cloudprojects.dev",
23512345
"logo": "https://cloudprojects.dev/og-image.png",
23522346
"sameAs": [
2353-
"https://github.com/mzazon/awesome-cloud-projects"
2347+
"https://github.com/mzazon/cloud-projects"
23542348
]
23552349
},
23562350
{
@@ -2411,23 +2405,20 @@ <h1 class="logo-text">CloudProjects</h1>
24112405
</button>
24122406
<button class="nav-btn" data-view="paths">
24132407
Learning Paths
2408+
<span class="count" id="paths-count">0</span>
24142409
</button>
24152410
<button class="nav-btn" data-view="favorites">
24162411
My Favorites
24172412
<span class="count" id="favorites-count">0</span>
24182413
</button>
24192414

2420-
<!-- GitHub Link -->
2421-
<a href="https://github.com/mzazon/awesome-cloud-projects" target="_blank" rel="noopener" class="github-link" title="View on GitHub">
2415+
<!-- GitHub Star Button -->
2416+
<a href="https://github.com/mzazon/cloud-projects" target="_blank" rel="noopener" class="github-link" title="Star us on GitHub">
24222417
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
24232418
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
24242419
</svg>
2425-
<span>View on GitHub</span>
2426-
</a>
2427-
2428-
<!-- GitHub Star Badge -->
2429-
<a href="https://github.com/mzazon/awesome-cloud-projects/stargazers" target="_blank" rel="noopener" class="github-star-badge" title="Star us on GitHub">
2430-
<img src="https://img.shields.io/github/stars/mzazon/cloud-projects.svg?style=social&label=Star" alt="GitHub stars" loading="lazy">
2420+
<span>⭐ Star on GitHub</span>
2421+
<span class="github-star-count" id="github-star-count">...</span>
24312422
</a>
24322423

24332424
<!-- Theme Switcher -->
@@ -2491,9 +2482,9 @@ <h1 class="logo-text">CloudProjects</h1>
24912482
<!-- Beta Notice Banner -->
24922483
<div class="beta-notice" id="beta-notice">
24932484
<div class="beta-notice-content">
2494-
<div class="beta-notice-icon">🚀</div>
2485+
<div class="beta-notice-icon">ℹ️</div>
24952486
<div class="beta-notice-text">
2496-
<strong>Welcome to the CloudProjects site!</strong> This site is under active development. We developed this in response to many requests for a better search and sort experience for finding the cloud projects that you would like to learn from and work on. If you encounter any issues, have suggestions or requests, please open an issue on our <a href="https://github.com/mzazon/awesome-cloud-projects/issues/new" target="_blank" rel="noopener">GitHub repository</a>. Also, please feel free to contribute and open pull requests!
2487+
<strong>Welcome to the CloudProjects site!</strong> This site is under active development. We developed this in response to many requests for a better search and sort experience for finding the cloud projects that you would like to learn from and work on. If you encounter any issues, have suggestions or requests, please open an issue on our <a href="https://github.com/mzazon/cloud-projects/issues/new" target="_blank" rel="noopener">GitHub repository</a>. Also, please feel free to contribute and open pull requests!
24972488
</div>
24982489
<button class="beta-notice-toggle" id="beta-notice-toggle" aria-label="Close notice">✕</button>
24992490
</div>
@@ -2751,7 +2742,7 @@ <h3>No favorites yet</h3>
27512742
<footer class="footer">
27522743
<div class="footer-content">
27532744
<div class="footer-links">
2754-
<a href="https://github.com/mzazon/awesome-cloud-projects" target="_blank">GitHub Repository</a>
2745+
<a href="https://github.com/mzazon/cloud-projects" target="_blank">GitHub Repository</a>
27552746
<a href="#" id="keyboard-shortcuts">Keyboard Shortcuts</a>
27562747
</div>
27572748
<p>Built with ❤️ for the cloud community. Press <kbd class="kbd">/</kbd> to search.</p>
@@ -3628,6 +3619,23 @@ <h3 class="learning-path-title">${path.name}</h3>
36283619
});
36293620
}
36303621

3622+
// =====================================================
3623+
// GITHUB STAR COUNT
3624+
// =====================================================
3625+
3626+
async function fetchGitHubStars() {
3627+
try {
3628+
const response = await fetch('https://api.github.com/repos/mzazon/cloud-projects');
3629+
const data = await response.json();
3630+
const starCount = data.stargazers_count || 0;
3631+
const formattedCount = starCount.toLocaleString();
3632+
document.getElementById('github-star-count').textContent = formattedCount;
3633+
} catch (error) {
3634+
console.error('Failed to fetch GitHub stars:', error);
3635+
document.getElementById('github-star-count').textContent = '';
3636+
}
3637+
}
3638+
36313639
// =====================================================
36323640
// INITIALIZATION
36333641
// =====================================================
@@ -3638,6 +3646,7 @@ <h3 class="learning-path-title">${path.name}</h3>
36383646
initBurgerMenu();
36393647
initBetaNotice();
36403648
initWelcomeSection();
3649+
fetchGitHubStars();
36413650

36423651
// Render initial state
36433652
updateProviderCounts();

0 commit comments

Comments
 (0)