Cailean Finn
6 months ago
7 changed files with 92 additions and 43 deletions
@ -1,16 +1,22 @@ |
|||||
const box = document.getElementById('scroll') |
const box = document.getElementById('scroll') |
||||
let x, y |
// const hyperlinks = document.getElementsByClassName('hyperlink')
|
||||
|
let x, y, z |
||||
|
|
||||
function init(){ |
function init(){ |
||||
x = 0 |
x = 0 |
||||
y = 0 |
y = 0 |
||||
|
z = 0 |
||||
AnimateSkybox() |
AnimateSkybox() |
||||
} |
} |
||||
|
|
||||
function AnimateSkybox(){ |
function AnimateSkybox(){ |
||||
x += 0.2 |
x += 0.2 |
||||
y = window.innerHeight / 2.2 |
y = window.innerHeight / 2.2 |
||||
|
z += 0.2 |
||||
box.style.backgroundPosition = x + "px " + y + "px" |
box.style.backgroundPosition = x + "px " + y + "px" |
||||
|
// for (let i = 0; i < hyperlinks.length; i++) {
|
||||
|
// hyperlinks[i].style.backgroundPosition = x / 4 + "px " + z + "px";
|
||||
|
// }
|
||||
requestAnimationFrame(AnimateSkybox) |
requestAnimationFrame(AnimateSkybox) |
||||
} |
} |
||||
|
|
||||
|
@ -0,0 +1,5 @@ |
|||||
|
<div id="nav-bar"> |
||||
|
<a href="/"><div class="nav-element">BETA FESTIVAL (2024)</div></a> |
||||
|
<div class="nav-element">NOV 1 - 2 | DUBLIN</div> |
||||
|
</div> |
||||
|
<hr> |
@ -0,0 +1,23 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Beta Festival 2024 | {% block title %}{% endblock %}</title> |
||||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/styles.css') }}"> |
||||
|
<script type="importmap"> |
||||
|
{ |
||||
|
"imports": { |
||||
|
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js", |
||||
|
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/", |
||||
|
"three/src/": "https://cdn.jsdelivr.net/npm/[email protected]/src/", |
||||
|
"three/examples/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/" |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
</head> |
||||
|
<body id="scroll"> |
||||
|
{% block content %} |
||||
|
{% endblock %} |
||||
|
</body> |
||||
|
</html> |
@ -1,28 +1,10 @@ |
|||||
<!DOCTYPE html> |
{% extends "base.html" %} |
||||
<html lang="en"> |
|
||||
<head> |
{% block title %}{{ title }}{% endblock %} |
||||
<meta charset="UTF-8"> |
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
{% block content %} |
||||
<title>Beta Festival 2024</title> |
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/styles.css') }}"> |
|
||||
<script type="importmap"> |
|
||||
{ |
|
||||
"imports": { |
|
||||
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js", |
|
||||
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/", |
|
||||
"three/src/": "https://cdn.jsdelivr.net/npm/[email protected]/src/", |
|
||||
"three/examples/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/" |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
</head> |
|
||||
<body id="scroll"> |
|
||||
<div id="main-wrapper"> |
<div id="main-wrapper"> |
||||
<div id="nav-bar"> |
{% include '_nav.html' %} |
||||
<a href="/"><div class="nav-element">BETA FESTIVAL (2024)</div></a> |
|
||||
<div class="nav-element">NOV 1 - 2 | DUBLIN</div> |
|
||||
</div> |
|
||||
<hr> |
|
||||
<div id="main-container"> |
<div id="main-container"> |
||||
<div id="main-text"> |
<div id="main-text"> |
||||
<p> |
<p> |
||||
@ -30,15 +12,15 @@ |
|||||
</p> |
</p> |
||||
</div> |
</div> |
||||
<div id="hyperlink-container"> |
<div id="hyperlink-container"> |
||||
<a href="/"><div class="hyperlink"> |
<a href="/exhibitions"><div class="hyperlink"> |
||||
<div>↗</div> |
<div>↗</div> |
||||
<div>Exhibitions</div> |
<div>Exhibitions</div> |
||||
</div></a> |
</div></a> |
||||
<a href="/"><div class="hyperlink"> |
<a href="/events"><div class="hyperlink"> |
||||
<div>↗</div> |
<div>↗</div> |
||||
<div>Events</div> |
<div>Events</div> |
||||
</div></a> |
</div></a> |
||||
<a href="/"><div class="hyperlink"> |
<a href="/conferences"><div class="hyperlink"> |
||||
<div>↗</div> |
<div>↗</div> |
||||
<div>Conferences</div> |
<div>Conferences</div> |
||||
</div></a> |
</div></a> |
||||
@ -48,5 +30,4 @@ |
|||||
<div id="container"></div> |
<div id="container"></div> |
||||
<script type="module" src="{{ url_for('static', filename='js/main.js') }}"></script> |
<script type="module" src="{{ url_for('static', filename='js/main.js') }}"></script> |
||||
<script type="module" src="{{ url_for('static', filename='js/skybox.js') }}"></script> |
<script type="module" src="{{ url_for('static', filename='js/skybox.js') }}"></script> |
||||
</body> |
{% endblock content %} |
||||
</html> |
|
@ -0,0 +1,14 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
|
||||
|
{% block title %}{{ title }}{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<div id="main-wrapper"> |
||||
|
{% include '_nav.html' %} |
||||
|
<div id="main-container"> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="container"></div> |
||||
|
<script type="module" src="{{ url_for('static', filename='js/skybox.js') }}"></script> |
||||
|
{% endblock content %} |
Loading…
Reference in new issue