Projects page header

feat/projects-list
Kamran Ahmed 4 months ago
parent 5a4d1220fe
commit 2cfcbf9a51
  1. 21
      src/pages/[roadmapId]/projects.astro

@ -48,22 +48,31 @@ const ogImageUrl =
resourceId: roadmapId, resourceId: roadmapId,
}); });
const projects = ['a'];
const descriptionNoun = { const descriptionNoun = {
'AI and Data Scientist': 'AI and Data Science', 'AI and Data Scientist': 'AI and Data Science',
'Game Developer': 'Game Development', 'Game Developer': 'Game Development',
'Technical Writer': 'Technical Writing', 'Technical Writer': 'Technical Writing',
'Product Manager': 'Product Management', 'Product Manager': 'Product Management',
}; };
const title = `${roadmapData.briefTitle} Projects`;
const description = `Project ideas to take you from beginner to advanced in ${descriptionNoun[roadmapData.briefTitle] || roadmapData.briefTitle}`;
// `Seeking backend projects to enhance your skills? Explore our top 20 project ideas, from simple apps to complex systems. Start building today!`
const seoTitle = `${roadmapData.briefTitle} Projects`;
const nounTitle =
descriptionNoun[roadmapData.briefTitle] || roadmapData.briefTitle;
const seoDescription = `Seeking ${nounTitle.toLowerCase()} projects to enhance your skills? Explore our top 20 project ideas, from simple apps to complex systems. Start building today!`;
const projects = ['a'];
--- ---
<BaseLayout <BaseLayout
permalink={`/${roadmapId}`} permalink={`/${roadmapId}`}
title={roadmapData?.seo?.title} title={seoTitle}
description={seoDescription}
briefTitle={roadmapData.briefTitle} briefTitle={roadmapData.briefTitle}
ogImageUrl={ogImageUrl} ogImageUrl={ogImageUrl}
description={roadmapData.seo.description}
keywords={roadmapData.seo.keywords} keywords={roadmapData.seo.keywords}
noIndex={true} noIndex={true}
resourceId={roadmapId} resourceId={roadmapId}
@ -71,8 +80,8 @@ const descriptionNoun = {
> >
<div class='bg-gray-50'> <div class='bg-gray-50'>
<RoadmapHeader <RoadmapHeader
title={`${roadmapData.briefTitle} Projects`} title={title}
description={`Project ideas to take you from beginner to advanced in ${descriptionNoun[roadmapData.briefTitle] || roadmapData.briefTitle}`} description={description}
note={roadmapData.note} note={roadmapData.note}
tnsBannerLink={roadmapData.tnsBannerLink} tnsBannerLink={roadmapData.tnsBannerLink}
roadmapId={roadmapId} roadmapId={roadmapId}

Loading…
Cancel
Save