make the site look asthetic i dont want all theese jibrish in my site
Browse files- components/floating-button.js +51 -0
- components/footer.js +27 -5
- components/navbar.js +32 -6
- index.html +2 -1
- style.css +79 -23
components/floating-button.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class FloatingButton extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
position: fixed;
|
| 8 |
+
bottom: 2rem;
|
| 9 |
+
left: 2rem;
|
| 10 |
+
z-index: 999;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
button {
|
| 14 |
+
width: 56px;
|
| 15 |
+
height: 56px;
|
| 16 |
+
border-radius: 50%;
|
| 17 |
+
background: var(--primary);
|
| 18 |
+
color: white;
|
| 19 |
+
border: none;
|
| 20 |
+
box-shadow: var(--shadow-lg);
|
| 21 |
+
display: flex;
|
| 22 |
+
align-items: center;
|
| 23 |
+
justify-content: center;
|
| 24 |
+
cursor: pointer;
|
| 25 |
+
transition: var(--transition);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
button:hover {
|
| 29 |
+
transform: translateY(-3px);
|
| 30 |
+
box-shadow: 0 15px 20px rgba(0,0,0,0.1);
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
i {
|
| 34 |
+
font-size: 1.5rem;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
<button>
|
| 38 |
+
<i class="fas fa-plus"></i>
|
| 39 |
+
</button>
|
| 40 |
+
`;
|
| 41 |
+
|
| 42 |
+
this.shadowRoot.querySelector('button').addEventListener('click', () => {
|
| 43 |
+
window.scrollTo({
|
| 44 |
+
top: 0,
|
| 45 |
+
behavior: 'smooth'
|
| 46 |
+
});
|
| 47 |
+
});
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
customElements.define('floating-button', FloatingButton);
|
components/footer.js
CHANGED
|
@@ -4,12 +4,34 @@ class CustomFooter extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
-
background:
|
| 8 |
-
color:
|
| 9 |
text-align: center;
|
| 10 |
-
padding: 2rem;
|
| 11 |
-
margin-top:
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
.footer-content {
|
| 15 |
max-width: 1200px;
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
footer {
|
| 7 |
+
background: var(--dark);
|
| 8 |
+
color: white;
|
| 9 |
text-align: center;
|
| 10 |
+
padding: 3rem 2rem;
|
| 11 |
+
margin-top: 6rem;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
footer a {
|
| 15 |
+
color: rgba(255,255,255,0.7);
|
| 16 |
+
text-decoration: none;
|
| 17 |
+
transition: var(--transition);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
footer a:hover {
|
| 21 |
+
color: white;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.footer-links {
|
| 25 |
+
display: flex;
|
| 26 |
+
justify-content: center;
|
| 27 |
+
gap: 2rem;
|
| 28 |
+
margin-bottom: 2rem;
|
| 29 |
+
flex-wrap: wrap;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.copyright {
|
| 33 |
+
opacity: 0.7;
|
| 34 |
+
font-size: 0.9rem;
|
| 35 |
}
|
| 36 |
.footer-content {
|
| 37 |
max-width: 1200px;
|
components/navbar.js
CHANGED
|
@@ -4,17 +4,25 @@ class CustomNavbar extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
-
background:
|
|
|
|
|
|
|
| 8 |
color: var(--text-primary);
|
| 9 |
padding: 1rem 2rem;
|
| 10 |
display: flex;
|
| 11 |
justify-content: space-between;
|
| 12 |
align-items: center;
|
| 13 |
-
box-shadow:
|
| 14 |
position: sticky;
|
| 15 |
top: 0;
|
| 16 |
z-index: 1000;
|
| 17 |
-
border-bottom: 1px solid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
.logo {
|
| 20 |
display: flex;
|
|
@@ -36,9 +44,10 @@ class CustomNavbar extends HTMLElement {
|
|
| 36 |
color: var(--text-primary);
|
| 37 |
text-decoration: none;
|
| 38 |
padding: 0.5rem 1rem;
|
| 39 |
-
border-radius:
|
| 40 |
-
transition:
|
| 41 |
font-weight: 500;
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
.nav-links a:hover {
|
|
@@ -47,7 +56,24 @@ class CustomNavbar extends HTMLElement {
|
|
| 47 |
|
| 48 |
.nav-links a.active {
|
| 49 |
color: var(--primary);
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
}
|
| 52 |
@media (max-width: 768px) {
|
| 53 |
nav {
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
+
background: rgba(255, 255, 255, 0.95);
|
| 8 |
+
backdrop-filter: blur(10px);
|
| 9 |
+
-webkit-backdrop-filter: blur(10px);
|
| 10 |
color: var(--text-primary);
|
| 11 |
padding: 1rem 2rem;
|
| 12 |
display: flex;
|
| 13 |
justify-content: space-between;
|
| 14 |
align-items: center;
|
| 15 |
+
box-shadow: var(--shadow-sm);
|
| 16 |
position: sticky;
|
| 17 |
top: 0;
|
| 18 |
z-index: 1000;
|
| 19 |
+
border-bottom: 1px solid rgba(0,0,0,0.05);
|
| 20 |
+
transition: var(--transition);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
nav.scrolled {
|
| 24 |
+
box-shadow: var(--shadow-md);
|
| 25 |
+
background: rgba(255, 255, 255, 0.98);
|
| 26 |
}
|
| 27 |
.logo {
|
| 28 |
display: flex;
|
|
|
|
| 44 |
color: var(--text-primary);
|
| 45 |
text-decoration: none;
|
| 46 |
padding: 0.5rem 1rem;
|
| 47 |
+
border-radius: var(--radius-sm);
|
| 48 |
+
transition: var(--transition);
|
| 49 |
font-weight: 500;
|
| 50 |
+
position: relative;
|
| 51 |
}
|
| 52 |
|
| 53 |
.nav-links a:hover {
|
|
|
|
| 56 |
|
| 57 |
.nav-links a.active {
|
| 58 |
color: var(--primary);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.nav-links a::after {
|
| 62 |
+
content: '';
|
| 63 |
+
position: absolute;
|
| 64 |
+
bottom: -4px;
|
| 65 |
+
right: 1rem;
|
| 66 |
+
width: calc(100% - 2rem);
|
| 67 |
+
height: 2px;
|
| 68 |
+
background: var(--primary);
|
| 69 |
+
transform: scaleX(0);
|
| 70 |
+
transform-origin: right;
|
| 71 |
+
transition: var(--transition);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.nav-links a.active::after,
|
| 75 |
+
.nav-links a:hover::after {
|
| 76 |
+
transform: scaleX(1);
|
| 77 |
}
|
| 78 |
@media (max-width: 768px) {
|
| 79 |
nav {
|
index.html
CHANGED
|
@@ -92,10 +92,11 @@
|
|
| 92 |
</main>
|
| 93 |
|
| 94 |
<custom-footer></custom-footer>
|
| 95 |
-
|
| 96 |
<script src="components/navbar.js"></script>
|
| 97 |
<script src="components/footer.js"></script>
|
|
|
|
| 98 |
<script src="script.js"></script>
|
|
|
|
| 99 |
</body>
|
| 100 |
</html>
|
| 101 |
/* DeepStudy Pro MAX — Luxe UI
|
|
|
|
| 92 |
</main>
|
| 93 |
|
| 94 |
<custom-footer></custom-footer>
|
|
|
|
| 95 |
<script src="components/navbar.js"></script>
|
| 96 |
<script src="components/footer.js"></script>
|
| 97 |
+
<script src="components/floating-button.js"></script>
|
| 98 |
<script src="script.js"></script>
|
| 99 |
+
<floating-button></floating-button>
|
| 100 |
</body>
|
| 101 |
</html>
|
| 102 |
/* DeepStudy Pro MAX — Luxe UI
|
style.css
CHANGED
|
@@ -1,20 +1,29 @@
|
|
| 1 |
|
| 2 |
:root {
|
| 3 |
-
--primary: #
|
| 4 |
-
--primary-light: #
|
| 5 |
-
--secondary: #
|
| 6 |
-
--dark: #
|
| 7 |
-
--light: #
|
| 8 |
-
--gray: #
|
| 9 |
-
--success: #
|
| 10 |
-
--warning: #
|
| 11 |
-
--danger: #
|
| 12 |
-
--accent: #
|
| 13 |
-
--background: #
|
| 14 |
--card-bg: #ffffff;
|
| 15 |
-
--text-primary: #
|
| 16 |
-
--text-secondary: #
|
| 17 |
-
--border: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
* {
|
| 20 |
box-sizing: border-box;
|
|
@@ -22,27 +31,74 @@
|
|
| 22 |
padding: 0;
|
| 23 |
}
|
| 24 |
body {
|
| 25 |
-
font-family: 'Inter',
|
| 26 |
background-color: var(--background);
|
| 27 |
color: var(--text-primary);
|
| 28 |
direction: rtl;
|
| 29 |
-
line-height: 1.
|
| 30 |
-webkit-font-smoothing: antialiased;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
.container {
|
| 33 |
-
max-width:
|
| 34 |
margin: 0 auto;
|
| 35 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
.hero {
|
| 38 |
text-align: center;
|
| 39 |
padding: 5rem 2rem;
|
| 40 |
-
background: linear-gradient(135deg, var(--primary), var(--
|
| 41 |
color: white;
|
| 42 |
-
border-radius:
|
| 43 |
-
margin-bottom:
|
| 44 |
-
box-shadow:
|
| 45 |
-
background-image:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
}
|
| 47 |
.hero h1 {
|
| 48 |
font-size: 2.5rem;
|
|
|
|
| 1 |
|
| 2 |
:root {
|
| 3 |
+
--primary: #4361ee;
|
| 4 |
+
--primary-light: #4895ef;
|
| 5 |
+
--secondary: #3f37c9;
|
| 6 |
+
--dark: #1b263b;
|
| 7 |
+
--light: #f8f9fa;
|
| 8 |
+
--gray: #adb5bd;
|
| 9 |
+
--success: #4cc9f0;
|
| 10 |
+
--warning: #f8961e;
|
| 11 |
+
--danger: #f72585;
|
| 12 |
+
--accent: #7209b7;
|
| 13 |
+
--background: #f8f9fa;
|
| 14 |
--card-bg: #ffffff;
|
| 15 |
+
--text-primary: #212529;
|
| 16 |
+
--text-secondary: #6c757d;
|
| 17 |
+
--border: #dee2e6;
|
| 18 |
+
|
| 19 |
+
/* New variables for modern design */
|
| 20 |
+
--shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
|
| 21 |
+
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
|
| 22 |
+
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
|
| 23 |
+
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
| 24 |
+
--radius-sm: 8px;
|
| 25 |
+
--radius-md: 12px;
|
| 26 |
+
--radius-lg: 16px;
|
| 27 |
}
|
| 28 |
* {
|
| 29 |
box-sizing: border-box;
|
|
|
|
| 31 |
padding: 0;
|
| 32 |
}
|
| 33 |
body {
|
| 34 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 35 |
background-color: var(--background);
|
| 36 |
color: var(--text-primary);
|
| 37 |
direction: rtl;
|
| 38 |
+
line-height: 1.6;
|
| 39 |
-webkit-font-smoothing: antialiased;
|
| 40 |
+
min-height: 100vh;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/* Smooth scroll behavior */
|
| 44 |
+
html {
|
| 45 |
+
scroll-behavior: smooth;
|
| 46 |
}
|
| 47 |
.container {
|
| 48 |
+
max-width: 1280px;
|
| 49 |
margin: 0 auto;
|
| 50 |
+
padding: 2rem;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
/* Typography */
|
| 54 |
+
h1, h2, h3, h4, h5, h6 {
|
| 55 |
+
font-weight: 700;
|
| 56 |
+
line-height: 1.2;
|
| 57 |
+
margin-bottom: 1rem;
|
| 58 |
+
color: var(--dark);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
h1 {
|
| 62 |
+
font-size: 2.5rem;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
h2 {
|
| 66 |
+
font-size: 2rem;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
h3 {
|
| 70 |
+
font-size: 1.75rem;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
p {
|
| 74 |
+
margin-bottom: 1rem;
|
| 75 |
+
color: var(--text-secondary);
|
| 76 |
}
|
| 77 |
.hero {
|
| 78 |
text-align: center;
|
| 79 |
padding: 5rem 2rem;
|
| 80 |
+
background: linear-gradient(135deg, var(--primary), var(--accent));
|
| 81 |
color: white;
|
| 82 |
+
border-radius: var(--radius-lg);
|
| 83 |
+
margin-bottom: 3rem;
|
| 84 |
+
box-shadow: var(--shadow-lg);
|
| 85 |
+
background-image:
|
| 86 |
+
radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 30%),
|
| 87 |
+
linear-gradient(to bottom, var(--primary), var(--accent));
|
| 88 |
+
transition: var(--transition);
|
| 89 |
+
position: relative;
|
| 90 |
+
overflow: hidden;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.hero::before {
|
| 94 |
+
content: '';
|
| 95 |
+
position: absolute;
|
| 96 |
+
top: 0;
|
| 97 |
+
right: 0;
|
| 98 |
+
bottom: 0;
|
| 99 |
+
left: 0;
|
| 100 |
+
background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
|
| 101 |
+
opacity: 0.5;
|
| 102 |
}
|
| 103 |
.hero h1 {
|
| 104 |
font-size: 2.5rem;
|