-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (90 loc) · 2.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>BioCalc</title>
<!-- Link to your shared CSS -->
<link rel="stylesheet" href="style.css">
</head>
<body class="fade-in" id="body-fade">
<!-- Header -->
<header class="header">
<!-- Title + description in same container -->
<div class="header-info">
<h1>BioCalc</h1>
<p class="subtitle single-line">
A simple and modern tool to power your biology & chemistry calculations.
</p>
</div>
<!-- About link on the right -->
<nav class="navbar">
<ul>
<li><a href="https://manburst.github.io/jksunji.github.io/">About</a></li>
</ul>
</nav>
</header>
<!-- Main container for the tool cards -->
<main>
<!-- The grid of 6 tool cards -->
<section class="tool-list">
<!-- 1) PCR -->
<div class="tool-card" data-link="PCR.html">
<img src="img/PCR.png" alt="PCR">
<h3>PCR</h3>
</div>
<!-- 2) Bacteria -->
<div class="tool-card" data-link="bacteria.html">
<img src="img/Bacteria.png" alt="Bacteria">
<h3>Bacteria</h3>
</div>
<!-- 3) Electrophoresis -->
<div class="tool-card" data-link="electrophoresis.html">
<img src="img/GelElec.png" alt="Electrophoresis">
<h3>Electrophoresis</h3>
</div>
<!-- 4) Concentration -->
<div class="tool-card" data-link="concentration.html">
<img src="img/Dilute.png" alt="Concentration">
<h3>Concentration</h3>
</div>
<!-- 5) OMICS -->
<div class="tool-card" data-link="omics.html">
<img src="img/DNA.png" alt="OMICS">
<h3>OMICS</h3>
</div>
<!-- 6) Unit Conversion -->
<div class="tool-card" data-link="units.html">
<img src="img/Convert.png" alt="Unit Conversion">
<h3>Unit Conversion</h3>
</div>
</section>
</main>
<!-- Optional Footer
<footer class="footer">
<p>© 2025 BioCalc. All rights reserved.</p>
</footer>
-->
<!-- Embedded JS for fade-out navigation -->
<script>
document.addEventListener("DOMContentLoaded", () => {
const body = document.getElementById("body-fade");
const cards = document.querySelectorAll(".tool-card");
cards.forEach(card => {
card.addEventListener("click", e => {
e.preventDefault();
const link = card.getAttribute("data-link");
if (!link) return;
// Add the fade-out class
body.classList.add("fade-out");
// Wait for the transition to end, then navigate
body.addEventListener("transitionend", function handler() {
body.removeEventListener("transitionend", handler);
window.location.href = link;
});
});
});
});
</script>
</body>
</html>