Initial homepage redesign
This commit is contained in:
parent
5f61d02c72
commit
e1911b1227
3 changed files with 222 additions and 246 deletions
274
index.html
274
index.html
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="Content-Language" content="th">
|
||||
<meta http-equiv="content-Type" content="text/html; charset=UTF-8">
|
||||
<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">
|
||||
</head>
|
||||
|
||||
|
@ -46,179 +46,125 @@
|
|||
|
||||
<div class="grid-container">
|
||||
|
||||
<div class="middle">
|
||||
|
||||
<h3>บริการสาธารณะ</h3>
|
||||
<div class="list">
|
||||
<div class="middle-large">
|
||||
|
||||
<h1>เทคทรานส์ไทย 🏳️⚧️ 🇹🇭</h1>
|
||||
|
||||
ชุมชนเทคโนโลยีสำหรับคนข้ามเพศและพันธมิตรในประเทศไทย เราให้ความสำคัญกับซอฟต์แวร์เสรี แพลตฟอร์มกระจายศูนย์ และข้อมูลเปิด
|
||||
|
||||
<!-- 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 style="margin-top: 1cm; margin-bottom: 1cm; ">
|
||||
<a class="button" target="_blank" rel="noopener noreferrer" href="https://discord.gg/QrdhSFvbha">
|
||||
ร่วมพูดคุยกับเรา
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="separator"></div>
|
||||
|
||||
<h3>บริการ โปรเจกต์ และคอนเทนต์ของเรา</h3>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>โปรเจกต์</h3>
|
||||
|
||||
<div class="list">
|
||||
|
||||
<!-- 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 class="row">
|
||||
<a class="itemcard" target="_blank" rel="noopener noreferrer" href="https://c4c.techtransthai.org/">
|
||||
<div class="listaction">
|
||||
<img src="icons/c4c.png" alt="Compute4Change" width="80" height="80" style="margin: 0.3cm;">
|
||||
<div>
|
||||
<h3>Compute4Change</h3>
|
||||
<p>อัปเดตความเคลื่อนไหวจากวงการ BOINC</p>
|
||||
</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>
|
||||
<a target="_blank" rel="noopener noreferrer" href="https://c4c.techtransthai.org/" class="button">Visit...</a>
|
||||
<h3>FOSS4Change</h3>
|
||||
<p>ร่วมสร้างความเปลี่ยนแปลงด้วยโอเพนซอร์ส</p>
|
||||
</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>
|
||||
</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://f-social.techtransthai.org/@latenightdef" rel="me"></a>
|
||||
|
|
77
navbar.css
Normal file
77
navbar.css
Normal 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
117
style.css
|
@ -1,4 +1,5 @@
|
|||
@import url("cantarell/cantarell.css");
|
||||
@import url("navbar.css");
|
||||
|
||||
html *
|
||||
{
|
||||
|
@ -28,7 +29,13 @@ html *
|
|||
|
||||
.middle {
|
||||
grid-area: middle;
|
||||
width: 15cm;
|
||||
width: 30cm;
|
||||
}
|
||||
|
||||
.middle-large {
|
||||
grid-area: middle;
|
||||
width: 80vw;
|
||||
max-width: 35cm;
|
||||
}
|
||||
|
||||
.description {
|
||||
|
@ -37,6 +44,11 @@ html *
|
|||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
|
||||
body {
|
||||
|
@ -57,34 +69,6 @@ html *
|
|||
'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 {
|
||||
width: 15cm;
|
||||
height: 1px;
|
||||
|
@ -92,32 +76,21 @@ html *
|
|||
}
|
||||
|
||||
.listaction {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1cm;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
color: black;
|
||||
align-items: center;
|
||||
height: 1.5cm;
|
||||
}
|
||||
|
||||
.listinfo {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
text-decoration: none;
|
||||
.button {
|
||||
height: 1cm;
|
||||
border-radius: 6px;
|
||||
background-color: rgba(0, 0, 0, 0.08);
|
||||
color: black;
|
||||
align-items: center;
|
||||
height: 1.5cm;
|
||||
}
|
||||
|
||||
.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;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
padding: 10px 10px;
|
||||
margin-top: 1cm;
|
||||
margin-bottom: 1cm;
|
||||
}
|
||||
|
||||
.gtk-button-pill {
|
||||
|
@ -137,6 +110,18 @@ html *
|
|||
padding: 0px 32px;
|
||||
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) {
|
||||
|
@ -159,27 +144,6 @@ html *
|
|||
'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 {
|
||||
border-radius: 12px 12px 12px 12px;
|
||||
background-color: #363636;
|
||||
|
@ -211,17 +175,6 @@ html *
|
|||
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 {
|
||||
position: relative;
|
||||
width: auto;
|
||||
|
|
Loading…
Reference in a new issue