Skip to content

Commit

Permalink
new hero landing page animation
Browse files Browse the repository at this point in the history
  • Loading branch information
adhadse committed Aug 16, 2023
1 parent 05c775e commit ee83817
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
5 changes: 3 additions & 2 deletions content/assets/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ html {
/* home page */
.hero-container h1 {
font-family: Poppins, Inter, sans-serif;
font-weight: 500 !important;
font-weight: 600 !important;
color: inherit !important;
font-size: 3rem !important;
}
Expand Down Expand Up @@ -176,7 +176,8 @@ html {
padding: 0;
box-sizing: border-box;
overflow: hidden;
color: #1f363d;
color: #ffffff;
background: #000;
margin-top: 0 !important;
}

Expand Down
24 changes: 23 additions & 1 deletion overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
<!-- Highligh.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" integrity="sha512-bgHRAiTjGrzHzLyKOnpFvaEpGzJet3z4tZnXGjpsCcqOnAH6VGUx9frc5bcIhKTVLEiCO6vEhNAgx5jtLUYrfA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/darkula.css" integrity="sha256-Mnoy1/a+4vhQ8P0UqXtjDrRWwJs5gMrolbe2VBmKmiM=" crossorigin="anonymous">

<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vanta.halo.min.js"></script>
{% endblock %}

{% block hero %}
<div class="hero-container">
<div class="bg"></div>
<div id="hero-bg"></div>
<div class="hero-content">
<div class="md-grid">
<h1>Welcome to <br>my <span>wiki</span>!</h1>
Expand All @@ -45,3 +48,22 @@ <h1>Welcome to <br>my <span>wiki</span>!</h1>
{% block htmltitle %}
<title>adhadse — Wiki</title>
{% endblock %}

{% block scripts %}
{{ super() }}
<script>
VANTA.HALO({
el: ".hero-container",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
baseColor: 0x0,
backgroundColor: 0x0,
xOffset: 0.09,
amplitudeFactor: 0.20,
size: 0.90
})
</script>
{% endblock %}
21 changes: 21 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,25 @@
<!-- Highligh.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" integrity="sha512-bgHRAiTjGrzHzLyKOnpFvaEpGzJet3z4tZnXGjpsCcqOnAH6VGUx9frc5bcIhKTVLEiCO6vEhNAgx5jtLUYrfA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/darkula.css" integrity="sha256-Mnoy1/a+4vhQ8P0UqXtjDrRWwJs5gMrolbe2VBmKmiM=" crossorigin="anonymous">

<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vanta.halo.min.js"></script>
{% endblock %}

{% block scripts %}
{{ super() }}
<script>
VANTA.HALO({
el: ".hero-container",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
baseColor: 0x0,
backgroundColor: 0x0,
xOffset: 0.09,
size: 0.90
})
</script>
{% endblock %}

0 comments on commit ee83817

Please sign in to comment.