figureitout/content/kiosk.html
2024-11-08 09:37:32 +01:00

104 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<link rel="stylesheet" href="./css/site.min.css" />
<style>
body,
html {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
font-family: Arial, sans-serif;
}
.layout-container {
display: flex;
flex-direction: column;
height: 100vh;
position: fixed;
width: 100%;
top: 0;
left: 0;
}
.top-button {
font-family: "Gentium Plus", "Antinoou", serif;
font-style: italic;
display: flex;
align-items: center;
justify-content: left;
width: 100%;
padding: 10px;
background: white;
color: black;
text-decoration: none;
font-size: 24px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
cursor: pointer;
box-sizing: border-box;
height: 60px;
gap: 10px;
flex-shrink: 0;
z-index: 1000;
position: relative;
}
.top-button:hover {
background: white;
}
/* New styles for img SVG */
.top-button img {
height: 40px; /* Fixed height within the 60px button */
width: 40px; /* Fixed width to maintain square aspect */
object-fit: contain; /* Ensures SVG fits within bounds */
vertical-align: middle; /* Aligns with text */
}
.content-frame {
width: 100%;
height: calc(100vh - 60px);
border: none;
display: block;
flex-grow: 1;
position: relative;
}
</style>
</head>
<body>
<div class="layout-container">
<a
href="inquiry/snadisedruze/index.html"
class="top-button"
target="content-area"
>← Figure It Out - Zine
<img src="images/fio.svg" alt="icon" />
</a>
<iframe
name="content-area"
class="content-frame"
id="contentFrame"
src="inquiry/snadisedruze/index.html"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
></iframe>
</div>
<script>
window.onload = function () {
document
.querySelector(".content-frame")
.addEventListener("load", function () {
try {
this.contentWindow.addEventListener("unload", function () {
return false;
});
} catch (e) {
console.log("Cross-origin frame detected");
}
});
};
</script>
</body>
</html>