Skip to content

Commit

Permalink
removed getImage function
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsa committed Jan 29, 2024
1 parent 86dd54b commit 6b7edda
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/components/About.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup>
import {useTranslation} from "i18next-vue";
import {getImage} from "../globals.js";
const {i18next, t} = useTranslation();
Expand All @@ -23,7 +22,7 @@ const diplomas = t('diplomas', {returnObjects: true});
<div v-for="school in diploma.school" class="m-auto flex place-content-center text-center font-bold">
<div class="grid grid-cols-[5rem_12rem] gap-1 max-w-[90%]">
<img :alt="school.name"
:src="getImage(school.logo)" class="m-auto rounded-full p-1 size-20"/>
:src="`/${school.logo}`" class="m-auto rounded-full p-1 size-20"/>
<p class="place-self-center">{{ school.name }} ({{ school.city }})</p>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Education.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup>
import {useTranslation} from "i18next-vue";
import {getImage} from "../globals.js";
const {i18next, t} = useTranslation();
Expand All @@ -23,7 +22,7 @@ const diplomas = t('diplomas', {returnObjects: true});
<div v-for="school in diploma.school" class="m-auto flex place-content-center text-center font-bold">
<div class="grid grid-cols-[5rem_12rem] gap-1 max-w-[90%]">
<img :alt="school.name"
:src="getImage(school.logo)" class="m-auto rounded-full p-1 size-20"/>
:src="`/${school.logo}`" class="m-auto rounded-full p-1 size-20"/>
<p class="place-self-center">{{ school.name }} ({{ school.city }})</p>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Experience.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {ref} from 'vue'
import {useTranslation} from "i18next-vue";
import Responsibility from "./Responsibility.vue";
import Popup from "./Popup.vue";
import {getImage} from "../globals.js";
const { i18next, t } = useTranslation();
const selectedCompany = ref([1, 2, 3, 4, 5, 6, 7]);
Expand Down Expand Up @@ -42,7 +41,7 @@ const handleSelectCompany = (id) => {
>
<div class="m-auto flex flex-col text-center">
<img class="m-auto rounded-full p-1 size-20"
:src="getImage(job.logo)" :alt="job.company"/>
:src="`/${job.logo}`" :alt="job.company"/>
<div class="text-lg">{{ job.dates }}</div>
</div>
<div class="flex flex-col justify-center">
Expand Down
1 change: 0 additions & 1 deletion src/components/Menu.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup>
import {useTranslation} from "i18next-vue";
import {getImage} from "../globals.js";
const emit = defineEmits(['changeTab']);
Expand Down
3 changes: 0 additions & 3 deletions src/components/Popup.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup>
import {getImage} from "../globals.js";
const props = defineProps({
title: {
type: String,
Expand Down
5 changes: 2 additions & 3 deletions src/components/Responsibility.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup>
import {computed} from 'vue'
import {getImage} from "../globals.js";
const props = defineProps({
responsibility: {
Expand Down Expand Up @@ -35,12 +34,12 @@ const emit = defineEmits(['selectResponsibility']);
v-for="(type, index) in responsibility.type"
:key="index"
:alt="type"
:src="getImage(`${type}.webp`)" class="h-8 mt-1 sm:mt-0"/>
:src="`/${type}.webp`" class="h-8 mt-1 sm:mt-0"/>
</div>
<img
v-else
:alt="responsibility.type"
:src="getImage(`${responsibility.type}.webp`)" class="h-8 mt-1 sm:mt-0"/>
:src="`/${responsibility.type}.webp`" class="h-8 mt-1 sm:mt-0"/>
<p class="text-xl sm:text-base">{{ responsibility.name }}</p>
</div>
</template>
Expand Down
4 changes: 0 additions & 4 deletions src/globals.js

This file was deleted.

0 comments on commit 6b7edda

Please sign in to comment.