Implement grid containers

This commit is contained in:
Late Night Defender 2023-08-03 00:43:14 +07:00
parent 0bc6458128
commit 8f665f0bf1
2 changed files with 75 additions and 29 deletions

View file

@ -12,46 +12,58 @@
<img src="icons/ttt-org.png" alt="TTT Logo" width="64" height="64" style="margin-right: 10px;">
<h1>TechTransThai</h1>
</div>
<div class="grid-container">
<h2>Services</h2>
<div class="left"></div>
<div class="middle">
<h2>บริการ</h2>
<div class="list">
<h3 class="h3">Dawncraft</h3>
<p>เซิร์ฟเวอร์ Minecraft พร้อมม็อด Dawncraft</p>
<a href="https://status.techtransthai.org/status/techtransthai" class="button">Status</a>
<h3 class="h3">Dawncraft</h3>
<p>เซิร์ฟเวอร์ Minecraft พร้อมม็อด Dawncraft</p>
<a href="https://status.techtransthai.org/status/techtransthai" class="button">Status</a>
<h3 class="h3">Invidious</h3>
<p>ดูวิดีโอจาก YouTube ไร้โฆษณากวนใจ</p>
<a href="https://video.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">Invidious</h3>
<p>ดูวิดีโอจาก YouTube ไร้โฆษณากวนใจ</p>
<a href="https://video.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">LibreSpeed</h3>
<p>ทดสอบความเร็วอินเทอร์เน็ต</p>
<a href="https://test.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">LibreSpeed</h3>
<p>ทดสอบความเร็วอินเทอร์เน็ต</p>
<a href="https://test.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">Little Lines</h3>
<p>ระบบนำทางสำหรับล้อขนาดเล็ก</p>
<a href="https://little-lines.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">Little Lines</h3>
<p>ระบบนำทางสำหรับล้อขนาดเล็ก</p>
<a href="https://little-lines.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">Nextcloud</h3>
<p>บ้านที่ปลอดภัยสำหรับข้อมูลของคุณ</p>
<a href="https://cloud.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">Nextcloud</h3>
<p>บ้านที่ปลอดภัยสำหรับข้อมูลของคุณ</p>
<a href="https://cloud.techtransthai.org/" class="button">Visit</a>
<h3 class="h3">Syncthing Relay</h3>
<p>Relay server สำหรับ Syncthing</p>
<a href="https://relays.syncthing.net/" class="button">See stats</a>
</div>
<h3 class="h3">Syncthing Relay</h3>
<p>Relay server สำหรับ Syncthing</p>
<a href="https://relays.syncthing.net/" class="button">See stats</a>
<h2>โปรเจกต์</h2>
<h2>Projects</h2>
<div class="list">
<h3 class="h3">FOSS4Change</h3>
<p>ร่วมสร้างการเปลี่ยนแปลงด้วยโอเพนซอร์ส</p>
<a href="https://www.youtube.com/@FOSS4Change" class="button">Visit</a>
<h3 class="h3">FOSS4Change</h3>
<p>ร่วมสร้างการเปลี่ยนแปลงด้วยโอเพนซอร์ส</p>
<a href="https://www.youtube.com/@FOSS4Change" class="button">Visit</a>
<h3 class="h3">Compute4Change</h3>
<p>อัปเดตความเคลื่อนไหวจากวงการ BOINC</p>
<a href="https://compute4change.wordpress.com/" class="button">Visit</a>
<h3 class="h3">Compute4Change</h3>
<p>อัปเดตความเคลื่อนไหวจากวงการ BOINC</p>
<a href="https://compute4change.wordpress.com/" class="button">Visit</a>
<h3 class="h3">PGTechs (Discontinued)</h3>
<p>เทคโนโลยีเพื่อทุกคน</p>
<a href="https://www.youtube.com/@PGTechs" class="button">Visit</a>
</div>
<h3 class="h3">PGTechs (Discontinued)</h3>
<p>เทคโนโลยีเพื่อทุกคน</p>
<a href="https://www.youtube.com/@PGTechs" class="button">Visit</a>
<div class="right"></div>
</div>
</div>
<div class="footer">
<a href="https://codeberg.org/latenightdef/ttt-org" class="versionbutton">DATE-VERSION</a>

View file

@ -3,6 +3,10 @@ html *
font-family: Cantarell, sans-serif;
}
body {
background-color: #fafafa;
}
.header {
display: flex;
@ -57,4 +61,34 @@ html *
padding-left: 15px;
margin-top: 10px;
margin-bottom: 10px;
}
.grid-container {
display: grid;
grid-template-areas:
'header header header header header'
'left middle middle middle right'
'footer footer footer footer footer';
}
.left {
grid-area: left;
}
/* Style the middle column */
.middle {
grid-area: middle;
}
/* Style the right column */
.right {
grid-area: right;
}
/* Invidious */
.list {
border-radius: 12px 12px 12px 12px;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 50px;
}