update images

This commit is contained in:
somrat sorkar
2023-07-24 10:53:54 +06:00
parent abed7aa2a8
commit 3d19b8c0ac
9 changed files with 21 additions and 10 deletions
+1
View File
@@ -35,6 +35,7 @@ const { title, description, author, categories, image, date, tags } = post.data;
width={1200}
alt={title}
class="w-full rounded"
format="webp"
/>
</div>
)
+1
View File
@@ -18,6 +18,7 @@ const { title, image, social } = data.data;
alt={title}
width={120}
height={120}
format="webp"
/>
)
}
+2 -1
View File
@@ -1,7 +1,7 @@
---
import { Image } from "@astrojs/image/components";
import config from "@/config/config.json";
import { humanize, plainify, slugify } from "@/lib/utils/textConverter";
import { Image } from "@astrojs/image/components";
import { FaRegFolder, FaRegUserCircle } from "react-icons/fa/index.js";
const {
@@ -21,6 +21,7 @@ const { title, image, date, author, categories } = data.data;
alt={title}
width={445}
height={230}
format="webp"
/>
)
}
+3 -1
View File
@@ -1,6 +1,6 @@
---
import { Image } from "@astrojs/image/components";
import config from "@/config/config.json";
import { Image } from "@astrojs/image/components";
const { src, srcDarkmode }: { src?: string; srcDarkmode?: string } =
Astro.props;
@@ -39,6 +39,7 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
height: logo_height.replace("px", "") + "px",
width: logo_width.replace("px", "") + "px",
}}
format="webp"
/>
{theme_switcher && (
<Image
@@ -53,6 +54,7 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
height: logo_height.replace("px", "") + "px",
width: logo_width.replace("px", "") + "px",
}}
format="webp"
/>
)}
</>
+2 -1
View File
@@ -1,6 +1,6 @@
---
import { Image } from "@astrojs/image/components";
import { markdownify } from "@/lib/utils/textConverter";
import { Image } from "@astrojs/image/components";
const { call_to_action } = Astro.props;
---
@@ -17,6 +17,7 @@ const { call_to_action } = Astro.props;
width={392}
height={390}
alt="cta-image"
format="webp"
/>
</div>
<div class="md:col-7 md:order-1">
+6 -5
View File
@@ -51,6 +51,7 @@ const { testimonial } = Astro.props;
class="rounded-full"
src={item.avatar}
alt={item.name}
format="webp"
/>
</div>
<div class="ml-4">
@@ -66,7 +67,7 @@ const { testimonial } = Astro.props;
</div>
</div>
</div>
)
),
)}
</div>
<div class="testimonial-slider-pagination mt-9 flex items-center justify-center text-center" />
@@ -79,10 +80,10 @@ const { testimonial } = Astro.props;
}
<script>
import { Swiper } from "swiper";
import "swiper/css";
import "swiper/css/pagination";
import { Autoplay, Pagination } from "swiper/modules";
import { Swiper } from "swiper";
import "swiper/css";
import "swiper/css/pagination";
import { Autoplay, Pagination } from "swiper/modules";
new Swiper(".testimonial-slider", {
modules: [Pagination, Autoplay],
+2 -1
View File
@@ -1,7 +1,7 @@
---
import { Image } from "@astrojs/image/components";
import Base from "@/layouts/Base.astro";
import { markdownify } from "@/lib/utils/textConverter";
import { Image } from "@astrojs/image/components";
import { getEntryBySlug } from "astro:content";
const entry = await getEntryBySlug("pages", "about");
@@ -27,6 +27,7 @@ const { title, description, meta_title, image } = entry.data;
width={200}
height={200}
alt={title}
format="webp"
/>
)
}
+2 -1
View File
@@ -25,7 +25,7 @@ const { title, social, meta_title, description, image } = author.data;
const { Content } = await author.render();
const posts = await getSinglePage(blog_folder);
const postFilterByAuthor = posts.filter(
(post) => slugify(post.data.author) === slugify(title)
(post) => slugify(post.data.author) === slugify(title),
);
---
@@ -49,6 +49,7 @@ const postFilterByAuthor = posts.filter(
height={200}
width={200}
alt={title}
format="webp"
/>
)
}
+2
View File
@@ -48,6 +48,7 @@ const { banner, features }: Homepage = homepage.data;
height={380}
width={1200}
alt="banner image"
format="webp"
/>
</div>
)
@@ -73,6 +74,7 @@ const { banner, features }: Homepage = homepage.data;
fit="contain"
background="rgba(0,0,0,0)"
alt={feature.title}
format="webp"
/>
</div>
<div class={`md:col-7 lg:col-6 ${index % 2 !== 0 && "md:order-1"}`}>