Initial homepage redesign

This commit is contained in:
Late Night Defender 2024-04-04 02:51:38 +07:00
parent 5f61d02c72
commit e1911b1227
3 changed files with 222 additions and 246 deletions

View file

@ -5,7 +5,7 @@
<meta http-equiv="Content-Language" content="th"> <meta http-equiv="Content-Language" content="th">
<meta http-equiv="content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Home of TechTransThai's available services"> <meta name="description" content="Home of TechTransThai's available services">
<title>TechTransThai - A tech community for trans people and allies in Thailand</title> <title>TechTransThai</title>
<link rel="icon" type="image/png" href="icons/ttt-org.png"> <link rel="icon" type="image/png" href="icons/ttt-org.png">
</head> </head>
@ -46,179 +46,125 @@
<div class="grid-container"> <div class="grid-container">
<div class="middle"> <div class="middle-large">
<h3>บริการสาธารณะ</h3> <h1>เทคทรานส์ไทย 🏳️‍⚧️ 🇹🇭</h1>
<div class="list">
<!-- Invidious --> ชุมชนเทคโนโลยีสำหรับคนข้ามเพศและพันธมิตรในประเทศไทย เราให้ความสำคัญกับซอฟต์แวร์เสรี แพลตฟอร์มกระจายศูนย์ และข้อมูลเปิด
<div class="inner-grid">
<div>
<img src="icons/inv.svg" alt="Invidious" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>Invidious</h3>
<p>ดูวิดีโอจาก YouTube ไร้โฆษณากวนใจ</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://inv.techtransthai.org/feed/trending" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- LibreSpeed -->
<div class="inner-grid">
<div>
<img src="icons/librespeed.png" alt="LibreSpeed" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>LibreSpeed</h3>
<p>ทดสอบความเร็วอินเทอร์เน็ต</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://test.techtransthai.org/" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- Little Lines -->
<div class="inner-grid">
<div>
<img src="icons/ll.svg" alt="little-lines" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>Little Lines</h3>
<p>ระบบนำทางสำหรับล้อขนาดเล็ก</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://little-lines.techtransthai.org/" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- Syncthing Relay -->
<div class="inner-grid">
<div>
<img src="icons/syncthing.svg" alt="syncthing-relay" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>Syncthing Relay</h3>
<p>Relay server สำหรับ Syncthing</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://relays.syncthing.net/" class="button">Stats...</a>
</div>
</div>
</div>
<h3>เฉพาะบุคคลที่ได้รับอนุญาตเท่านั้น</h3>
<div class="list">
<!-- Nextcloud -->
<div class="inner-grid">
<div>
<img src="icons/nextcloud.png" alt="Nextcloud" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>TechTransThai Cloud</h3>
<p>Nextcloud instance ของเรา</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://cloud.techtransthai.org/" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- Sharkey -->
<div class="inner-grid">
<div>
<img src="icons/sharkey.png" alt="Sharkey" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>TechTransThai F-Social</h3>
<p>Sharkey instance ของเรา</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://f-social.techtransthai.org" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- Home Assistant-->
<div class="inner-grid">
<div>
<img src="icons/homeassistant.svg" alt="Home Assistant" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>TechTransThai Home</h3>
<p>Home Assistant instance ของเรา</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://home.techtransthai.org" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- Peertube -->
<div class="inner-grid">
<div>
<img src="icons/peertube-logo.svg" alt="Peertube" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>TechTransThai Video</h3>
<p>Peertube instance ของเรา</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://video.techtransthai.org" class="button">Visit...</a>
</div>
</div>
<div style="margin-top: 1cm; margin-bottom: 1cm; ">
<a class="button" target="_blank" rel="noopener noreferrer" href="https://discord.gg/QrdhSFvbha">
ร่วมพูดคุยกับเรา
</a>
</div> </div>
<h3>บริการ โปรเจกต์ และคอนเทนต์ของเรา</h3>
<div class="row">
<h3>โปรเจกต์</h3> <a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://c4c.techtransthai.org/">
<div class="listaction">
<div class="list"> <img src="icons/c4c.png" alt="Compute4Change" width="80" height="80" style="margin: 0.3cm;">
<!-- FOSS4Change -->
<div class="inner-grid">
<div>
<img src="icons/f4c.svg" alt="FOSS4Change" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div>
<h3>FOSS4Change</h3>
<p>ร่วมสร้างความเปลี่ยนแปลงด้วยโอเพนซอร์ส</p>
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/@FOSS4ChangeTH" class="button">Visit...</a>
</div>
</div>
<div class="separator"></div>
<!-- Compute4Change -->
<div class="inner-grid">
<div>
<img src="icons/c4c.png" alt="Compute4Change" width="80" height="80" style="margin-left: 0.3cm;">
</div>
<div> <div>
<h3>Compute4Change</h3> <h3>Compute4Change</h3>
<p>อัปเดตความเคลื่อนไหวจากวงการ BOINC</p> <p>อัปเดตความเคลื่อนไหวจากวงการ BOINC</p>
</div> </div>
</div>
</a>
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/@FOSS4ChangeTH">
<div class="listaction">
<img src="icons/f4c.svg" alt="FOSS4Change" width="80" height="80" style="margin: 0.3cm;">
<div> <div>
<a target="_blank" rel="noopener noreferrer" href="https://c4c.techtransthai.org/" class="button">Visit...</a> <h3>FOSS4Change</h3>
<p>ร่วมสร้างความเปลี่ยนแปลงด้วยโอเพนซอร์ส</p>
</div> </div>
</div> </div>
</a>
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://inv.techtransthai.org/feed/trending">
<div class="listaction">
<img src="icons/inv.svg" alt="Invidious" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>Invidious</h3>
<p>ดูวิดีโอจาก YouTube ไร้โฆษณากวนใจ</p>
</div> </div>
</div>
</a>
</div>
<div class="row">
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://test.techtransthai.org/">
<div class="listaction">
<img src="icons/librespeed.png" alt="LibreSpeed" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>LibreSpeed</h3>
<p>ทดสอบความเร็วอินเทอร์เน็ต</p>
</div>
</div>
</a>
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://little-lines.techtransthai.org/">
<div class="listaction">
<img src="icons/ll.svg" alt="little-lines" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>Little Lines</h3>
<p>ระบบนำทางสำหรับล้อขนาดเล็ก</p>
</div>
</div>
</a>
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://relays.syncthing.net/">
<div class="listaction">
<img src="icons/syncthing.svg" alt="syncthing-relay" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>Syncthing Relay</h3>
<p>Relay server แห่งแรกในไทย</p>
</div>
</div>
</a>
</div>
<div class="row">
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://video.techtransthai.org">
<div class="listaction">
<img src="icons/peertube-logo.svg" alt="Peertube" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>TechTransThai Video (Peertube)</h3>
<p>รับชมวิดีโอในเครือของเราได้ที่นี่</p>
</div>
</div>
</a>
</div>
<h3>สำหรับใช้งานภายในเท่านั้น</h3>
<div class="row">
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://cloud.techtransthai.org/">
<div class="listaction">
<img src="icons/nextcloud.png" alt="Nextcloud" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>TechTransThai Cloud</h3>
<p>Nextcloud instance ของเรา</p>
</div>
</div>
</a>
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://f-social.techtransthai.org/">
<div class="listaction">
<img src="icons/sharkey.png" alt="Sharkey" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>TechTransThai F-Social</h3>
<p>Sharkey instance ของเรา</p>
</div>
</div>
</a>
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://home.techtransthai.org">
<div class="listaction">
<img src="icons/homeassistant.svg" alt="Home Assistant" width="80" height="80" style="margin: 0.3cm;">
<div>
<h3>TechTransThai Home</h3>
<p>Home Assistant instance ของเรา</p>
</div>
</div>
</a>
</div>
<a href="https://en.pronouns.page/@latenightdef" rel="me"></a> <a href="https://en.pronouns.page/@latenightdef" rel="me"></a>
<a href="https://f-social.techtransthai.org/@latenightdef" rel="me"></a> <a href="https://f-social.techtransthai.org/@latenightdef" rel="me"></a>

77
navbar.css Normal file
View file

@ -0,0 +1,77 @@
.header {
display: flex;
justify-content: center;
align-items: center;
}
@media (prefers-color-scheme: light) {
.headerbutton {
color: black;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 16px;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
height: 35px;
transition-duration: 0.2s;
}
.headerbutton:hover {
background-color: #EBEBEB;
}
.topbar {
position: fixed;
width: 100%;
top: 0px;
left: 0px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(224, 224, 224, 1);
color: #000000;
z-index: 10;
}
}
@media (prefers-color-scheme: dark) {
.headerbutton {
color: #ffffff;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 16px;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
height: 35px;
transition-duration: 0.2s;
}
.headerbutton:hover {
background-color: #4a4a4a;
}
.topbar {
position: fixed;
width: 100%;
top: 0px;
left: 0px;
background-color: #303030;
border: 1px solid #1f1f1f;
color: #ffffff;
z-index: 10;
}
}

117
style.css
View file

@ -1,4 +1,5 @@
@import url("cantarell/cantarell.css"); @import url("cantarell/cantarell.css");
@import url("navbar.css");
html * html *
{ {
@ -28,7 +29,13 @@ html *
.middle { .middle {
grid-area: middle; grid-area: middle;
width: 15cm; width: 30cm;
}
.middle-large {
grid-area: middle;
width: 80vw;
max-width: 35cm;
} }
.description { .description {
@ -37,6 +44,11 @@ html *
opacity: 0.5; opacity: 0.5;
} }
.row {
display: flex;
justify-content: space-between;
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
body { body {
@ -57,34 +69,6 @@ html *
'left middle right' 'left middle right'
} }
.headerbutton {
color: black;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 16px;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
height: 35px;
transition-duration: 0.2s;
}
.headerbutton:hover {
background-color: #EBEBEB;
}
.list {
border-radius: 12px 12px 12px 12px;
background-color: #ffffff;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 50px;
}
.separator { .separator {
width: 15cm; width: 15cm;
height: 1px; height: 1px;
@ -92,32 +76,21 @@ html *
} }
.listaction { .listaction {
display: grid; display: flex;
grid-template-columns: 1fr 1cm;
text-decoration: none;
color: black; color: black;
align-items: center; align-items: center;
height: 1.5cm;
} }
.listinfo { .button {
display: grid; height: 1cm;
grid-template-columns: 1fr 2fr; border-radius: 6px;
text-decoration: none; background-color: rgba(0, 0, 0, 0.08);
color: black; color: black;
align-items: center; text-decoration: none;
height: 1.5cm; font-weight: bold;
} padding: 10px 10px;
margin-top: 1cm;
.topbar { margin-bottom: 1cm;
position: fixed;
width: 100%;
top: 0px;
left: 0px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(224, 224, 224, 1);
color: #000000;
z-index: 10;
} }
.gtk-button-pill { .gtk-button-pill {
@ -137,6 +110,18 @@ html *
padding: 0px 32px; padding: 0px 32px;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.itemcard {
display: grid;
border-radius: 12px;
text-decoration: none;
background-color: #ffffff;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 0.5cm;
min-height: 3cm;
min-width: 6cm;
width: 32.5%
}
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@ -159,27 +144,6 @@ html *
'left middle right' 'left middle right'
} }
.headerbutton {
color: #ffffff;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 16px;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
height: 35px;
transition-duration: 0.2s;
}
.headerbutton:hover {
background-color: #4a4a4a;
}
.list { .list {
border-radius: 12px 12px 12px 12px; border-radius: 12px 12px 12px 12px;
background-color: #363636; background-color: #363636;
@ -211,17 +175,6 @@ html *
height: 1.5cm; height: 1.5cm;
} }
.topbar {
position: fixed;
width: 100%;
top: 0px;
left: 0px;
background-color: #303030;
border: 1px solid #1f1f1f;
color: #ffffff;
z-index: 10;
}
.gtk-button-pill { .gtk-button-pill {
position: relative; position: relative;
width: auto; width: auto;