<script>
    import darkmode from "../stores/darkmode";
</script>

<div class="contact" class:dark={$darkmode}>
    <div class="address">Prague, Czech Republic</div>
    <div class="profiles">
        <a href="https://github.com/danbulant" rel="noreferrer noopener" target="_blank">
            <div class="github" title="GitHub">
                <img src="/tech/github.png" alt="Github Icon" draggable={false}>
                <span>danbulant</span>
            </div>
        </a>
        <a href="https://discord.gg/XKPbz5xRuK" rel="noreferrer noopener" target="_blank">
            <div class="discord" title="Discord">
                <img src="/tech/discord.png" alt="Discord Icon" draggable={false}>
                <span>TechmandanCZ#3372</span>
            </div>
        </a>
    </div>
</div>

<style>
    .contact {
        text-align: center;
        margin: 120px 0;
    }
    .address {
        color: #202020d5;
        margin-bottom: 15px;
    }
    .dark .address {
        color: rgba(191, 191, 191, 0.835);
    }
    .profiles {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 2em;
    }
    .profiles a {
        height: 100%;
    }
    .profiles a div {
        height: 100%;
        display: flex;
        align-items: center;
    }
    .profiles a div span {
        padding: 0 5px;
    }
    .profiles a:hover {
        text-decoration: none;
    }
    img {
        height: 2em;
        width: 2em;
    }
    .github {
        color: #333333;
    }
    .dark .github {
        color: rgb(191, 191, 191);
    }
    .discord {
        color: #7289DA;
    }
</style>
