footer responsive

This commit is contained in:
Sveske_Juice 2024-02-25 20:13:13 +01:00
parent 21428cd03e
commit fc160a23fd
2 changed files with 31 additions and 3 deletions

View File

@ -1,3 +1,13 @@
<script lang="ts">
import MediaQuery from 'svelte-media-queries';
const mobileThreshold : string = '1000px';
let mobile : boolean;
</script>
<!-- Detect mobile -->
<MediaQuery query='(max-width: {mobileThreshold})' bind:matches={mobile} />
<!-- Nav bar --> <!-- Nav bar -->
<!-- Page content --> <!-- Page content -->
@ -56,10 +66,20 @@
justify-content: space-evenly; justify-content: space-evenly;
} }
.about-container > div {
align-items: center;
text-align: center;
}
.credits { .credits {
line-height: 2; line-height: 2;
} }
.contact {
display: flex;
flex-direction: column;
}
.social { .social {
display: flex; display: flex;
align-content: center; align-content: center;
@ -83,6 +103,14 @@
a:hover { a:hover {
filter: brightness(130%); filter: brightness(130%);
} }
</style> </style>
{#if mobile}
<style>
.about-container {
flex-direction: column;
justify-content: center !important;
gap: 25px;
}
</style>
{/if}

View File

@ -10,8 +10,8 @@
$: most_recent_post = data.summaries[0]; $: most_recent_post = data.summaries[0];
const mobileThreshold : string = '1000px'; const mobileThreshold : string = '1000px';
const post_show_count : number = 3;
let mobile : boolean; let mobile : boolean;
const post_show_count : number = 3;
</script> </script>
<!-- Detect mobile --> <!-- Detect mobile -->