displaying contact links as grid

This commit is contained in:
Fedor Katurov 2022-11-10 16:36:55 +06:00
parent 623fa7b7fd
commit f47db1fd50
3 changed files with 16 additions and 3 deletions

View file

@ -30,7 +30,7 @@ onMounted(() => (mail.value = atob(contacts.email)));
.grid { .grid {
width: auto; width: auto;
display: grid; display: grid;
grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(230px, auto));
gap: 16px; gap: 16px;
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;

View file

@ -2,4 +2,5 @@ export const contacts = {
telegram: "vv4000", telegram: "vv4000",
email: "Z290aGFtNDhAZ21haWwuY29t", email: "Z290aGFtNDhAZ21haWwuY29t",
github: "muerwre", github: "muerwre",
location: "Pavlodar, Rep. Kazakhstan",
} as const; } as const;

View file

@ -2,7 +2,10 @@
<article :class="$style.content"> <article :class="$style.content">
<div :class="$style.grid"> <div :class="$style.grid">
<div :class="$style.text"> <div :class="$style.text">
<h1>Write me a letter!</h1> <h1 :class="$style.title">Write me a letter!</h1>
<div :class="$style.location">
<b>Current Location:</b> {{ contacts.location }}
</div>
<div :class="$style.contacts"> <div :class="$style.contacts">
<ContactInformation /> <ContactInformation />
@ -17,7 +20,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { contacts } from "~~/constants/contacts";
export default { export default {
data() {
return { contacts };
},
scrollToTop: true, scrollToTop: true,
head() { head() {
return { return {
@ -48,6 +56,10 @@ definePageMeta({ layout: "landing" });
} }
.contacts { .contacts {
margin-top: 40px; margin-top: 60px;
}
.title {
margin-bottom: 10px;
} }
</style> </style>