kaguranana-birthday-project/src/index.handlebars

254 lines
7.3 KiB
Handlebars
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kagura Nana 2022 Birthday Project</title>
<meta name="description" content="Kagura Nana BDay Project desu.">
<!-- The Modal -->
<div id="myModal" class="modal">
<span class="close">&times;</span>
<img class="modal-content" id="img01">
<div id="caption"></div>
</div>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Yomogi&display=swap" rel="stylesheet">
<link href="./style.css" rel="stylesheet">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/granim/2.0.0/granim.min.js"
integrity="sha512-CmlPTWm5+a1Gt2YSNk2rGZVvbH3Zge6imS7M4/vrhC8d+A1RcehmLxWMqUdv8aEu7pwfTo74EtnrR+8Cf8KdCA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
</head>
<body>
<div id="particles-js" class="w-screen h-full fixed -z-10"></div>
<div class="absolute top-0 right-0">
<img src="./img/chili_7.png" width="50" height="50" class="transform -translate-x-2 rotate-12"
title="大好きだぁ゛">
</div>
<div class="container mx-auto pt-6 z-10">
<section class="container flex flex-col justify-center">
<h1 class="text-center font-sans text-7xl font-bold p-6" data-aos="fade-in" data-aos-duration="1500"
style="font-family: 'Yomogi', cursive;">
ナナちゃん、<br>
お誕生日おめでとう!
</h1>
<h1 class="text-center text-4xl font-normal" data-aos="fade-in">
Happy Birthday, Nana-chan!
</h1>
<p>
<section class="container pt-12 pb-6">
<h1 class="text-center text-3xl font-normal">Messages from Chililians</h1>
<h3 class="text-center text-3xl font-normal" style="font-family: 'Yomogi', cursive;">なな辛軍からのメッセージ</h3>
<div class="container grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 place-items-center">
{{#each messages}}
<!-- Card -->
<div class="w-11/12 md:w-md lg:w-md xl:w-lg rounded shadow-lg bg-white mt-4 mb-4" data-aos="fade-up" data-aos-anchor-placement="center-bottom">
<div class="px-4 py-4">
<div class="flex flex-row flex-nowrap justify-between">
<div class="flex flex-col">
<p class="font-bold text-xl">{{ name }}</p>
<p class="text-gray-500 text-sm font-mono">{{ twitter }}</p>
</div>
<img src="./img/chili_7.png" width="50" height="50"
class="transition transform rotate-12 translate-x-4 -translate-y-4 hover:scale-125">
</div>
<img class="myImages" id="myImg" src="{{ image_link }}">
{{ video_link }}
<p class="text-gray-700 text-base mt-2">
{{ breaklines content }}
</p>
</div>
</div>
{{/each}}
</div>
</section>
</div>
<footer class="pt-6 pb-6 backdrop-filter backdrop-brightness-50 backdrop-blur-lg mix-blend-darker w-full text-white" data-aos="fade-in">
<h2 class="text-center text-3xl font-normal" data-aos="fade-in">
Credit
</h2>
<h3 class="text-center text-2xl font-normal" data-aos="fade-in">
クレジット
</h3>
<br>
<div class="grid grid-flow-col grid-cols-3 justify-center" data-aos="fade-in">
<div class="text-center">
<h4 class="text-2xl">Art</h4>
<h4 class="text-lg" style="font-family: 'Yomogi', cursive;">イラスト</h4>
<a href="https://www.youtube.com/channel/UCH8iKou-ecNiJhTqGFfjqWQ">- 五十嵐苺</a> 背景background
<br>
<a href="https://twitter.com/terminusashbell">- Terminus Ashbell</a>バナナBaNana
</div>
<div class="text-center">
<h4 class="text-2xl">Site</h4>
<h4 class="text-xl" style="font-family: 'Yomogi', cursive;">サイト</h4>
<a href="https://twitter.com/amedayooooo">- ame。</a>
</div>
<div class="text-center">
<h4 class="text-2xl">Thanks</h4>
<a href="https://twitter.com/suiutoko">- すいうとこ</a>日本語翻訳JPN TL
</div>
</div>
</footer>
</body>
<script>
// create references to the modal...
var modal = document.getElementById('myModal');
// to all images -- note I'm using a class!
var images = document.getElementsByClassName('myImages');
// the image in the modal
var modalImg = document.getElementById("img01");
// and the caption in the modal
var captionText = document.getElementById("caption");
// Go through all of the images with our custom class
for (var i = 0; i < images.length; i++) {
var img = images[i];
// and attach our click listener for this image.
img.onclick = function(evt) {
modal.style.display = "block";
modalImg.src = this.src;
captionText.innerHTML = this.alt;
}
}
var span = document.getElementsByClassName("close")[0];
span.onclick = function() {
modal.style.display = "none";
}
AOS.init({
once: true
});
{
"particles": {
"number": {
"value": 160,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 5
},
"image": {
"src": "img/github.svg",
"width": 100,
"height": 100
}
},
"opacity": {
"value": 1,
"random": true,
"anim": {
"enable": true,
"speed": 1,
"opacity_min": 0,
"sync": false
}
},
"size": {
"value": 3,
"random": true,
"anim": {
"enable": false,
"speed": 4,
"size_min": 0.3,
"sync": false
}
},
"line_linked": {
"enable": false,
"distance": 150,
"color": "#ffffff",
"opacity": 0.4,
"width": 1
},
"move": {
"enable": true,
"speed": 1,
"direction": "none",
"random": true,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": false,
"rotateX": 600,
"rotateY": 600
}
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "bubble"
},
"onclick": {
"enable": false,
"mode": "repulse"
},
"resize": true
},
"modes": {
"grab": {
"distance": 400,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 250,
"size": 0,
"duration": 2,
"opacity": 0,
"speed": 3
},
"repulse": {
"distance": 400,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
}
</script>
</body>
</html>