add youtube embedded

This commit is contained in:
Annie Huang committed 2024-02-29 15:23:07 +08:00
1 parent 00e421861f
commit 9146c433b3
1 file changed
+42 -26
+42 -26
View File
@@ -27,8 +27,8 @@ const scrollToSection = (sectionId) => {
} }
</script> </script>
<template> <template>
<div class="w-screen h-screen bg-bg"> <div class="w-screen h-screen bg-scroll bg-bg">
<DynamicBackground class="absolute inset-0 bg-cover bg-center z-0" /> <DynamicBackground class="overflow-auto w-full h-full" />
<div <div
class="h-screen w-screen absolute top-0 left-0 flex flex-wrap justify-center content-center" class="h-screen w-screen absolute top-0 left-0 flex flex-wrap justify-center content-center"
> >
@@ -36,7 +36,7 @@ const scrollToSection = (sectionId) => {
<div class="h-[6vh] w-full"> <div class="h-[6vh] w-full">
<div <div
id="header" id="header"
class="bg-bg-secondary content-center h-full w-full p-1" class="bg-bg-secondary content-center h-full w-full p-1 items-center"
> >
<div class="h-full flex items-center justify-center mx-3"> <div class="h-full flex items-center justify-center mx-3">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
@@ -99,9 +99,14 @@ const scrollToSection = (sectionId) => {
</div> </div>
</div> </div>
<div class="w-fit h-[94vh] m-3"> <div class="w-fit h-[94vh] m-3 justify-center px-10">
<h1 class="text-text-primary text-5xl mb-5">Linux Odyssey</h1> <h1
<div class="max-h-300 overflow-auto w-[90vh]"> class="text-text-primary mb-5 font-extrabold font-mono"
style="font-size: 16vh"
>
Linux Odyssey
</h1>
<div class="overflow-y-auto w-70% flex flex-col">
<section id="info" class="text-text mb-5"> <section id="info" class="text-text mb-5">
Contrary to popular belief, Lorem Ipsum is not simply random text. Contrary to popular belief, Lorem Ipsum is not simply random text.
It has roots in a piece of classical Latin literature from 45 BC, It has roots in a piece of classical Latin literature from 45 BC,
@@ -153,29 +158,40 @@ const scrollToSection = (sectionId) => {
generated Lorem Ipsum is therefore always free from repetition, generated Lorem Ipsum is therefore always free from repetition,
injected humour, or non-characteristic words etc. injected humour, or non-characteristic words etc.
</section> </section>
<div class="justify-self-center w-fit">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/XzvfmUf1QP8?si=QxnKJMNjsm27fGGF"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
></iframe>
</div>
</div>
<section id="contact" class="text-text mb-5"> <section id="contact" class="text-text mb-5">
It is a long established fact that a reader will be distracted by It is a long established fact that a reader will be distracted by the
the readable content of a page when looking at its layout. The point readable content of a page when looking at its layout. The point of
of using Lorem Ipsum is that it has a more-or-less normal using Lorem Ipsum is that it has a more-or-less normal distribution of
distribution of letters, as opposed to using 'Content here, content letters, as opposed to using 'Content here, content here', making it
here', making it look like readable English. Many desktop publishing look like readable English. Many desktop publishing packages and web
packages and web page editors now use Lorem Ipsum as their default page editors now use Lorem Ipsum as their default model text, and a
model text, and a search for 'lorem ipsum' will uncover many web search for 'lorem ipsum' will uncover many web sites still in their
sites still in their infancy. Various versions have evolved over the infancy. Various versions have evolved over the years, sometimes by
years, sometimes by accident, sometimes on purpose (injected humour accident, sometimes on purpose (injected humour and the like).//It is
and the like).//It is a long established fact that a reader will be a long established fact that a reader will be distracted by the
distracted by the readable content of a page when looking at its readable content of a page when looking at its layout. The point of
layout. The point of using Lorem Ipsum is that it has a more-or-less using Lorem Ipsum is that it has a more-or-less normal distribution of
normal distribution of letters, as opposed to using 'Content here, letters, as opposed to using 'Content here, content here', making it
content here', making it look like readable English. Many desktop look like readable English. Many desktop publishing packages and web
publishing packages and web page editors now use Lorem Ipsum as page editors now use Lorem Ipsum as their default model text, and a
their default model text, and a search for 'lorem ipsum' will search for 'lorem ipsum' will uncover many web sites still in their
uncover many web sites still in their infancy. Various versions have infancy. Various versions have evolved over the years, sometimes by
evolved over the years, sometimes by accident, sometimes on purpose accident, sometimes on purpose (injected humour and the like).
(injected humour and the like).
</section> </section>
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>