diff --git a/index.php b/index.php index 09137f3..d715108 100644 --- a/index.php +++ b/index.php @@ -14,14 +14,14 @@
Names for game accounts I play
other links like apps
+$username
"; - } else { - echo "$username
"; + switch ($type) { + case "link": + $fontsize = "0.9em"; + break; + case "contact": + $fontsize = (strlen($text) > 15) ? "0.8em" : "1em"; + break; } + echo "$text
"; + if ($url) { echo ""; } diff --git a/styles.css b/styles.css index a70f9d3..67c60dc 100644 --- a/styles.css +++ b/styles.css @@ -34,7 +34,7 @@ a { box-sizing: border-box; } -.contacts { +.contacts, .links { display: flex; flex-wrap: wrap; justify-content: center; @@ -42,8 +42,7 @@ a { margin: auto; padding: 10px; } -.contact { - width: 170px; +.contact, .link { margin: 5px; padding: 15px; background-color: #232629; @@ -53,10 +52,16 @@ a { position: relative; transition: opacity .25s; } +.contact { + width: 170px; +} +.link { + width: 340px; +} /* some hacky shit to make