mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
responsive content block
This commit is contained in:
1 parent
2bfd2cc06d
commit
85b34abc7e
1 file changed
+18
-6
@@ -91,8 +91,10 @@ const scrollToSection = (sectionId) => {
|
|||||||
|
|
||||||
<!-- main content -->
|
<!-- main content -->
|
||||||
<main class="w-full h-[94vh] overflow-y-auto">
|
<main class="w-full h-[94vh] overflow-y-auto">
|
||||||
<div class="h-1/2 m-3 px-10">
|
<div class="w-full flex flex-col items-center">
|
||||||
<div class="w-full h-full flex flex-col justify-around items-center">
|
<div
|
||||||
|
class="flex flex-col md:flex-row mt-10 justify-around gap-5 items-center"
|
||||||
|
>
|
||||||
<h1 class="text-text-primary text-7xl font-extrabold font-mono">
|
<h1 class="text-text-primary text-7xl font-extrabold font-mono">
|
||||||
Linux
|
Linux
|
||||||
</h1>
|
</h1>
|
||||||
@@ -101,9 +103,10 @@ const scrollToSection = (sectionId) => {
|
|||||||
Odyssey
|
Odyssey
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="w-full md:w-2/3 px-5">
|
||||||
<section
|
<section
|
||||||
id="intro"
|
id="intro"
|
||||||
class="text-text p-20 grid grid-cols-1 gap-3 justify-items-center"
|
class="text-text grid grid-cols-1 gap-3 justify-items-center"
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
class="text-text inline-block bg-bg-primary p-5 rounded-xl opacity-90"
|
class="text-text inline-block bg-bg-primary p-5 rounded-xl opacity-90"
|
||||||
@@ -125,7 +128,10 @@ const scrollToSection = (sectionId) => {
|
|||||||
<div
|
<div
|
||||||
class="bg-bg-primary p-5 rounded-xl opacity-90 grid grid-cols-3 grid-rows-2 justify-items-center items-center"
|
class="bg-bg-primary p-5 rounded-xl opacity-90 grid grid-cols-3 grid-rows-2 justify-items-center items-center"
|
||||||
>
|
>
|
||||||
<img src="../img/icon_shuttle.svg" class="h-[18vh] row-span-2" />
|
<img
|
||||||
|
src="../img/icon_shuttle.svg"
|
||||||
|
class="h-[18vh] row-span-2"
|
||||||
|
/>
|
||||||
<h1
|
<h1
|
||||||
class="text-text-primary p-5 font-extrabold font-mono col-span-2"
|
class="text-text-primary p-5 font-extrabold font-mono col-span-2"
|
||||||
style="font-size: 3.5vh"
|
style="font-size: 3.5vh"
|
||||||
@@ -157,7 +163,10 @@ const scrollToSection = (sectionId) => {
|
|||||||
<div
|
<div
|
||||||
class="bg-bg-primary p-5 rounded-xl opacity-90 grid grid-cols-3 grid-rows-2 justify-items-center items-center"
|
class="bg-bg-primary p-5 rounded-xl opacity-90 grid grid-cols-3 grid-rows-2 justify-items-center items-center"
|
||||||
>
|
>
|
||||||
<img src="../img/icon_settings.svg" class="h-[18vh] row-span-2" />
|
<img
|
||||||
|
src="../img/icon_settings.svg"
|
||||||
|
class="h-[18vh] row-span-2"
|
||||||
|
/>
|
||||||
<h1
|
<h1
|
||||||
class="text-text-primary p-5 font-extrabold font-mono col-span-2 pt-8"
|
class="text-text-primary p-5 font-extrabold font-mono col-span-2 pt-8"
|
||||||
style="font-size: 3.5vh"
|
style="font-size: 3.5vh"
|
||||||
@@ -220,7 +229,9 @@ const scrollToSection = (sectionId) => {
|
|||||||
</h1>
|
</h1>
|
||||||
<div class="p-3 col-span-3">
|
<div class="p-3 col-span-3">
|
||||||
<div class="grid grid-cols-4 gap-3 justify-items-center">
|
<div class="grid grid-cols-4 gap-3 justify-items-center">
|
||||||
<h1 class="font-bold" style="font-size: 2.5vh">wancat 林貓</h1>
|
<h1 class="font-bold" style="font-size: 2.5vh">
|
||||||
|
wancat 林貓
|
||||||
|
</h1>
|
||||||
<h1 class="font-bold" style="font-size: 2.5vh">Neil</h1>
|
<h1 class="font-bold" style="font-size: 2.5vh">Neil</h1>
|
||||||
<h1 class="font-bold" style="font-size: 2.5vh">A.H.</h1>
|
<h1 class="font-bold" style="font-size: 2.5vh">A.H.</h1>
|
||||||
<h1 class="font-bold" style="font-size: 2.5vh">Ray Gur</h1>
|
<h1 class="font-bold" style="font-size: 2.5vh">Ray Gur</h1>
|
||||||
@@ -270,6 +281,7 @@ const scrollToSection = (sectionId) => {
|
|||||||
"以前覺得寫程式是我生活中碰不到而且很難的項目。但通過這堂課之後,覺得寫程式不再那麼難以親近"
|
"以前覺得寫程式是我生活中碰不到而且很難的項目。但通過這堂課之後,覺得寫程式不再那麼難以親近"
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
<section
|
<section
|
||||||
id="contact"
|
id="contact"
|
||||||
class="text-text p-10 grid grid-cols-3 gap-5 justify-items-center"
|
class="text-text p-10 grid grid-cols-3 gap-5 justify-items-center"
|
||||||
|
|||||||
Reference in new issue
Block a user