Skip to content

Commit

Permalink
feat: make use of image optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ardasevinc committed Oct 12, 2023
1 parent 599c609 commit 937c15b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
File renamed without changes
File renamed without changes
10 changes: 4 additions & 6 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
---
import { Image } from 'astro:assets';
import iztechLogo from '@/assets/iyte-logo.png';
import aiSocLogo from '@/assets/logo.png';
---

<header class='pt-4 sm:pt-8 text-foreground'>
<div
class='flex justify-center items-center gap-x-4 sm:gap-x-10 px-6 sm:px-12 mb-6 sm:mb-12'
>
<Image
src='/images/iyte-logo.png'
src={iztechLogo}
alt='logo of Izmir Institute of Technology'
loading='eager'
width={400}
height={400}
class='w-1/2 h-auto max-w-[300px] transition-all duration-150 ease-in shadow-lg shadow-[rgba(0,0,0,0.4)] dark:shadow-gray-800 cursor-default focus:ring-2 focus:ring-blue hover:ring-2 hover:ring-blue active:ring-2 active:ring-blue rounded-full'
/>
<Image
src='/images/logo.png'
src={aiSocLogo}
alt='logo of Iztech AI society'
loading='eager'
width={400}
height={400}
class='w-1/2 h-auto max-w-[300px] transition-all duration-150 ease-in shadow-lg shadow-[rgba(0,0,0,0.4)] dark:shadow-gray-800 cursor-default focus:ring-2 focus:ring-blue hover:ring-2 hover:ring-blue active:ring-2 active:ring-blue rounded-full'
/>
</div>
Expand Down

0 comments on commit 937c15b

Please sign in to comment.