Spaces:
Running
Running
debug and improved
Browse files- about.html +2 -1
- community.html +1 -1
- components/footer.js +115 -6
- components/navbar.js +74 -4
- courses.html +1 -1
- index.html +3 -4
- resources.html +1 -1
- style.css +68 -18
- tutorials.html +1 -1
about.html
CHANGED
|
@@ -89,7 +89,8 @@ tailwind.config = {
|
|
| 89 |
</div>
|
| 90 |
</section>
|
| 91 |
<custom-footer></custom-footer>
|
| 92 |
-
<script>
|
|
|
|
| 93 |
feather.replace();
|
| 94 |
</script>
|
| 95 |
</body>
|
|
|
|
| 89 |
</div>
|
| 90 |
</section>
|
| 91 |
<custom-footer></custom-footer>
|
| 92 |
+
<script src="script.js"></script>
|
| 93 |
+
<script>
|
| 94 |
feather.replace();
|
| 95 |
</script>
|
| 96 |
</body>
|
community.html
CHANGED
|
@@ -174,7 +174,7 @@
|
|
| 174 |
</div>
|
| 175 |
</div>
|
| 176 |
</footer>
|
| 177 |
-
|
| 178 |
<script>
|
| 179 |
feather.replace();
|
| 180 |
</script>
|
|
|
|
| 174 |
</div>
|
| 175 |
</div>
|
| 176 |
</footer>
|
| 177 |
+
<script src="script.js"></script>
|
| 178 |
<script>
|
| 179 |
feather.replace();
|
| 180 |
</script>
|
components/footer.js
CHANGED
|
@@ -1,19 +1,128 @@
|
|
|
|
|
| 1 |
class CustomFooter extends HTMLElement {
|
| 2 |
connectedCallback() {
|
| 3 |
this.attachShadow({ mode: 'open' });
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
transition: color 0.2s ease;
|
| 11 |
}
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
</style>
|
| 16 |
-
|
| 17 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
| 18 |
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
|
| 19 |
<div class="col-span-2">
|
|
|
|
| 1 |
+
|
| 2 |
class CustomFooter extends HTMLElement {
|
| 3 |
connectedCallback() {
|
| 4 |
this.attachShadow({ mode: 'open' });
|
| 5 |
this.shadowRoot.innerHTML = `
|
| 6 |
<style>
|
| 7 |
+
:host {
|
| 8 |
+
display: block;
|
| 9 |
+
background: var(--darker);
|
| 10 |
+
color: white;
|
| 11 |
}
|
| 12 |
+
|
| 13 |
+
.footer-container {
|
| 14 |
+
width: 100%;
|
| 15 |
+
max-width: 1200px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
padding: 3rem 1rem;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.footer-content {
|
| 21 |
+
display: grid;
|
| 22 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 23 |
+
gap: 2rem;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.footer-brand {
|
| 27 |
+
display: flex;
|
| 28 |
+
align-items: center;
|
| 29 |
+
margin-bottom: 1rem;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.footer-logo {
|
| 33 |
+
color: var(--secondary);
|
| 34 |
+
margin-right: 0.5rem;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.footer-title {
|
| 38 |
+
font-weight: 700;
|
| 39 |
+
color: white;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.footer-about {
|
| 43 |
+
color: var(--gray);
|
| 44 |
+
line-height: 1.6;
|
| 45 |
+
margin-bottom: 1.5rem;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.social-links {
|
| 49 |
+
display: flex;
|
| 50 |
+
gap: 1rem;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.social-link {
|
| 54 |
+
color: var(--gray);
|
| 55 |
transition: color 0.2s ease;
|
| 56 |
}
|
| 57 |
+
|
| 58 |
+
.social-link:hover {
|
| 59 |
+
color: var(--primary);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.footer-heading {
|
| 63 |
+
font-size: 1.125rem;
|
| 64 |
+
font-weight: 600;
|
| 65 |
+
margin-bottom: 1.5rem;
|
| 66 |
+
color: white;
|
| 67 |
+
text-transform: uppercase;
|
| 68 |
+
letter-spacing: 0.05em;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.footer-links {
|
| 72 |
+
display: flex;
|
| 73 |
+
flex-direction: column;
|
| 74 |
+
gap: 0.75rem;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.footer-link {
|
| 78 |
+
color: var(--gray);
|
| 79 |
+
transition: color 0.2s ease;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.footer-link:hover {
|
| 83 |
+
color: var(--primary);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.footer-bottom {
|
| 87 |
+
border-top: 1px solid var(--dark-gray);
|
| 88 |
+
padding-top: 2rem;
|
| 89 |
+
margin-top: 2rem;
|
| 90 |
+
display: flex;
|
| 91 |
+
flex-direction: column;
|
| 92 |
+
align-items: center;
|
| 93 |
+
justify-content: space-between;
|
| 94 |
+
gap: 1rem;
|
| 95 |
+
text-align: center;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.copyright {
|
| 99 |
+
color: var(--gray);
|
| 100 |
+
font-size: 0.875rem;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.legal-links {
|
| 104 |
+
display: flex;
|
| 105 |
+
gap: 1.5rem;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.legal-link {
|
| 109 |
+
color: var(--gray);
|
| 110 |
+
font-size: 0.875rem;
|
| 111 |
+
transition: color 0.2s ease;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.legal-link:hover {
|
| 115 |
+
color: var(--primary);
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
@media (min-width: 768px) {
|
| 119 |
+
.footer-bottom {
|
| 120 |
+
flex-direction: row;
|
| 121 |
+
text-align: left;
|
| 122 |
+
}
|
| 123 |
}
|
| 124 |
</style>
|
| 125 |
+
<footer class="bg-gray-900">
|
| 126 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
| 127 |
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
|
| 128 |
<div class="col-span-2">
|
components/navbar.js
CHANGED
|
@@ -1,24 +1,94 @@
|
|
|
|
|
| 1 |
class CustomNavbar extends HTMLElement {
|
| 2 |
connectedCallback() {
|
| 3 |
this.attachShadow({ mode: 'open' });
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
.nav-glass {
|
| 7 |
-
background: rgba(17, 24, 39, 0.
|
| 8 |
backdrop-filter: blur(16px);
|
|
|
|
| 9 |
border-bottom: 1px solid rgba(249, 115, 22, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
|
|
|
| 11 |
a {
|
| 12 |
transition: all 0.2s ease;
|
|
|
|
| 13 |
}
|
|
|
|
| 14 |
a:hover {
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
.active {
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
</style>
|
| 21 |
-
|
| 22 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 23 |
<div class="flex items-center justify-between h-16">
|
| 24 |
<div class="flex items-center">
|
|
|
|
| 1 |
+
|
| 2 |
class CustomNavbar extends HTMLElement {
|
| 3 |
connectedCallback() {
|
| 4 |
this.attachShadow({ mode: 'open' });
|
| 5 |
this.shadowRoot.innerHTML = `
|
| 6 |
<style>
|
| 7 |
+
:host {
|
| 8 |
+
display: block;
|
| 9 |
+
position: fixed;
|
| 10 |
+
top: 0;
|
| 11 |
+
left: 0;
|
| 12 |
+
right: 0;
|
| 13 |
+
z-index: 1000;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
.nav-glass {
|
| 17 |
+
background: rgba(17, 24, 39, 0.9);
|
| 18 |
backdrop-filter: blur(16px);
|
| 19 |
+
-webkit-backdrop-filter: blur(16px);
|
| 20 |
border-bottom: 1px solid rgba(249, 115, 22, 0.2);
|
| 21 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.container {
|
| 25 |
+
width: 100%;
|
| 26 |
+
max-width: 1200px;
|
| 27 |
+
margin: 0 auto;
|
| 28 |
+
padding: 0 1rem;
|
| 29 |
}
|
| 30 |
+
|
| 31 |
a {
|
| 32 |
transition: all 0.2s ease;
|
| 33 |
+
position: relative;
|
| 34 |
}
|
| 35 |
+
|
| 36 |
a:hover {
|
| 37 |
+
color: white;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
a::after {
|
| 41 |
+
content: '';
|
| 42 |
+
position: absolute;
|
| 43 |
+
bottom: 0;
|
| 44 |
+
left: 50%;
|
| 45 |
+
transform: translateX(-50%);
|
| 46 |
+
width: 0;
|
| 47 |
+
height: 2px;
|
| 48 |
+
background: var(--primary);
|
| 49 |
+
transition: width 0.3s ease;
|
| 50 |
}
|
| 51 |
+
|
| 52 |
+
a:hover::after {
|
| 53 |
+
width: 100%;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
.active {
|
| 57 |
+
color: white;
|
| 58 |
+
font-weight: 600;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.active::after {
|
| 62 |
+
width: 100%;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.mobile-menu {
|
| 66 |
+
transition: all 0.3s ease;
|
| 67 |
+
max-height: 0;
|
| 68 |
+
overflow: hidden;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.mobile-menu.open {
|
| 72 |
+
max-height: 500px;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
@media (max-width: 767px) {
|
| 76 |
+
.desktop-nav {
|
| 77 |
+
display: none;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.mobile-menu-button {
|
| 81 |
+
display: block;
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
@media (min-width: 768px) {
|
| 86 |
+
.mobile-menu-button {
|
| 87 |
+
display: none;
|
| 88 |
+
}
|
| 89 |
}
|
| 90 |
</style>
|
| 91 |
+
<nav class="fixed w-full nav-glass z-50">
|
| 92 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 93 |
<div class="flex items-center justify-between h-16">
|
| 94 |
<div class="flex items-center">
|
courses.html
CHANGED
|
@@ -169,7 +169,7 @@
|
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
</footer>
|
| 172 |
-
|
| 173 |
<script>
|
| 174 |
feather.replace();
|
| 175 |
</script>
|
|
|
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
</footer>
|
| 172 |
+
<script src="script.js"></script>
|
| 173 |
<script>
|
| 174 |
feather.replace();
|
| 175 |
</script>
|
index.html
CHANGED
|
@@ -323,11 +323,10 @@ tailwind.config = {
|
|
| 323 |
</div>
|
| 324 |
</section>
|
| 325 |
<custom-footer></custom-footer>
|
| 326 |
-
<script>
|
|
|
|
| 327 |
feather.replace();
|
| 328 |
-
|
| 329 |
-
// Enhanced smooth scrolling with offset for fixed header
|
| 330 |
-
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 331 |
anchor.addEventListener('click', function (e) {
|
| 332 |
e.preventDefault();
|
| 333 |
const target = document.querySelector(this.getAttribute('href'));
|
|
|
|
| 323 |
</div>
|
| 324 |
</section>
|
| 325 |
<custom-footer></custom-footer>
|
| 326 |
+
<script src="script.js"></script>
|
| 327 |
+
<script>
|
| 328 |
feather.replace();
|
| 329 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
|
|
|
|
|
| 330 |
anchor.addEventListener('click', function (e) {
|
| 331 |
e.preventDefault();
|
| 332 |
const target = document.querySelector(this.getAttribute('href'));
|
resources.html
CHANGED
|
@@ -174,7 +174,7 @@
|
|
| 174 |
</div>
|
| 175 |
</div>
|
| 176 |
</footer>
|
| 177 |
-
|
| 178 |
<script>
|
| 179 |
feather.replace();
|
| 180 |
</script>
|
|
|
|
| 174 |
</div>
|
| 175 |
</div>
|
| 176 |
</footer>
|
| 177 |
+
<script src="script.js"></script>
|
| 178 |
<script>
|
| 179 |
feather.replace();
|
| 180 |
</script>
|
style.css
CHANGED
|
@@ -1,28 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
| 1 |
+
|
| 2 |
+
:root {
|
| 3 |
+
--primary: #f97316;
|
| 4 |
+
--secondary: #f59e0b;
|
| 5 |
+
--dark: #111827;
|
| 6 |
+
--darker: #0d1321;
|
| 7 |
+
--light: #f3f5f7;
|
| 8 |
+
--gray: #6b7280;
|
| 9 |
+
--dark-gray: #374151;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
html {
|
| 13 |
+
scroll-behavior: smooth;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
body {
|
| 17 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
| 18 |
+
line-height: 1.6;
|
| 19 |
+
color: var(--light);
|
| 20 |
+
background-color: var(--dark);
|
| 21 |
+
min-height: 100vh;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
a {
|
| 25 |
+
color: inherit;
|
| 26 |
+
text-decoration: none;
|
| 27 |
+
transition: all 0.2s ease;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
img {
|
| 31 |
+
max-width: 100%;
|
| 32 |
+
height: auto;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
button,
|
| 36 |
+
input,
|
| 37 |
+
textarea {
|
| 38 |
+
font-family: inherit;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.container {
|
| 42 |
+
width: 100%;
|
| 43 |
+
max-width: 1200px;
|
| 44 |
+
margin: 0 auto;
|
| 45 |
+
padding: 0 1rem;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/* Scrollbar styling */
|
| 49 |
+
::-webkit-scrollbar {
|
| 50 |
+
width: 8px;
|
| 51 |
+
height: 8px;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
::-webkit-scrollbar-track {
|
| 55 |
+
background: var(--dark-gray);
|
| 56 |
}
|
| 57 |
|
| 58 |
+
::-webkit-scrollbar-thumb {
|
| 59 |
+
background: var(--primary);
|
| 60 |
+
border-radius: 10px;
|
| 61 |
}
|
| 62 |
|
| 63 |
+
::-webkit-scrollbar-thumb:hover {
|
| 64 |
+
background: var(--secondary);
|
|
|
|
|
|
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
+
/* Responsive typography */
|
| 68 |
+
@media (min-width: 768px) {
|
| 69 |
+
html {
|
| 70 |
+
font-size: 16px;
|
| 71 |
+
}
|
|
|
|
| 72 |
}
|
| 73 |
|
| 74 |
+
@media (max-width: 767px) {
|
| 75 |
+
html {
|
| 76 |
+
font-size: 14px;
|
| 77 |
+
}
|
| 78 |
}
|
tutorials.html
CHANGED
|
@@ -201,7 +201,7 @@
|
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
</footer>
|
| 204 |
-
|
| 205 |
<script>
|
| 206 |
feather.replace();
|
| 207 |
</script>
|
|
|
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
</footer>
|
| 204 |
+
<script src="script.js"></script>
|
| 205 |
<script>
|
| 206 |
feather.replace();
|
| 207 |
</script>
|