Skip to content

Commit

Permalink
remove @astrojs/image <Image/> tag from country page and update image…
Browse files Browse the repository at this point in the history
… orientation with native <img> tag
  • Loading branch information
ayaz committed Jan 21, 2024
1 parent a7ab7af commit eb1599d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/travel/[country].astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import InfoItem from "../../components/info-item/InfoItem";
import InfoSection from "../../components/info-section/InfoSection";
import Restrictions from "../../components/restrictions/Restrictions";
import CountryStats from "../../components/CountryStats.astro";
import {Image} from "astro:assets";
import {Country} from "../../models.interface";
export async function getStaticPaths() {
Expand Down Expand Up @@ -82,7 +81,7 @@ const transformItems = (items: string[]) => {
<VisaRequirement client:only="preact" travelCountry={country}></VisaRequirement>
<div class="profile-container">
<div class="country-info">
<Image src={flags.png} class="country-flag" width={113} height={68} format="webp" alt={officialName}/>
<img loading="lazy" src={flags.png} class="country-flag" width="auto" height={68} alt={officialName}/>
<div class="country-name">
<h1>{country}</h1>
<h2>{officialName}</h2>
Expand Down

0 comments on commit eb1599d

Please sign in to comment.