GMA2 commited on
Commit
9250d53
·
verified ·
1 Parent(s): 6de34f8

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +87 -5
  2. prompts.txt +2 -1
index.html CHANGED
@@ -18,10 +18,48 @@
18
  color: white;
19
  font-family: 'Inter', sans-serif;
20
  overflow-x: hidden;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  background-image: url('https://media.canva.com/v2/image-resize/format:PNG/height:431/quality:100/uri:ifs%3A%2F%2FM%2F69aac2cc-6f25-443f-b834-461a1bbad761/watermark:F/width:800?csig=AAAAAAAAAAAAAAAAAAAAACZ0cuCRT5uUGcfvkWrefIyGtlrolS2HkMszR59yc4KZ&exp=1747608849&osig=AAAAAAAAAAAAAAAAAAAAANO7p0TwCpI6ZEyGfhMeGd4ETquJHuM3qcatBwkHBdWl&signer=media-rpc&x-canva-quality=screen');
22
- background-attachment: fixed;
23
  background-size: cover;
24
  background-position: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  }
26
 
27
  .glass {
@@ -136,10 +174,22 @@
136
  backdrop-filter: blur(8px);
137
  -webkit-backdrop-filter: blur(8px);
138
  }
 
 
 
 
139
  }
140
  </style>
141
  </head>
142
  <body class="relative">
 
 
 
 
 
 
 
 
143
  <!-- Floating Particles -->
144
  <div class="fixed inset-0 overflow-hidden pointer-events-none z-0">
145
  <div class="absolute top-1/4 left-1/4 w-3 h-3 bg-white rounded-full opacity-20 floating" style="animation-delay: 0s;"></div>
@@ -590,13 +640,45 @@
590
  });
591
  });
592
 
593
- // Parallax background effect on scroll
 
 
 
 
 
 
594
  window.addEventListener('scroll', function() {
595
- const scrollPosition = window.pageYOffset;
596
- const backgroundPosition = scrollPosition * 0.3;
597
- document.body.style.backgroundPositionY = `${backgroundPosition}px`;
 
 
 
 
 
 
598
  });
599
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
600
  // Smooth scrolling for anchor links
601
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
602
  anchor.addEventListener('click', function (e) {
 
18
  color: white;
19
  font-family: 'Inter', sans-serif;
20
  overflow-x: hidden;
21
+ position: relative;
22
+ }
23
+
24
+ /* Background image container */
25
+ .bg-image-container {
26
+ position: fixed;
27
+ top: 0;
28
+ left: 0;
29
+ width: 100%;
30
+ height: 100%;
31
+ z-index: -1;
32
+ overflow: hidden;
33
+ opacity: 0.5;
34
+ transition: opacity 0.5s ease;
35
+ }
36
+
37
+ .bg-image {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ width: 100%;
42
+ height: 100%;
43
  background-image: url('https://media.canva.com/v2/image-resize/format:PNG/height:431/quality:100/uri:ifs%3A%2F%2FM%2F69aac2cc-6f25-443f-b834-461a1bbad761/watermark:F/width:800?csig=AAAAAAAAAAAAAAAAAAAAACZ0cuCRT5uUGcfvkWrefIyGtlrolS2HkMszR59yc4KZ&exp=1747608849&osig=AAAAAAAAAAAAAAAAAAAAANO7p0TwCpI6ZEyGfhMeGd4ETquJHuM3qcatBwkHBdWl&signer=media-rpc&x-canva-quality=screen');
 
44
  background-size: cover;
45
  background-position: center;
46
+ will-change: transform;
47
+ }
48
+
49
+ /* Grid lines overlay */
50
+ .grid-overlay {
51
+ position: fixed;
52
+ top: 0;
53
+ left: 0;
54
+ width: 100%;
55
+ height: 100%;
56
+ z-index: -1;
57
+ pointer-events: none;
58
+ background-image:
59
+ linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
60
+ linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
61
+ background-size: 40px 40px;
62
+ opacity: 0.5;
63
  }
64
 
65
  .glass {
 
174
  backdrop-filter: blur(8px);
175
  -webkit-backdrop-filter: blur(8px);
176
  }
177
+
178
+ .grid-overlay {
179
+ background-size: 20px 20px;
180
+ }
181
  }
182
  </style>
183
  </head>
184
  <body class="relative">
185
+ <!-- Background Image Container -->
186
+ <div class="bg-image-container">
187
+ <div class="bg-image"></div>
188
+ </div>
189
+
190
+ <!-- Grid Lines Overlay -->
191
+ <div class="grid-overlay"></div>
192
+
193
  <!-- Floating Particles -->
194
  <div class="fixed inset-0 overflow-hidden pointer-events-none z-0">
195
  <div class="absolute top-1/4 left-1/4 w-3 h-3 bg-white rounded-full opacity-20 floating" style="animation-delay: 0s;"></div>
 
640
  });
641
  });
642
 
643
+ // Background image parallax and fade effects
644
+ const bgImageContainer = document.querySelector('.bg-image-container');
645
+ const bgImage = document.querySelector('.bg-image');
646
+
647
+ let lastScrollPosition = 0;
648
+ let ticking = false;
649
+
650
  window.addEventListener('scroll', function() {
651
+ lastScrollPosition = window.scrollY;
652
+
653
+ if (!ticking) {
654
+ window.requestAnimationFrame(function() {
655
+ updateBackground(lastScrollPosition);
656
+ ticking = false;
657
+ });
658
+ ticking = true;
659
+ }
660
  });
661
 
662
+ function updateBackground(scrollPos) {
663
+ // Parallax effect - move background at different rate than scroll
664
+ const parallaxOffset = scrollPos * 0.3;
665
+ bgImage.style.transform = `translateY(${parallaxOffset}px)`;
666
+
667
+ // Calculate fade effect based on scroll position
668
+ const windowHeight = window.innerHeight;
669
+ const scrollPercentage = scrollPos / (document.body.scrollHeight - windowHeight);
670
+
671
+ // Adjust opacity based on scroll position (fade in/out)
672
+ let opacity = 0.5;
673
+
674
+ // Fade out slightly when scrolling down
675
+ if (scrollPos > 0) {
676
+ opacity = Math.max(0.2, 0.5 - (scrollPos * 0.0005));
677
+ }
678
+
679
+ bgImageContainer.style.opacity = opacity;
680
+ }
681
+
682
  // Smooth scrolling for anchor links
683
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
684
  anchor.addEventListener('click', function (e) {
prompts.txt CHANGED
@@ -1 +1,2 @@
1
- Create an all black, use this as background that moves on scroll https://media.canva.com/v2/image-resize/format:PNG/height:431/quality:100/uri:ifs%3A%2F%2FM%2F69aac2cc-6f25-443f-b834-461a1bbad761/watermark:F/width:800?csig=AAAAAAAAAAAAAAAAAAAAACZ0cuCRT5uUGcfvkWrefIyGtlrolS2HkMszR59yc4KZ&exp=1747608849&osig=AAAAAAAAAAAAAAAAAAAAANO7p0TwCpI6ZEyGfhMeGd4ETquJHuM3qcatBwkHBdWl&signer=media-rpc&x-canva-quality=screen mobile responsive digital services site with 3D tilt and glassmorphism 5 sections on mobile bottom navigation site needs to be responsive on all devices, no testimonials, no contact page put icon on header for contact, add a calendar to schedule appointments connect to https://calendar.google.com/calendar/embed?src=ododidakt%40gmail.com&ctz=America%2FChicago contact email not shown connect it to [email protected]
 
 
1
+ Create an all black, use this as background that moves on scroll https://media.canva.com/v2/image-resize/format:PNG/height:431/quality:100/uri:ifs%3A%2F%2FM%2F69aac2cc-6f25-443f-b834-461a1bbad761/watermark:F/width:800?csig=AAAAAAAAAAAAAAAAAAAAACZ0cuCRT5uUGcfvkWrefIyGtlrolS2HkMszR59yc4KZ&exp=1747608849&osig=AAAAAAAAAAAAAAAAAAAAANO7p0TwCpI6ZEyGfhMeGd4ETquJHuM3qcatBwkHBdWl&signer=media-rpc&x-canva-quality=screen mobile responsive digital services site with 3D tilt and glassmorphism 5 sections on mobile bottom navigation site needs to be responsive on all devices, no testimonials, no contact page put icon on header for contact, add a calendar to schedule appointments connect to https://calendar.google.com/calendar/embed?src=ododidakt%40gmail.com&ctz=America%2FChicago contact email not shown connect it to [email protected]
2
+ add grid lines in the design like the image has and have the image not repeat on scroll it follows the scroll and fades in and out