@@ -4,7 +4,6 @@ import ButtonTop from '@components/buttons/button-top.svelte';
4
4
import Contact from ' @components/Contact.astro' ;
5
5
import Header from ' @components/Header.astro' ;
6
6
import Hero from ' @components/Hero.astro' ;
7
- import Loader from ' @components/Loader.astro' ;
8
7
import Navigation from ' @components/Navigation.svelte' ;
9
8
import Portfolio from ' @components/Portfolio.astro' ;
10
9
import Skills from ' @components/Skills.astro' ;
@@ -25,63 +24,20 @@ import Layout from '@layouts/Layout.astro';
25
24
<Contact />
26
25
</div >
27
26
</div >
28
- <div class =" loader" >
29
- <Loader />
30
- </div >
31
27
<ButtonTop client:idle />
32
28
</Layout >
33
29
34
- <script >
35
- document.addEventListener("DOMContentLoaded", function() {
36
- const loader = document.querySelector('.loader');
37
- const wrapper = document.querySelector('.wrapper');
38
- const load = (): Promise<void> => {
39
- return new Promise(resolve => setTimeout(resolve, 0));
40
- }
41
-
42
- load().then(() => {
43
- loader?.remove();
44
- const fragment = window.location.hash;
45
- wrapper?.classList.add('visible');
46
- if(fragment) {
47
- const targetElement = document.querySelector(fragment);
48
- if (targetElement) {
49
- targetElement.scrollIntoView({ behavior: 'smooth' });
50
- }
51
- }
52
- });
53
- });
54
- </script >
55
-
56
30
<style >
57
31
.wrapper {
58
- opacity: 0;
59
- visibility: hidden;
60
- transition: opacity 2.2s ease-in-out, visibility 2.2s ease-in-out, height 2.2s ease-in-out;
61
- height: 0;
62
- overflow: hidden;
63
- }
64
-
65
- .wrapper.visible {
66
32
opacity: 1;
67
33
visibility: visible;
68
- height: auto;
34
+ transition: opacity 2.2s ease-in-out, visibility 2.2s ease-in-out, height 2.2s ease-in-out;
35
+ overflow: hidden;
69
36
max-width: 1200px;
70
37
min-width: 380px;
71
- position: relative ;
38
+ height: auto ;
72
39
margin: 0 auto;
73
- }
74
-
75
- .loader {
76
- opacity: 1;
77
- visibility: visible;
78
- transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
79
- }
80
-
81
- .loader.hidden {
82
- opacity: 0;
83
- visibility: hidden;
84
- transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
40
+ position: relative;
85
41
}
86
42
87
43
.content {
0 commit comments