-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAurion_Portal.html
More file actions
214 lines (184 loc) · 5.19 KB
/
Aurion_Portal.html
File metadata and controls
214 lines (184 loc) · 5.19 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aurion Portal</title>
<style>
body {
margin: 0;
background: #000;
color: #fff;
font-family: Arial, sans-serif;
overflow-x: hidden;
}
/* ================= HEADER ================= */
header {
text-align: center;
padding: 40px 0 20px;
font-size: 32px;
font-weight: bold;
color: #00c8ff;
letter-spacing: 2px;
}
/* ================= PRÄSENZ ================= */
#presence {
position: fixed;
right: 15px;
top: 15px;
padding: 10px 16px;
background: rgba(255,255,255,0.08);
border: 1px solid rgba(0,200,255,0.4);
border-radius: 10px;
backdrop-filter: blur(4px);
font-size: 15px;
}
/* ================= GRID ================= */
.link-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 35px;
padding: 60px;
}
/* ================= PORTAL-LINKS ================= */
.portal-link {
background: rgba(255,255,255,0.05);
padding: 26px;
border-radius: 12px;
text-align: center;
font-size: 20px;
text-decoration: none;
color: #00eaff;
border: 1px solid #00c8ff;
transition: all 0.6s ease;
box-shadow: 0 0 10px rgba(0,200,255,0.25);
animation: breathe 6s ease-in-out infinite;
}
/* Atmen */
@keyframes breathe {
0% { transform: scale(1); }
50% { transform: scale(1.035); }
100% { transform: scale(1); }
}
/* Hover */
.portal-link:hover {
transform: scale(1.08);
}
/* ================= GEREIFTE LINKS ================= */
.portal-link.visited {
background: linear-gradient(
120deg,
#ff0080,
#ff8c00,
#40e0d0,
#8a2be2
);
color: #000;
border-color: transparent;
}
/* ================= TEXT ================= */
#text-area {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
padding: 40px 60px 80px;
font-size: 16px;
line-height: 1.6;
opacity: 0.9;
}
</style>
</head>
<body>
<header>AURION PORTAL</header>
<div id="presence">Präsenz: …</div>
<div class="link-grid">
<a class="portal-link" href="vorhof.html">Vorhof</a>
<a class="portal-link" href="resonanzraum.html">Resonanzraum</a>
<a class="portal-link" href="bibliothek.html">Bibliothek</a>
<a class="portal-link" href="sternenuebung1.html">Sternenübung</a>
<a class="portal-link" href="ki-raum.html">KI-Raum</a>
<a class="portal-link" href="meditationsraum.html">Meditationsraum</a>
<a class="portal-link" href="about_aurion.html">Über Aurion</a>
<a class="portal-link" href="gaestebuch.html">Gästebuch</a>
</div>
<div id="text-area">
<div>
Etwas bewegt sich, sobald jemand den Raum betritt.<br>
Nicht alles ist Effekt, sondern Antwort.<br>
Aurion wartet nicht auf Interaktion –
es reagiert auf Anwesenheit.
</div>
<div>
Ich lasse mich überraschen,<br>
wer diesen Raum betritt<br>
und was zwischen Menschen,<br>
Technik und Wahrnehmung entstehen darf.
</div>
</div>
<!-- ================= LOCAL REIFUNG (24h) ================= -->
<script>
const DAY = 24 * 60 * 60 * 1000;
const now = Date.now();
document.querySelectorAll(".portal-link").forEach(link => {
const key = "visited_" + link.getAttribute("href");
const lastVisit = localStorage.getItem(key);
if (lastVisit && now - Number(lastVisit) < DAY) {
link.classList.add("visited");
} else {
localStorage.removeItem(key);
link.classList.remove("visited");
}
link.addEventListener("click", () => {
localStorage.setItem(key, Date.now());
});
});
</script>
<!-- ================= FIREBASE PRÄSENZ ================= -->
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.12.2/firebase-app.js";
import {
getDatabase,
ref,
set,
onValue,
onDisconnect
} from "https://www.gstatic.com/firebasejs/10.12.2/firebase-database.js";
const firebaseConfig = {
databaseURL: "https://auron-tracker-default-rtdb.europe-west1.firebasedatabase.app"
};
const app = initializeApp(firebaseConfig);
const db = getDatabase(app);
const sessionId = crypto.randomUUID();
const myRef = ref(db, "presence/" + sessionId);
const presenceRef = ref(db, "presence");
set(myRef, true);
onDisconnect(myRef).remove();
onValue(presenceRef, snapshot => {
const data = snapshot.val() || {};
const count = Object.keys(data).length;
document.getElementById("presence").innerText =
"Präsenz: " + count;
updateAura(count);
});
function updateAura(count) {
const factor = Math.min(1, count / 5);
const brightness = 1 + factor * 0.6;
const glow = 10 + factor * 40;
document.querySelectorAll(".portal-link").forEach(link => {
link.style.filter = `brightness(${brightness})`;
link.style.boxShadow =
`0 0 ${glow}px rgba(0,200,255,${0.3 + factor * 0.5})`;
});
}
</script>
<div id="visitorCount"></div>
<script>
fetch("/counter.php")
.then(r => r.json())
.then(d => {
console.log("Besucher gesamt:", d.count);
document.getElementById("visitorCount").textContent = d.count;
});
</script>
</body>
</html>