Skip to content

Commit

Permalink
Merge pull request #173 from i74ifa/main
Browse files Browse the repository at this point in the history
دمج بعض تغييرات المستودع الاصلي
  • Loading branch information
Abdelaziz18003 authored Jan 11, 2025
2 parents d82db37 + 398a2ef commit 929e77e
Show file tree
Hide file tree
Showing 10 changed files with 417 additions and 85 deletions.
38 changes: 18 additions & 20 deletions .vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,26 @@ onMounted(async () => {
</p>
</section>

<section id="special-sponsor" dir="rtl">
<section v-if="data && data.special" id="special-sponsor">
<span class="lead">الراعي المميز</span>
<template v-if="data && data.special">
<template v-for="{ url, img, name, description } of data.special">
<a :href="url" target="_blank" rel="sponsored noopener">
<picture v-if="img.endsWith('png')">
<source
type="image/avif"
:srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`"
/>
<img :src="`${base}/images/${img}`" :alt="name" />
</picture>
<img
width="168"
height="42"
v-else
:src="`${base}/images/${img}`"
:alt="name"
<template v-for="{ url, img, name, description } of data.special">
<a :href="url" target="_blank" rel="sponsored noopener">
<picture v-if="img.endsWith('png')">
<source
type="image/avif"
:srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`"
/>
</a>
<span>{{ description }}</span>
</template>
<img :src="`${base}/images/${img}`" :alt="name" />
</picture>
<img
width="168"
height="42"
v-else
:src="`${base}/images/${img}`"
:alt="name"
/>
</a>
<span>{{ description }}</span>
</template>
</section>

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@vue/theme": "^2.2.4",
"dynamics.js": "^1.1.5",
"gsap": "^3.9.0",
"vitepress": "1.0.0-beta.7",
"vue": "^3.3.4"
"vitepress": "1.0.0-rc.31",
"vue": "^3.4.0-alpha.4"
},
"devDependencies": {
"@types/markdown-it": "^12.2.3",
Expand Down
Loading

0 comments on commit 929e77e

Please sign in to comment.