From 37629c3b91b01dc285a87e16a8b956ea7de17290 Mon Sep 17 00:00:00 2001 From: Li-Wei Yap Date: Thu, 28 Oct 2021 20:10:27 +0200 Subject: [PATCH] More refactoring from HTML to CSS --- assets/css/liweiyap_ghpages.css | 16 ++++++++++++++++ assets/js/typewriter.js | 4 ++-- de/nebenprojekte.html | 7 +++---- projects.html | 7 +++---- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/assets/css/liweiyap_ghpages.css b/assets/css/liweiyap_ghpages.css index add5475..bcfeb62 100755 --- a/assets/css/liweiyap_ghpages.css +++ b/assets/css/liweiyap_ghpages.css @@ -294,6 +294,22 @@ span { margin-right: auto; } +.container-centered-with-limited-clickable-span { + /* https://stackoverflow.com/a/41107163/12367873 */ + width: 100%; + text-align: center; +} + +.container-centered-with-limited-clickable-span img { + display: initial; +} + +.google-playstore-badge { + height: 70px; + display: initial; + margin-bottom: 0.6em; +} + /* container for typewriter */ .container-typewriter { max-width: 48rem; diff --git a/assets/js/typewriter.js b/assets/js/typewriter.js index 6cec132..b233fc7 100644 --- a/assets/js/typewriter.js +++ b/assets/js/typewriter.js @@ -13,7 +13,7 @@ typewriter .typeString('
') .typeString('LeetCode_Solutions .. | 106') .typeString('
') - .typeString('liweiyap.github.io .. | 77') + .typeString('liweiyap.github.io .. | 80') .typeString('
') .typeString('narradir-android .... | 66') .typeString('
') @@ -47,6 +47,6 @@ typewriter .typeString('

') .typeString('Total repositories: 18') .typeString('
') - .typeString('Total commits: 749') + .typeString('Total commits: 752') .typeString('

$
') .start(); \ No newline at end of file diff --git a/de/nebenprojekte.html b/de/nebenprojekte.html index 39a4678..42c58e0 100644 --- a/de/nebenprojekte.html +++ b/de/nebenprojekte.html @@ -10,7 +10,7 @@

Nebenprojekte

Narradir

Android-Applikation in Java

- Jetzt bei Google Play + Jetzt bei Google Play

Zum automatischen Erzählen der Nachtphase in den Deduktionsbrettspielen Dem Widerstand: Avalon und Secret Hitler mit der Bibliothek ExoPlayer habe ich die mobile App Narradir entwickelt. Die Sprachsynthese fürs Erzählen habe ich mit dem Text‐to‐Speech API vom Google Cloud SDK durch Bash‐Skripte gemacht.

{% include narradir-carousel.html %} Im Vergleich mit ähnlichen Anwendungen bietet Narradir folgende Vorteile an: @@ -52,9 +52,8 @@

Web scraping in Python

Conways Spiel des Lebens

Simulation der Evolution einer gitterförmigen Population von Zellen in C++ mit Qt

Gegeben sei ein Gitter, in dem jedes Quadrat eine Zelle ist. Jede Zelle kann einen von zwei Zuständen einnehmen, welche als lebendig (1) oder tot (0) bezeichnet werden. Unter den folgenden vier Regeln hängt der Zustand jeder Zelle in der Folgegeneration nur vom aktuellen Zustand der Zelle selbst und den aktuellen Zuständen ihrer acht Nachbarzellen (horizontal, vertikal, oder diagonal) ab:

- -
- +
+
  1. Lebende Zellen mit weniger als zwei lebenden Nachbarn sterben in der Folgegeneration an Unterbevölkerung (z.B. wegen Einsamkeit).
  2. diff --git a/projects.html b/projects.html index c2b6984..ea21c6f 100644 --- a/projects.html +++ b/projects.html @@ -10,7 +10,7 @@

    Projects

    Narradir

    Android app in Java

    - Get it on Google Play + Get it on Google Play

    I developed a mobile app for automating night-time narration in the social-deduction board games The Resistance: Avalon and Secret Hitler using the ExoPlayer library. I synthesized the speech audio files for the narration via the Text‐to‐Speech API from the Google Cloud SDK using Bash scripting.

    {% include narradir-carousel.html %} This app offers the following improvements over similar apps out there: @@ -52,9 +52,8 @@

    Web scraping in Python

    Conway's Game of Life

    Simulation of evolution in a grid-like population of cells in C++ with Qt

    Given a grid of cells, each cell has an initial state: live (1) or dead (0). Each cell interacts with its eight neighbours (horizontal, vertical, or diagonal) using the following four rules:

    - -
    - +
    +
    1. Any live cell with fewer than two live neighbours dies, as if caused by under-population (inability to reproduce).