New-site/resources/views/Resume/PersonalInfo.vue
Dhaverd 0ac43b73d2 revert 28a6e0613b
revert revert cdef4bdd55

revert Merge branch 'master' of http://gitea.dhaverd.ru:3000/Dhaverd/New-site into feature-auth
2024-03-07 05:26:31 +03:00

78 lines
2.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="d-flex justify-end align-center">
<v-table class="main-sheet-bg pl-5" :class="[this.isWide ? 'w-25' : 'w-66']" style="text-align: left">
<tbody>
<tr>
<td><v-icon :icon="`mdi-account`"></v-icon>Возраст</td>
<td>{{ personalData.age }}</td>
</tr>
<tr>
<td><v-icon :icon="`mdi-city`"></v-icon>Город</td>
<td>{{ personalData.location }}</td>
</tr>
<tr>
<td><v-icon :icon="`mdi-at`"></v-icon>E-mail</td>
<td>{{ personalData.email }}</td>
</tr>
<tr>
<td><v-icon :icon="`mdi-phone`"></v-icon>Телефон</td>
<td>{{ personalData.phoneNumber }}</td>
</tr>
</tbody>
</v-table>
<div class="w-33">
<v-img class="image-gradient" src="./resume.png"></v-img>
</div>
</div>
</template>
<script>
export default {
name: "PersonalInfo",
data: () => ({
personalData: {
age: '25 лет',
location: 'г. Иркутск',
email: 'belezov.pavel@mail.ru',
phoneNumber: '+7-914-919-21-17'
},
windowHeight: document.documentElement.clientHeight,
windowWidth: document.documentElement.clientWidth,
isWide: window.innerWidth > 1000,
tableClass: 'w-25'
}),
created() {
window.addEventListener("resize", this.myEventHandler);
},
mounted() {
this.myEventHandler();
window.addEventListener("resize", this.myEventHandler, { passive: true });
},
methods: {
myEventHandler(e) {
this.windowHeight = document.documentElement.clientHeight;
this.windowWidth = document.documentElement.clientWidth;
if (this.windowWidth < 1000){
this.isWide = false;
this.tableClass = 'w-66';
} else {
this.isWide = true;
this.tableClass = 'w-33';
}
}
}
}
</script>
<style scoped>
.main-sheet-bg {
background-color: #424242;
color: #E0E0E0;
text-decoration-color: #E0E0E0;
}
.image-gradient {
mask-image: linear-gradient( to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}
</style>