-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathindex.html
105 lines (93 loc) · 3.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, NOODP" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16" />
<title>tscircuit - Code Electronics with React</title>
<meta name="description"
content="tscircuit is an open-source electronics design tool that lets you create circuits using React components. Design schematics, generate PCB layouts, export and manufacture PCBs online!" />
<meta name="keywords"
content="electronic design, PCB design, schematic capture, React components, circuit design, electronics CAD, open source EDA" />
<meta property="og:title" content="tscircuit - Design Electronics with React Components" />
<meta property="og:description"
content="Create electronic circuits using React components. Design schematics, generate PCB layouts, and manufacture custom PCBs with this free open-source tool." />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="tscircuit - Design Electronics with React Components" />
<meta name="twitter:description"
content="Create electronic circuits using React components. Free open-source electronics design tool." />
<link rel="canonical" href="https://tscircuit.com" />
<style>
/* Loader Styles */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 1em;
}
.loading {
background-color: lightgrey;
height: 2px;
overflow: hidden;
position: relative;
width: 12em;
border-radius: 2px;
}
.loading-bar {
animation: side2side 2s ease-in-out infinite;
background-color: dodgerblue;
height: 100%;
position: absolute;
width: 45%;
}
@keyframes side2side {
0%, 100% {
transform: translateX(-50%);
}
50% {
transform: translateX(150%);
}
}
</style>
<script>
window.onload = function() {
const loader = document.getElementById("loader");
const root = document.getElementById("root");
// Hide the loader and show the root when the page has fully loaded
loader.style.transition = "opacity 0.3s ease";
loader.style.opacity = "0"; // Fade out the loader
setTimeout(function() {
loader.style.display = "none"; // Hide loader completely
root.style.visibility = "visible"; // Show the root content
}, 300); // Match the opacity transition duration
};
</script>
</head>
<body>
<div class="loaderanimation">
<div id="loader" class="loading-overlay">
<div class="loading-container">
<div class="loading">
<div class="loading-bar"></div>
</div>
</div>
</div>
</div>
<div id="root" class="loaderanimation" style="visibility: hidden;"></div> <!-- Initially hidden -->
<script type="module" src="./src/main.tsx"></script>
</body>
</html>