From b739deba99f614c8b3d0604e82c11f9f14e154fc Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 25 Jul 2025 16:38:36 +0100 Subject: [PATCH] Move images to img (#8953) --- public/{images => img}/brand-square.png | Bin public/{images => img}/brand.png | Bin public/{images => img}/brand.svg | 0 public/{images => img}/cursors/add.svg | 0 public/{images => img}/cursors/remove.svg | 0 public/{images => img}/default-avatar.png | Bin .../{images => img}/features/in-progress.png | Bin public/{images => img}/gifs/bot.gif | Bin public/{images => img}/gifs/party-popper.gif | Bin public/{images => img}/gifs/rocket.gif | Bin public/{images => img}/gifs/star.gif | Bin public/{images => img}/gifs/starstruck.gif | Bin public/{images => img}/gifs/sunglasses.gif | Bin public/{images => img}/gifs/wave.gif | Bin public/{images => img}/graph.svg | 0 public/{images => img}/hackernews.svg | 0 public/{images => img}/icons8-wand.gif | Bin public/{images => img}/og-img.png | Bin .../partners/ambassador-graphic-1.png | Bin .../partners/ambassador-graphic-2.png | Bin .../{images => img}/partners/apollo-event.jpg | Bin .../partners/apollo-learning.jpg | Bin .../partners/apollo-workshop.png | Bin .../partners/graphql-summit.png | Bin .../partners/honeycomb-ebook.jpg | Bin public/{images => img}/partners/nginx.png | Bin .../{images => img}/partners/spring-tile.png | Bin public/{images => img}/partners/zilliz.png | Bin public/{images => img}/party.gif | Bin public/{images => img}/reddit.svg | 0 public/{images => img}/roadmap-editor.jpeg | Bin public/{images => img}/system-design.png | Bin public/{images => img}/team-promo/contact.png | Bin .../team-promo/documentation.png | Bin .../team-promo/growth-plans.png | Bin .../{images => img}/team-promo/hero-img.png | Bin public/{images => img}/team-promo/hero.png | Bin .../team-promo/invite-members.png | Bin .../team-promo/many-roadmaps.png | Bin .../{images => img}/team-promo/onboarding.png | Bin .../team-promo/our-roadmaps.png | Bin .../team-promo/progress-tracking.png | Bin .../team-promo/roadmap-editor.png | Bin .../team-promo/sharing-settings.png | Bin .../{images => img}/team-promo/skill-gap.png | Bin .../team-promo/team-dashboard.png | Bin .../team-promo/team-insights.png | Bin .../team-promo/update-progress.png | Bin public/{images => img}/tns-sm.png | Bin public/{images => img}/tns.png | Bin public/{images => img}/twitter-img.png | Bin readme.md | 2 +- scripts/compressed-images.json | 54 +++++++++--------- scripts/generate-og-images.mjs | 2 +- src/components/AITutor/UserDropdown.tsx | 2 +- src/components/Befriend.tsx | 2 +- .../Changelog/ChangelogLaunch.astro | 2 +- src/components/ChangelogBanner.astro | 2 +- .../CustomRoadmap/ListRoadmapRatings.tsx | 2 +- .../CustomRoadmap/RoadmapHeader.tsx | 2 +- .../CustomRoadmap/SharedRoadmapList.tsx | 2 +- src/components/Dashboard/DashboardPage.tsx | 4 +- .../Dashboard/PersonalDashboard.tsx | 2 +- src/components/Dashboard/TeamDashboard.tsx | 2 +- src/components/Footer.astro | 2 +- .../FrameRenderer/FrameRenderer.css | 2 +- src/components/Friends/FriendProgressItem.tsx | 2 +- .../Leaderboard/LeaderboardPage.tsx | 2 +- .../Projects/ProjectSolutionModal.tsx | 2 +- .../Projects/ProjectSolutionRow.tsx | 2 +- .../ShareOptions/TransferToTeamList.tsx | 2 +- src/components/ShareOptions/UserItem.tsx | 2 +- src/components/ShareRoadmapButton.tsx | 4 +- .../TeamActivity/TeamActivityItem.tsx | 2 +- src/components/TeamDropdown/TeamDropdown.tsx | 2 +- src/components/TeamMarketing/TeamDemo.tsx | 14 ++--- .../TeamMarketing/TeamHeroBanner.tsx | 2 +- src/components/TeamMarketing/TeamPricing.tsx | 2 +- .../TeamMemberDetailsPage.tsx | 2 +- src/components/TeamMembers/TeamMemberItem.tsx | 2 +- .../TeamProgress/GroupRoadmapItem.tsx | 2 +- .../TeamProgress/MemberProgressItem.tsx | 2 +- .../TeamSettings/UpdateTeamForm.tsx | 2 +- src/components/TeamVersions/TeamVersions.tsx | 2 +- src/components/TeamsList.tsx | 4 +- src/components/ThankYou/ThankYouPage.tsx | 2 +- .../UpdateProfile/UpdateProfileForm.tsx | 2 +- .../UpdateProfile/UpdatePublicProfileForm.tsx | 2 +- src/components/UserPersona/ChatPersona.tsx | 2 +- .../UserPublicProfileHeader.tsx | 2 +- src/layouts/BaseLayout.astro | 4 +- src/lib/jsonld-schema.ts | 2 +- src/lib/open-graph.ts | 2 +- src/pages/projects/[projectId]/index.astro | 2 +- .../projects/[projectId]/solutions.astro | 2 +- 95 files changed, 80 insertions(+), 80 deletions(-) rename public/{images => img}/brand-square.png (100%) rename public/{images => img}/brand.png (100%) rename public/{images => img}/brand.svg (100%) rename public/{images => img}/cursors/add.svg (100%) rename public/{images => img}/cursors/remove.svg (100%) rename public/{images => img}/default-avatar.png (100%) rename public/{images => img}/features/in-progress.png (100%) rename public/{images => img}/gifs/bot.gif (100%) rename public/{images => img}/gifs/party-popper.gif (100%) rename public/{images => img}/gifs/rocket.gif (100%) rename public/{images => img}/gifs/star.gif (100%) rename public/{images => img}/gifs/starstruck.gif (100%) rename public/{images => img}/gifs/sunglasses.gif (100%) rename public/{images => img}/gifs/wave.gif (100%) rename public/{images => img}/graph.svg (100%) rename public/{images => img}/hackernews.svg (100%) rename public/{images => img}/icons8-wand.gif (100%) rename public/{images => img}/og-img.png (100%) rename public/{images => img}/partners/ambassador-graphic-1.png (100%) rename public/{images => img}/partners/ambassador-graphic-2.png (100%) rename public/{images => img}/partners/apollo-event.jpg (100%) rename public/{images => img}/partners/apollo-learning.jpg (100%) rename public/{images => img}/partners/apollo-workshop.png (100%) rename public/{images => img}/partners/graphql-summit.png (100%) rename public/{images => img}/partners/honeycomb-ebook.jpg (100%) rename public/{images => img}/partners/nginx.png (100%) rename public/{images => img}/partners/spring-tile.png (100%) rename public/{images => img}/partners/zilliz.png (100%) rename public/{images => img}/party.gif (100%) rename public/{images => img}/reddit.svg (100%) rename public/{images => img}/roadmap-editor.jpeg (100%) rename public/{images => img}/system-design.png (100%) rename public/{images => img}/team-promo/contact.png (100%) rename public/{images => img}/team-promo/documentation.png (100%) rename public/{images => img}/team-promo/growth-plans.png (100%) rename public/{images => img}/team-promo/hero-img.png (100%) rename public/{images => img}/team-promo/hero.png (100%) rename public/{images => img}/team-promo/invite-members.png (100%) rename public/{images => img}/team-promo/many-roadmaps.png (100%) rename public/{images => img}/team-promo/onboarding.png (100%) rename public/{images => img}/team-promo/our-roadmaps.png (100%) rename public/{images => img}/team-promo/progress-tracking.png (100%) rename public/{images => img}/team-promo/roadmap-editor.png (100%) rename public/{images => img}/team-promo/sharing-settings.png (100%) rename public/{images => img}/team-promo/skill-gap.png (100%) rename public/{images => img}/team-promo/team-dashboard.png (100%) rename public/{images => img}/team-promo/team-insights.png (100%) rename public/{images => img}/team-promo/update-progress.png (100%) rename public/{images => img}/tns-sm.png (100%) rename public/{images => img}/tns.png (100%) rename public/{images => img}/twitter-img.png (100%) diff --git a/public/images/brand-square.png b/public/img/brand-square.png similarity index 100% rename from public/images/brand-square.png rename to public/img/brand-square.png diff --git a/public/images/brand.png b/public/img/brand.png similarity index 100% rename from public/images/brand.png rename to public/img/brand.png diff --git a/public/images/brand.svg b/public/img/brand.svg similarity index 100% rename from public/images/brand.svg rename to public/img/brand.svg diff --git a/public/images/cursors/add.svg b/public/img/cursors/add.svg similarity index 100% rename from public/images/cursors/add.svg rename to public/img/cursors/add.svg diff --git a/public/images/cursors/remove.svg b/public/img/cursors/remove.svg similarity index 100% rename from public/images/cursors/remove.svg rename to public/img/cursors/remove.svg diff --git a/public/images/default-avatar.png b/public/img/default-avatar.png similarity index 100% rename from public/images/default-avatar.png rename to public/img/default-avatar.png diff --git a/public/images/features/in-progress.png b/public/img/features/in-progress.png similarity index 100% rename from public/images/features/in-progress.png rename to public/img/features/in-progress.png diff --git a/public/images/gifs/bot.gif b/public/img/gifs/bot.gif similarity index 100% rename from public/images/gifs/bot.gif rename to public/img/gifs/bot.gif diff --git a/public/images/gifs/party-popper.gif b/public/img/gifs/party-popper.gif similarity index 100% rename from public/images/gifs/party-popper.gif rename to public/img/gifs/party-popper.gif diff --git a/public/images/gifs/rocket.gif b/public/img/gifs/rocket.gif similarity index 100% rename from public/images/gifs/rocket.gif rename to public/img/gifs/rocket.gif diff --git a/public/images/gifs/star.gif b/public/img/gifs/star.gif similarity index 100% rename from public/images/gifs/star.gif rename to public/img/gifs/star.gif diff --git a/public/images/gifs/starstruck.gif b/public/img/gifs/starstruck.gif similarity index 100% rename from public/images/gifs/starstruck.gif rename to public/img/gifs/starstruck.gif diff --git a/public/images/gifs/sunglasses.gif b/public/img/gifs/sunglasses.gif similarity index 100% rename from public/images/gifs/sunglasses.gif rename to public/img/gifs/sunglasses.gif diff --git a/public/images/gifs/wave.gif b/public/img/gifs/wave.gif similarity index 100% rename from public/images/gifs/wave.gif rename to public/img/gifs/wave.gif diff --git a/public/images/graph.svg b/public/img/graph.svg similarity index 100% rename from public/images/graph.svg rename to public/img/graph.svg diff --git a/public/images/hackernews.svg b/public/img/hackernews.svg similarity index 100% rename from public/images/hackernews.svg rename to public/img/hackernews.svg diff --git a/public/images/icons8-wand.gif b/public/img/icons8-wand.gif similarity index 100% rename from public/images/icons8-wand.gif rename to public/img/icons8-wand.gif diff --git a/public/images/og-img.png b/public/img/og-img.png similarity index 100% rename from public/images/og-img.png rename to public/img/og-img.png diff --git a/public/images/partners/ambassador-graphic-1.png b/public/img/partners/ambassador-graphic-1.png similarity index 100% rename from public/images/partners/ambassador-graphic-1.png rename to public/img/partners/ambassador-graphic-1.png diff --git a/public/images/partners/ambassador-graphic-2.png b/public/img/partners/ambassador-graphic-2.png similarity index 100% rename from public/images/partners/ambassador-graphic-2.png rename to public/img/partners/ambassador-graphic-2.png diff --git a/public/images/partners/apollo-event.jpg b/public/img/partners/apollo-event.jpg similarity index 100% rename from public/images/partners/apollo-event.jpg rename to public/img/partners/apollo-event.jpg diff --git a/public/images/partners/apollo-learning.jpg b/public/img/partners/apollo-learning.jpg similarity index 100% rename from public/images/partners/apollo-learning.jpg rename to public/img/partners/apollo-learning.jpg diff --git a/public/images/partners/apollo-workshop.png b/public/img/partners/apollo-workshop.png similarity index 100% rename from public/images/partners/apollo-workshop.png rename to public/img/partners/apollo-workshop.png diff --git a/public/images/partners/graphql-summit.png b/public/img/partners/graphql-summit.png similarity index 100% rename from public/images/partners/graphql-summit.png rename to public/img/partners/graphql-summit.png diff --git a/public/images/partners/honeycomb-ebook.jpg b/public/img/partners/honeycomb-ebook.jpg similarity index 100% rename from public/images/partners/honeycomb-ebook.jpg rename to public/img/partners/honeycomb-ebook.jpg diff --git a/public/images/partners/nginx.png b/public/img/partners/nginx.png similarity index 100% rename from public/images/partners/nginx.png rename to public/img/partners/nginx.png diff --git a/public/images/partners/spring-tile.png b/public/img/partners/spring-tile.png similarity index 100% rename from public/images/partners/spring-tile.png rename to public/img/partners/spring-tile.png diff --git a/public/images/partners/zilliz.png b/public/img/partners/zilliz.png similarity index 100% rename from public/images/partners/zilliz.png rename to public/img/partners/zilliz.png diff --git a/public/images/party.gif b/public/img/party.gif similarity index 100% rename from public/images/party.gif rename to public/img/party.gif diff --git a/public/images/reddit.svg b/public/img/reddit.svg similarity index 100% rename from public/images/reddit.svg rename to public/img/reddit.svg diff --git a/public/images/roadmap-editor.jpeg b/public/img/roadmap-editor.jpeg similarity index 100% rename from public/images/roadmap-editor.jpeg rename to public/img/roadmap-editor.jpeg diff --git a/public/images/system-design.png b/public/img/system-design.png similarity index 100% rename from public/images/system-design.png rename to public/img/system-design.png diff --git a/public/images/team-promo/contact.png b/public/img/team-promo/contact.png similarity index 100% rename from public/images/team-promo/contact.png rename to public/img/team-promo/contact.png diff --git a/public/images/team-promo/documentation.png b/public/img/team-promo/documentation.png similarity index 100% rename from public/images/team-promo/documentation.png rename to public/img/team-promo/documentation.png diff --git a/public/images/team-promo/growth-plans.png b/public/img/team-promo/growth-plans.png similarity index 100% rename from public/images/team-promo/growth-plans.png rename to public/img/team-promo/growth-plans.png diff --git a/public/images/team-promo/hero-img.png b/public/img/team-promo/hero-img.png similarity index 100% rename from public/images/team-promo/hero-img.png rename to public/img/team-promo/hero-img.png diff --git a/public/images/team-promo/hero.png b/public/img/team-promo/hero.png similarity index 100% rename from public/images/team-promo/hero.png rename to public/img/team-promo/hero.png diff --git a/public/images/team-promo/invite-members.png b/public/img/team-promo/invite-members.png similarity index 100% rename from public/images/team-promo/invite-members.png rename to public/img/team-promo/invite-members.png diff --git a/public/images/team-promo/many-roadmaps.png b/public/img/team-promo/many-roadmaps.png similarity index 100% rename from public/images/team-promo/many-roadmaps.png rename to public/img/team-promo/many-roadmaps.png diff --git a/public/images/team-promo/onboarding.png b/public/img/team-promo/onboarding.png similarity index 100% rename from public/images/team-promo/onboarding.png rename to public/img/team-promo/onboarding.png diff --git a/public/images/team-promo/our-roadmaps.png b/public/img/team-promo/our-roadmaps.png similarity index 100% rename from public/images/team-promo/our-roadmaps.png rename to public/img/team-promo/our-roadmaps.png diff --git a/public/images/team-promo/progress-tracking.png b/public/img/team-promo/progress-tracking.png similarity index 100% rename from public/images/team-promo/progress-tracking.png rename to public/img/team-promo/progress-tracking.png diff --git a/public/images/team-promo/roadmap-editor.png b/public/img/team-promo/roadmap-editor.png similarity index 100% rename from public/images/team-promo/roadmap-editor.png rename to public/img/team-promo/roadmap-editor.png diff --git a/public/images/team-promo/sharing-settings.png b/public/img/team-promo/sharing-settings.png similarity index 100% rename from public/images/team-promo/sharing-settings.png rename to public/img/team-promo/sharing-settings.png diff --git a/public/images/team-promo/skill-gap.png b/public/img/team-promo/skill-gap.png similarity index 100% rename from public/images/team-promo/skill-gap.png rename to public/img/team-promo/skill-gap.png diff --git a/public/images/team-promo/team-dashboard.png b/public/img/team-promo/team-dashboard.png similarity index 100% rename from public/images/team-promo/team-dashboard.png rename to public/img/team-promo/team-dashboard.png diff --git a/public/images/team-promo/team-insights.png b/public/img/team-promo/team-insights.png similarity index 100% rename from public/images/team-promo/team-insights.png rename to public/img/team-promo/team-insights.png diff --git a/public/images/team-promo/update-progress.png b/public/img/team-promo/update-progress.png similarity index 100% rename from public/images/team-promo/update-progress.png rename to public/img/team-promo/update-progress.png diff --git a/public/images/tns-sm.png b/public/img/tns-sm.png similarity index 100% rename from public/images/tns-sm.png rename to public/img/tns-sm.png diff --git a/public/images/tns.png b/public/img/tns.png similarity index 100% rename from public/images/tns.png rename to public/img/tns.png diff --git a/public/images/twitter-img.png b/public/img/twitter-img.png similarity index 100% rename from public/images/twitter-img.png rename to public/img/twitter-img.png diff --git a/readme.md b/readme.md index ea7e3a647..e97e41e1a 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,5 @@

- +

roadmap.sh

Community driven roadmaps, articles and resources for developers

diff --git a/scripts/compressed-images.json b/scripts/compressed-images.json index 29927b4b6..a90d63ed0 100644 --- a/scripts/compressed-images.json +++ b/scripts/compressed-images.json @@ -36,33 +36,33 @@ "public/guides/torrent-client/pipelining.png", "public/guides/unfamiliar-codebase.png", "public/guides/web-vitals.png", - "public/images/brand.png", - "public/images/default-avatar.png", - "public/images/features/in-progress.png", - "public/images/icons8-wand.gif", - "public/images/partners/ambassador-graphic-1.png", - "public/images/partners/ambassador-graphic-2.png", - "public/images/partners/apollo-workshop.png", - "public/images/partners/graphql-summit.png", - "public/images/partners/nginx.png", - "public/images/roadmap-editor.jpeg", - "public/images/system-design.png", - "public/images/team-promo/contact.png", - "public/images/team-promo/documentation.png", - "public/images/team-promo/growth-plans.png", - "public/images/team-promo/hero-img.png", - "public/images/team-promo/hero.png", - "public/images/team-promo/invite-members.png", - "public/images/team-promo/many-roadmaps.png", - "public/images/team-promo/onboarding.png", - "public/images/team-promo/our-roadmaps.png", - "public/images/team-promo/progress-tracking.png", - "public/images/team-promo/roadmap-editor.png", - "public/images/team-promo/sharing-settings.png", - "public/images/team-promo/skill-gap.png", - "public/images/team-promo/team-dashboard.png", - "public/images/team-promo/team-insights.png", - "public/images/team-promo/update-progress.png", + "public/img/brand.png", + "public/img/default-avatar.png", + "public/img/features/in-progress.png", + "public/img/icons8-wand.gif", + "public/img/partners/ambassador-graphic-1.png", + "public/img/partners/ambassador-graphic-2.png", + "public/img/partners/apollo-workshop.png", + "public/img/partners/graphql-summit.png", + "public/img/partners/nginx.png", + "public/img/roadmap-editor.jpeg", + "public/img/system-design.png", + "public/img/team-promo/contact.png", + "public/img/team-promo/documentation.png", + "public/img/team-promo/growth-plans.png", + "public/img/team-promo/hero-img.png", + "public/img/team-promo/hero.png", + "public/img/team-promo/invite-members.png", + "public/img/team-promo/many-roadmaps.png", + "public/img/team-promo/onboarding.png", + "public/img/team-promo/our-roadmaps.png", + "public/img/team-promo/progress-tracking.png", + "public/img/team-promo/roadmap-editor.png", + "public/img/team-promo/sharing-settings.png", + "public/img/team-promo/skill-gap.png", + "public/img/team-promo/team-dashboard.png", + "public/img/team-promo/team-insights.png", + "public/img/team-promo/update-progress.png", "public/manifest/apple-touch-icon.png", "public/manifest/icon152.png", "public/manifest/icon196.png", diff --git a/scripts/generate-og-images.mjs b/scripts/generate-og-images.mjs index cb90c212b..d6c49a347 100644 --- a/scripts/generate-og-images.mjs +++ b/scripts/generate-og-images.mjs @@ -239,7 +239,7 @@ async function generateGuideOpenGraph() { for (const guide of allGuides) { const author = allAuthors.find((author) => author.id === guide.authorId); const image = - author?.imageUrl || 'https://roadmap.sh/images/default-avatar.png'; + author?.imageUrl || 'https://roadmap.sh/img/default-avatar.png'; const isExternalImage = image?.startsWith('http'); let authorImageExtension = ''; let authorAvatar; diff --git a/src/components/AITutor/UserDropdown.tsx b/src/components/AITutor/UserDropdown.tsx index 576367e91..6810e2192 100644 --- a/src/components/AITutor/UserDropdown.tsx +++ b/src/components/AITutor/UserDropdown.tsx @@ -44,7 +44,7 @@ export function UserDropdown(props: UserDropdownProps) { const userAvatar = currentUser?.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${currentUser?.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; return ( diff --git a/src/components/Befriend.tsx b/src/components/Befriend.tsx index 548d0fa77..807aec482 100644 --- a/src/components/Befriend.tsx +++ b/src/components/Befriend.tsx @@ -136,7 +136,7 @@ export function Befriend() { const userAvatar = user.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${user.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; const isMe = currentUser?.id === user.id; diff --git a/src/components/Changelog/ChangelogLaunch.astro b/src/components/Changelog/ChangelogLaunch.astro index c75720ca1..29af20b0f 100644 --- a/src/components/Changelog/ChangelogLaunch.astro +++ b/src/components/Changelog/ChangelogLaunch.astro @@ -23,7 +23,7 @@ const formattedDate = DateTime.fromISO('2024-09-13').toFormat('dd LLL, yyyy');

- +

Changelog page is launched

We will be sharing a selected list of updates, improvements, and fixes made to diff --git a/src/components/ChangelogBanner.astro b/src/components/ChangelogBanner.astro index e1c2d2edf..b7fb0fca8 100644 --- a/src/components/ChangelogBanner.astro +++ b/src/components/ChangelogBanner.astro @@ -10,7 +10,7 @@ const top10Changelogs = allChangelogs.slice(0, 10);

diff --git a/src/components/CustomRoadmap/ListRoadmapRatings.tsx b/src/components/CustomRoadmap/ListRoadmapRatings.tsx index f8552d93b..ccbd4fba3 100644 --- a/src/components/CustomRoadmap/ListRoadmapRatings.tsx +++ b/src/components/CustomRoadmap/ListRoadmapRatings.tsx @@ -117,7 +117,7 @@ export function ListRoadmapRatings(props: ListRoadmapRatingsProps) { {ratings.map((rating) => { const userAvatar = rating?.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${rating.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; const isLastRating = ratings[ratings.length - 1]._id === rating._id; diff --git a/src/components/CustomRoadmap/RoadmapHeader.tsx b/src/components/CustomRoadmap/RoadmapHeader.tsx index b45fb9ba2..38010dd48 100644 --- a/src/components/CustomRoadmap/RoadmapHeader.tsx +++ b/src/components/CustomRoadmap/RoadmapHeader.tsx @@ -72,7 +72,7 @@ export function RoadmapHeader(props: RoadmapHeaderProps) { const avatarUrl = creator?.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${creator?.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; return ( <> diff --git a/src/components/CustomRoadmap/SharedRoadmapList.tsx b/src/components/CustomRoadmap/SharedRoadmapList.tsx index 27e3c4dcc..590810eb0 100644 --- a/src/components/CustomRoadmap/SharedRoadmapList.tsx +++ b/src/components/CustomRoadmap/SharedRoadmapList.tsx @@ -70,7 +70,7 @@ export function SharedRoadmapList(props: SharedRoadmapListProps) { ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${ creator.avatar }` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={creator.name || ''} className="h-8 w-8 rounded-full" diff --git a/src/components/Dashboard/DashboardPage.tsx b/src/components/Dashboard/DashboardPage.tsx index a647f7fe9..e8b002aa8 100644 --- a/src/components/Dashboard/DashboardPage.tsx +++ b/src/components/Dashboard/DashboardPage.tsx @@ -73,7 +73,7 @@ export function DashboardPage(props: DashboardPageProps) { const userAvatar = currentUser?.avatar && !isLoading ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${currentUser.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; return ( <> @@ -96,7 +96,7 @@ export function DashboardPage(props: DashboardPageProps) { const { avatar } = team; const avatarUrl = avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; return ( { diff --git a/src/components/Dashboard/TeamDashboard.tsx b/src/components/Dashboard/TeamDashboard.tsx index 6baf1a9e3..f445cf147 100644 --- a/src/components/Dashboard/TeamDashboard.tsx +++ b/src/components/Dashboard/TeamDashboard.tsx @@ -128,7 +128,7 @@ export function TeamDashboard(props: TeamDashboardProps) { {allMembersWithoutCurrentUser.map((member) => { const avatar = member?.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${member.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; return ( ThewNewStack -1; diff --git a/src/components/Projects/ProjectSolutionModal.tsx b/src/components/Projects/ProjectSolutionModal.tsx index a28e105b7..496a673d0 100644 --- a/src/components/Projects/ProjectSolutionModal.tsx +++ b/src/components/Projects/ProjectSolutionModal.tsx @@ -145,7 +145,7 @@ export function ProjectSolutionModal(props: ProjectSolutionModalProps) { src={ avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={solution?.user?.name} className="h-12 w-12 rounded-full border-2 border-white shadow-md" diff --git a/src/components/Projects/ProjectSolutionRow.tsx b/src/components/Projects/ProjectSolutionRow.tsx index cbb09a7b2..f7b84e99c 100644 --- a/src/components/Projects/ProjectSolutionRow.tsx +++ b/src/components/Projects/ProjectSolutionRow.tsx @@ -58,7 +58,7 @@ export function ProjectSolutionRow(props: ProjectSolutionRowProps) { src={ avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={solution.user.name} className="h-7 w-7 shrink-0 rounded-full sm:h-8 sm:w-8" diff --git a/src/components/ShareOptions/TransferToTeamList.tsx b/src/components/ShareOptions/TransferToTeamList.tsx index ef16a2be3..dbcb5fda1 100644 --- a/src/components/ShareOptions/TransferToTeamList.tsx +++ b/src/components/ShareOptions/TransferToTeamList.tsx @@ -109,7 +109,7 @@ export function TransferToTeamList(props: TransferToTeamListProps) { ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${ team.avatar }` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={team.name || ''} className="h-6 w-6 shrink-0 rounded-full" diff --git a/src/components/ShareOptions/UserItem.tsx b/src/components/ShareOptions/UserItem.tsx index a2b4f492a..136045304 100644 --- a/src/components/ShareOptions/UserItem.tsx +++ b/src/components/ShareOptions/UserItem.tsx @@ -25,7 +25,7 @@ export function UserItem(props: UserItemProps) { src={ user.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${user.avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={user.name || ''} className="relative top-[1px] h-10 w-10 shrink-0 rounded-full" diff --git a/src/components/ShareRoadmapButton.tsx b/src/components/ShareRoadmapButton.tsx index 569910376..c328a4a97 100644 --- a/src/components/ShareRoadmapButton.tsx +++ b/src/components/ShareRoadmapButton.tsx @@ -124,7 +124,7 @@ export function ShareRoadmapButton(props: ShareRoadmapButtonProps) {

{'hackernews
@@ -138,7 +138,7 @@ export function ShareRoadmapButton(props: ShareRoadmapButtonProps) {
{'reddit
diff --git a/src/components/TeamActivity/TeamActivityItem.tsx b/src/components/TeamActivity/TeamActivityItem.tsx index 1a35410e8..56e14abd7 100644 --- a/src/components/TeamActivity/TeamActivityItem.tsx +++ b/src/components/TeamActivity/TeamActivityItem.tsx @@ -63,7 +63,7 @@ export function TeamActivityItem(props: TeamActivityItemProps) { ); const userAvatar = user.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${user.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; const isPersonalProgressOnly = currentTeam?.personalProgressOnly && diff --git a/src/components/TeamDropdown/TeamDropdown.tsx b/src/components/TeamDropdown/TeamDropdown.tsx index 614ad21c8..2b0e423a2 100644 --- a/src/components/TeamDropdown/TeamDropdown.tsx +++ b/src/components/TeamDropdown/TeamDropdown.tsx @@ -103,7 +103,7 @@ export function TeamDropdown() { ? `${ import.meta.env.PUBLIC_AVATAR_BASE_URL }/${selectedAvatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt="" className="h-4 w-4 rounded-full object-cover" diff --git a/src/components/TeamMarketing/TeamDemo.tsx b/src/components/TeamMarketing/TeamDemo.tsx index 61b2c16ec..746fe0ac6 100644 --- a/src/components/TeamMarketing/TeamDemo.tsx +++ b/src/components/TeamMarketing/TeamDemo.tsx @@ -8,43 +8,43 @@ const demoItems = [ title: 'Roadmap Editor', description: 'Powerful editor to create custom roadmaps and other trackable documents', - image: '/images/team-promo/roadmap-editor.png', + image: '/img/team-promo/roadmap-editor.png', }, { title: 'Invite Members', description: 'Invite your team members and assign roles', - image: '/images/team-promo/invite-members.png', + image: '/img/team-promo/invite-members.png', }, { title: 'Track Progress', description: 'You and your team can track progress on the roadmaps', - image: '/images/team-promo/update-progress.png', + image: '/img/team-promo/update-progress.png', }, { title: 'Team Dashboard', description: 'Keep an eye on the team progress through team dashboards', - image: '/images/team-promo/team-dashboard.png', + image: '/img/team-promo/team-dashboard.png', }, { title: 'Roadmaps and Documents', description: 'Create as many roadmaps or trackable documents as you want', - image: '/images/team-promo/many-roadmaps.png', + image: '/img/team-promo/many-roadmaps.png', }, { title: 'Community Roadmaps', description: 'Create custom roadmaps or customize community roadmaps to fit your needs', - image: '/images/team-promo/our-roadmaps.png', + image: '/img/team-promo/our-roadmaps.png', }, { title: 'Sharing Settings', description: 'Share a roadmap or trackable document with everyone or specific people', - image: '/images/team-promo/sharing-settings.png', + image: '/img/team-promo/sharing-settings.png', }, { title: 'More Coming Soon!', diff --git a/src/components/TeamMarketing/TeamHeroBanner.tsx b/src/components/TeamMarketing/TeamHeroBanner.tsx index 2f8abc56a..801cc96cc 100644 --- a/src/components/TeamMarketing/TeamHeroBanner.tsx +++ b/src/components/TeamMarketing/TeamHeroBanner.tsx @@ -87,7 +87,7 @@ export function TeamHeroBanner() { {'team
diff --git a/src/components/TeamMarketing/TeamPricing.tsx b/src/components/TeamMarketing/TeamPricing.tsx index 371ef4239..a54a6429c 100644 --- a/src/components/TeamMarketing/TeamPricing.tsx +++ b/src/components/TeamMarketing/TeamPricing.tsx @@ -64,7 +64,7 @@ export function TeamPricing() {
{'waving

diff --git a/src/components/TeamMemberDetails/TeamMemberDetailsPage.tsx b/src/components/TeamMemberDetails/TeamMemberDetailsPage.tsx index 4d49946db..ad594af93 100644 --- a/src/components/TeamMemberDetails/TeamMemberDetailsPage.tsx +++ b/src/components/TeamMemberDetails/TeamMemberDetailsPage.tsx @@ -98,7 +98,7 @@ export function TeamMemberDetailsPage() { const avatarUrl = memberProgress?.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${memberProgress?.avatar}` - : '/images/default-avatar.png'; + : '/img/default-avatar.png'; const ProgressModal = selectedResource && !selectedResource.isCustomResource diff --git a/src/components/TeamMembers/TeamMemberItem.tsx b/src/components/TeamMembers/TeamMemberItem.tsx index 7282aadf8..b2917f117 100644 --- a/src/components/TeamMembers/TeamMemberItem.tsx +++ b/src/components/TeamMembers/TeamMemberItem.tsx @@ -57,7 +57,7 @@ export function TeamMemberItem(props: TeamMemberProps) { src={ member.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${member.avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={member.name || ''} className="hidden h-10 w-10 rounded-full sm:block" diff --git a/src/components/TeamProgress/GroupRoadmapItem.tsx b/src/components/TeamProgress/GroupRoadmapItem.tsx index c09465720..ec1772360 100644 --- a/src/components/TeamProgress/GroupRoadmapItem.tsx +++ b/src/components/TeamProgress/GroupRoadmapItem.tsx @@ -66,7 +66,7 @@ export function GroupRoadmapItem(props: GroupRoadmapItemProps) { ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${ member.member.avatar }` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={member.member.name || ''} className="h-5 w-5 shrink-0 rounded-full" diff --git a/src/components/TeamProgress/MemberProgressItem.tsx b/src/components/TeamProgress/MemberProgressItem.tsx index aea8dc416..5da698ed9 100644 --- a/src/components/TeamProgress/MemberProgressItem.tsx +++ b/src/components/TeamProgress/MemberProgressItem.tsx @@ -45,7 +45,7 @@ export function MemberProgressItem(props: MemberProgressItemProps) { src={ member.avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${member.avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={member.name || ''} className="h-8 min-h-[32px] w-8 min-w-[32px] rounded-full" diff --git a/src/components/TeamSettings/UpdateTeamForm.tsx b/src/components/TeamSettings/UpdateTeamForm.tsx index 859abcca1..bf92571ea 100644 --- a/src/components/TeamSettings/UpdateTeamForm.tsx +++ b/src/components/TeamSettings/UpdateTeamForm.tsx @@ -115,7 +115,7 @@ export function UpdateTeamForm() { avatarUrl={ avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } teamId={teamId!} /> diff --git a/src/components/TeamVersions/TeamVersions.tsx b/src/components/TeamVersions/TeamVersions.tsx index f67ffff59..059364516 100644 --- a/src/components/TeamVersions/TeamVersions.tsx +++ b/src/components/TeamVersions/TeamVersions.tsx @@ -166,7 +166,7 @@ export function TeamVersions(props: TeamVersionsProps) { ? `${ import.meta.env.PUBLIC_AVATAR_BASE_URL }/${selectedAvatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={`${selectedLabel} Avatar`} className="h-5 w-5 rounded-full object-cover" diff --git a/src/components/TeamsList.tsx b/src/components/TeamsList.tsx index 7be66f76d..ca74d83c8 100644 --- a/src/components/TeamsList.tsx +++ b/src/components/TeamsList.tsx @@ -50,7 +50,7 @@ export function TeamsList() { ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${ user?.avatar }` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={user?.name || ''} className="h-6 w-6 rounded-full" @@ -81,7 +81,7 @@ export function TeamsList() { ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${ team.avatar }` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={team.name || ''} className="h-6 w-6 rounded-full" diff --git a/src/components/ThankYou/ThankYouPage.tsx b/src/components/ThankYou/ThankYouPage.tsx index 532316ba6..a05ab783b 100644 --- a/src/components/ThankYou/ThankYouPage.tsx +++ b/src/components/ThankYou/ThankYouPage.tsx @@ -58,7 +58,7 @@ export function ThankYouPage() {

Thank you diff --git a/src/components/UpdateProfile/UpdateProfileForm.tsx b/src/components/UpdateProfile/UpdateProfileForm.tsx index 60066f996..bbf36599c 100644 --- a/src/components/UpdateProfile/UpdateProfileForm.tsx +++ b/src/components/UpdateProfile/UpdateProfileForm.tsx @@ -82,7 +82,7 @@ export function UpdateProfileForm() { avatarUrl={ avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } />
diff --git a/src/components/UpdateProfile/UpdatePublicProfileForm.tsx b/src/components/UpdateProfile/UpdatePublicProfileForm.tsx index 465b15cde..57a8884f6 100644 --- a/src/components/UpdateProfile/UpdatePublicProfileForm.tsx +++ b/src/components/UpdateProfile/UpdatePublicProfileForm.tsx @@ -246,7 +246,7 @@ export function UpdatePublicProfileForm() { avatarUrl={ avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } /> diff --git a/src/components/UserPersona/ChatPersona.tsx b/src/components/UserPersona/ChatPersona.tsx index 87bdda3d9..03cae6a8f 100644 --- a/src/components/UserPersona/ChatPersona.tsx +++ b/src/components/UserPersona/ChatPersona.tsx @@ -47,7 +47,7 @@ export function ChatPersona(props: ChatPersonaProps) {
Wave diff --git a/src/components/UserPublicProfile/UserPublicProfileHeader.tsx b/src/components/UserPublicProfile/UserPublicProfileHeader.tsx index a492eeb88..49b27dd38 100644 --- a/src/components/UserPublicProfile/UserPublicProfileHeader.tsx +++ b/src/components/UserPublicProfile/UserPublicProfileHeader.tsx @@ -26,7 +26,7 @@ export function UserPublicProfileHeader(props: UserPublicProfileHeaderProps) { src={ avatar ? `${import.meta.env.PUBLIC_AVATAR_BASE_URL}/${avatar}` - : '/images/default-avatar.png' + : '/img/default-avatar.png' } alt={name} className="h-32 w-32 rounded-full object-cover" diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 0d6ee1b67..137526680 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -50,7 +50,7 @@ const { bodyClassName, briefTitle, description = siteConfig.description, - ogImageUrl = 'https://roadmap.sh/images/og-img.png', + ogImageUrl = 'https://roadmap.sh/img/og-img.png', keywords = siteConfig.keywords, noIndex = false, permalink = '', @@ -105,7 +105,7 @@ const gaPageIdentifier = Astro.url.pathname diff --git a/src/lib/jsonld-schema.ts b/src/lib/jsonld-schema.ts index bce143910..a3f8ca1fa 100644 --- a/src/lib/jsonld-schema.ts +++ b/src/lib/jsonld-schema.ts @@ -33,7 +33,7 @@ export function generateArticleSchema(article: ArticleSchemaProps) { name: 'roadmap.sh', logo: { '@type': 'ImageObject', - url: 'https://roadmap.sh/images/brand-square.png', + url: 'https://roadmap.sh/img/brand-square.png', }, }, datePublished: datePublished, diff --git a/src/lib/open-graph.ts b/src/lib/open-graph.ts index 8008cb10b..b4debfe7a 100644 --- a/src/lib/open-graph.ts +++ b/src/lib/open-graph.ts @@ -8,7 +8,7 @@ export function getOpenGraphImageUrl(params: RoadmapOpenGraphQuery) { } export async function getDefaultOpenGraphImageBuffer() { - const defaultImageUrl = `${import.meta.env.DEV ? 'http://localhost:3000' : 'https://roadmap.sh'}/images/og-img.png`; + const defaultImageUrl = `${import.meta.env.DEV ? 'http://localhost:3000' : 'https://roadmap.sh'}/img/og-img.png`; return fetch(defaultImageUrl).then((response) => response.arrayBuffer()); } diff --git a/src/pages/projects/[projectId]/index.astro b/src/pages/projects/[projectId]/index.astro index 3c28a5763..4fe963e04 100644 --- a/src/pages/projects/[projectId]/index.astro +++ b/src/pages/projects/[projectId]/index.astro @@ -34,7 +34,7 @@ const projectData = project.frontmatter as ProjectFrontmatter; let jsonLdSchema: any[] = []; -const ogImageUrl = projectData?.seo?.ogImageUrl || '/images/og-img.png'; +const ogImageUrl = projectData?.seo?.ogImageUrl || '/img/og-img.png'; const githubUrl = `https://github.com/kamranahmedse/developer-roadmap/tree/master/src/data/projects/${projectId}.md`; const parentRoadmapId = projectData?.roadmapIds?.[0] || ''; diff --git a/src/pages/projects/[projectId]/solutions.astro b/src/pages/projects/[projectId]/solutions.astro index 343ea1cc8..344f4a0a0 100644 --- a/src/pages/projects/[projectId]/solutions.astro +++ b/src/pages/projects/[projectId]/solutions.astro @@ -35,7 +35,7 @@ let jsonLdSchema: any[] = []; const parentRoadmapId = projectData?.roadmapIds?.[0] || ''; -const ogImageUrl = projectData?.seo?.ogImageUrl || '/images/og-img.png'; +const ogImageUrl = projectData?.seo?.ogImageUrl || '/img/og-img.png'; const githubUrl = `https://github.com/kamranahmedse/developer-roadmap/tree/master/src/data/projects/${projectId}.md`; ---