Web/_includes/social.html

52 lines
2.6 KiB
HTML
Raw Permalink Normal View History

<div class="list-display rounded">
2023-02-12 12:18:45 +01:00
<h1 id="social">🔗 Social</h1>
<p>
These are other websites where you can find me and the things I do, including the pages where I publish my code and games and where I sometimes stream and upload videos. This list also includes a lot of ways to reach me.
</p>
<p>⚠️ Some of these sites may contain mature content.</p>
<div class="row">
<div class="col">
<div id="social-list">
{% for item in site.data.socials %}
2023-08-07 14:04:06 +02:00
<a class="btn btn-light social-button rounded-0" href="{{ item.link }}">
<img class="social-image social-image-light" src="res/social/{{ item.name | downcase }}.png" alt="Social icon">
2023-08-07 14:04:06 +02:00
{% if item.darkIcon %}
{% assign dark = item.name | downcase | append: "_dark" %}
{% else %}
{% assign dark = item.name | downcase %}
{% endif %}
<img class="social-image social-image-dark" src="res/social/{{ dark }}.png" alt="Social icon" hidden>
2023-08-07 14:04:06 +02:00
{{ item.name }}
</a>
{% endfor %}
</div>
2021-09-18 03:16:59 +02:00
Additionally, here are some miscellaneous socials:
<ul>
2021-09-18 03:16:59 +02:00
<li>I post most of my Sims 4 builds on <a href="https://ellpeck.de/sims4gallery">the gallery</a> as <strong>Ellpeck</strong>. I also post screenshots on my <a href="https://www.instagram.com/ellssimsbuilds/">Simstagram</a>.</li>
<li>My Nintendo Switch friend code is <strong>SW-5281-8834-6801</strong>.</li>
</ul>
</div>
<div class="col-md-auto" id="discord-div">
2023-06-22 22:17:25 +02:00
<iframe id="discord-widget" title="Ellpeck's Discord server" width="300" height="500" allowtransparency="true" frameborder="0"></iframe>
2023-06-28 19:30:24 +02:00
<span class="discord-landing">Or check out <a href="https://link.ellpeck.de/discordweb">the landing page</a></span>
</div>
<script>
if (dark) {
$(".social-image-light").attr("hidden", true);
$(".social-image-dark").attr("hidden", false);
2021-07-22 07:54:31 +02:00
$("#social-list").find(".btn-light").each(function () {
let e = $(this);
e.removeClass("btn-light");
e.addClass("btn-dark");
});
}
let theme = dark ? "dark" : "light";
$("#discord-widget").attr("src", `https://discordapp.com/widget?id=181435613147430913&theme=${theme}`);
</script>
</div>
2023-02-12 12:18:45 +01:00
</div>