Skip to content

Commit 613fd2c

Browse files
authored
Merge pull request #6 from lanis-mobile/faq2
Faq2
2 parents 76784ee + 218f22a commit 613fd2c

18 files changed

Lines changed: 273 additions & 48 deletions

File tree

1.12 MB
Loading
925 KB
Loading
822 KB
Loading
938 KB
Loading
1.12 MB
Loading
988 KB
Loading

assets/icon.png

-38.3 KB
Loading

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ import tailwind from '@astrojs/tailwind';
33

44
export default defineConfig({
55
integrations: [tailwind()],
6+
image: {
7+
domains: ['avatars.githubusercontent.com'],
8+
},
69
});

public/assets/icon.png

-144 KB
Binary file not shown.

src/components/AppHeader.astro

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
---
2+
import { Image, getImage } from 'astro:assets';
23
import StoreButtons from './StoreButtons.astro';
4+
import appIconSource from '../../assets/icon.png';
5+
import iosMaskBorderSource from '../../assets/ios-mask-border-128.svg';
6+
import iosMaskSource from '../../assets/ios-mask.svg';
7+
8+
const iosMaskBorder = await getImage({ src: iosMaskBorderSource });
9+
const iosMask = await getImage({ src: iosMaskSource });
310
---
411

5-
<header class="mx-auto mt-8 mb-4 flex w-full max-w-[960px] flex-row items-start px-[30px] md:mt-32 md:mb-32 md:items-center">
6-
<div class="mr-4 inline-block h-full w-full max-w-[100px] max-h-[100px] bg-[url('/assets/ios-mask-border-128.svg')] bg-contain bg-no-repeat p-[1px] md:mr-16 md:max-h-[250px] md:max-w-[250px]">
7-
<img alt="Lanis-Mobile" class="h-auto w-full rounded-[22.5%] [mask-image:url('/assets/ios-mask.svg')] [mask-size:cover]" src="/content/image/b3o1shvbuyeezgcpd7vp.png" />
12+
<header class="mx-auto mt-8 mb-4 flex w-full max-w-[960px] flex-row items-start px-[30px] md:mt-32 md:mb-16 md:items-center">
13+
<div
14+
class="mr-4 inline-block h-full w-full max-w-[100px] max-h-[100px] bg-contain bg-no-repeat p-[1px] md:mr-16 md:max-h-[250px] md:max-w-[250px]"
15+
style={`background-image: url(${iosMaskBorder.src});`}
16+
>
17+
<Image
18+
src={appIconSource}
19+
alt="Lanis-Mobile"
20+
class="h-auto w-full rounded-[22.5%]"
21+
style={`mask-image: url(${iosMask.src}); -webkit-mask-image: url(${iosMask.src}); mask-size: cover; -webkit-mask-size: cover;`}
22+
/>
823
</div>
924
<div>
1025
<h1 class="m-0 font-bold text-4xl text-[var(--font-xl)]">Lanis-Mobile</h1>

0 commit comments

Comments
 (0)