Skip to content

Commit

Permalink
Merge pull request #10 from illacloud/feat/homepage
Browse files Browse the repository at this point in the history
feat: update image prefix
  • Loading branch information
Wangtaofeng authored Jan 2, 2024
2 parents 16a905c + 74ca2ef commit d8bef21
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
5 changes: 2 additions & 3 deletions src/ILLATheme/SolutionLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ export const SolutionLayout = (props: Record<string, any>) => {
return (
<>
<Head>
<html data-active-page="index" />
<title>{metaProps?.title}</title>
<meta property="og:title" content={metaProps?.title} />
<meta name="twitter:title" content={metaProps.title} />
<meta name="twitter:description" content={metaProps.description} />
</Head>
<CommonLayout {...metaProps}>
<div className="w-full overflow-visible bg-black relative z-[1]">
Expand Down
5 changes: 1 addition & 4 deletions src/components/blog/FeaturedBlogPostItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ export const FeaturedBlogPostItem = () => {
<Link itemProp="url" to={getUtmParams(permalink)}>
<div className="not-prose relative m-0 h-40 hover:brightness-90 md:h-64">
<img
src={`https://refine-web.imgix.net${frontMatter.image?.replace(
"https://refine.ams3.cdn.digitaloceanspaces.com",
"",
)}?h=256`}
src={`${frontMatter.image}?h=256`}
alt={title}
className="absolute inset-0 mt-0 h-full w-full rounded-[10px] object-cover"
loading="lazy"
Expand Down
5 changes: 1 addition & 4 deletions src/components/blog/PostPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ export const BlogPostPageView = ({ children }) => {
<div>
<img
className="mb-2 w-full rounded-xl"
src={`https://refine-web.imgix.net${frontMatter.image?.replace(
"https://refine.ams3.cdn.digitaloceanspaces.com",
"",
)}?w=800`}
src={`${frontMatter.image}?w=800`}
alt={title}
/>
</div>
Expand Down
18 changes: 12 additions & 6 deletions src/components/home/Index/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export const TAB_OPTIONS = [
},
]

// 1. Image generator: ILAcx4p1C7Bc
// 2. AI Voice Generator: ILAcx4p1C7Bb
// 3. Dashboard: ILAcx4p1C7Xz
// 4. CMS: ILAcx4p1C72G
// 5. CRM: ILAcx4p1C7N5
// 6. Admin Panel: ILAcx4p1C7Oy
export const SOLUTIONS_IMAGE = [
{
content: (
Expand All @@ -59,7 +65,7 @@ export const SOLUTIONS_IMAGE = [
className="w-full"
/>
),
appID: "ILAcx4p1C7W3",
appID: "ILAcx4p1C7Bc",
value: 0,
},
{
Expand All @@ -75,7 +81,7 @@ export const SOLUTIONS_IMAGE = [
className="w-full"
/>
),
appID: "ILAcx4p1C7W3",
appID: "ILAcx4p1C7Bb",
value: 1,
},
{
Expand All @@ -91,7 +97,7 @@ export const SOLUTIONS_IMAGE = [
className="w-full"
/>
),
appID: "ILAcx4p1C7W3",
appID: "ILAcx4p1C7Xz",
value: 2,
},
{
Expand All @@ -107,7 +113,7 @@ export const SOLUTIONS_IMAGE = [
className="w-full"
/>
),
appID: "ILAcx4p1C7W3",
appID: "ILAcx4p1C72G",
value: 3,
},
{
Expand All @@ -123,7 +129,7 @@ export const SOLUTIONS_IMAGE = [
className="w-full"
/>
),
appID: "ILAcx4p1C7W3",
appID: "ILAcx4p1C7N5",
value: 4,
},
{
Expand All @@ -139,7 +145,7 @@ export const SOLUTIONS_IMAGE = [
className="w-full"
/>
),
appID: "ILAcx4p1C7W3",
appID: "ILAcx4p1C7Oy",
value: 5,
},
]
Expand Down
5 changes: 1 addition & 4 deletions src/theme/BlogPostItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export default function BlogPostItem({ className }) {
<Link itemProp="url" to={getUtmParams(permalink)}>
<div className="not-prose relative m-0 h-40 hover:brightness-90">
<img
src={`https://refine-web.imgix.net${frontMatter.image?.replace(
"https://refine.ams3.cdn.digitaloceanspaces.com",
"",
)}?h=160`}
src={`${frontMatter.image}?h=160`}
alt={title}
className="absolute inset-0 mt-0 h-full w-full rounded-[10px] object-cover transition duration-150"
loading="lazy"
Expand Down

0 comments on commit d8bef21

Please sign in to comment.