1
0
Fork 0
mirror of https://gitlab.com/moepoi/moepoi.dev.git synced 2025-04-27 05:26:20 +02:00

Add Mastodon

This commit is contained in:
Moe Poi ~ 2022-12-02 17:49:28 +07:00
parent e6db365363
commit fec868af9a
Signed by: moepoi
GPG key ID: 334B501E883409AF
3 changed files with 36 additions and 0 deletions
assets/images/home
lib/screens
web

View file

@ -0,0 +1 @@
<svg height="2500" width="2331" xmlns="http://www.w3.org/2000/svg" viewBox="-0.41 0.22 747.62 801.4499999999999"><path d="M729.94 479.5c-10.96 56.4-98.17 118.12-198.34 130.08-52.23 6.23-103.66 11.96-158.49 9.44-89.68-4.1-160.45-21.4-160.45-21.4 0 8.73.54 17.04 1.62 24.81 11.66 88.52 87.76 93.82 159.84 96.29 72.76 2.49 137.55-17.94 137.55-17.94l2.99 65.79s-50.89 27.32-141.55 32.35c-50 2.75-112.07-1.26-184.37-20.39C31.94 737.02 4.97 569.86.85 400.26-.41 349.9.37 302.42.37 262.7.37 89.27 113.99 38.44 113.99 38.44 171.28 12.12 269.59 1.06 371.79.22h2.52c102.19.84 200.57 11.9 257.86 38.22 0 0 113.62 50.83 113.62 224.26 0 0 1.42 127.96-15.85 216.8" fill="#3088d4"/><path d="M611.77 276.16v209.99h-83.2V282.33c0-42.97-18.07-64.77-54.23-64.77-39.98 0-60.01 25.86-60.01 77.02v111.57h-82.71V294.58c0-51.16-20.04-77.02-60.01-77.02-36.16 0-54.24 21.8-54.24 64.77v203.82h-83.19V276.16c0-42.92 10.93-77.03 32.88-102.26 22.63-25.23 52.27-38.17 89.07-38.17 42.57 0 74.81 16.37 96.12 49.1l20.72 34.74 20.73-34.74c21.31-32.73 53.55-49.1 96.12-49.1 36.79 0 66.44 12.94 89.07 38.17 21.95 25.23 32.88 59.34 32.88 102.26z" fill="#fff"/></svg>

After

(image error) Size: 1.1 KiB

View file

@ -72,6 +72,27 @@ class _HomeState extends State<Home> {
const SizedBox(
width: 10.0,
),
Flexible(
flex: 1,
child: InkWell(
splashFactory: NoSplash.splashFactory,
onTap: () async {
if (!await launchUrl(
Uri.parse('https://moe.onl/@moepoi'))) {
throw 'Could not launch';
}
},
child: SvgPicture.asset(
'assets/images/home/mastodon.svg',
height: 40,
width: 40,
fit: BoxFit.contain,
semanticsLabel: 'Mastodon',
),
)),
const SizedBox(
width: 10.0,
),
Flexible(
flex: 1,
child: InkWell(

View file

@ -1,5 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<!--
__ _______ __________ ____ ____
/ |/ / __ \/ ____/ __ \/ __ \/ _/
/ /|_/ / / / / __/ / /_/ / / / // /
/ / / / /_/ / /___/ ____/ /_/ // /
/_/ /_/\____/_____/_/ \____/___/
-->
<head>
<base href="$FLUTTER_BASE_HREF">
@ -89,6 +99,10 @@
<img class="loading" src="icons/loading.webp" alt="Loading..." />
</div>
<li style="display:none;">
<a rel="me" href="https://moe.onl/@moepoi" target="_blank">Mastodon</a>
</li>
<script>
window.addEventListener('load', function() {
var loading = document.querySelector('#loading');