Skip to content

Add blogs and blog center#85

Merged
UmairJibran merged 10 commits intomasterfrom
add-blogs-and-blog-center
Mar 24, 2025
Merged

Add blogs and blog center#85
UmairJibran merged 10 commits intomasterfrom
add-blogs-and-blog-center

Conversation

@UmairJibran
Copy link
Copy Markdown
Owner

No description provided.

@UmairJibran UmairJibran self-assigned this Mar 24, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
waltzes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 6:40pm
waltzes-di8o ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 6:40pm

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @UmairJibran, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request introduces a blogs section to the landing page, including individual blog post pages and a central blog listing page. It adds content for two blog posts related to resume design and tailoring, along with an author profile. The changes also include necessary dependencies for markdown processing and styling adjustments.

Highlights

  • New Blogs Section: Implements a new section for blogs on the landing page, providing valuable career and resume-related content.
  • Blog Post Pages: Adds individual pages for blog posts, allowing users to read full articles with author information and related content.
  • Content Addition: Includes content for two new blog posts: 'Crafting a Focused Resume: Elevate Your Job Search Success' and 'Modern Resume Design: Trends & Best Practices'.
  • Author Profile: Adds an author profile for Jordan Blake, a career development expert, to provide credibility and context to the blog content.
  • Dependency Updates: Updates package-lock.json to include dependencies like gray-matter, remark, and remark-html for markdown processing.
  • Styling: Adds a markdown-styles.module.css file to style the blog posts.

Changelog

Click here to see the changelog
  • landing-page/_authors/jordan-blake.md
    • Added author profile for Jordan Blake, including name, picture, and bio.
  • landing-page/_blogs/crafting-a-focused-resume-elevate-your-job-search-success.md
    • Created a new blog post about crafting a focused resume, including sections on key components, tailoring strategies, common pitfalls, and formatting best practices.
  • landing-page/_blogs/modern-resume-design-trends.md
    • Created a new blog post about modern resume design trends, covering the evolution of resume design, key layout trends, balancing creativity with functionality, and ATS compliance.
  • landing-page/package-lock.json
    • Updated dependencies to include gray-matter, remark, remark-html, and related packages for markdown processing and HTML conversion.
  • landing-page/package.json
    • Added dependencies gray-matter, remark, and remark-html.
  • landing-page/src/app/blogs/[slug]/page.tsx
    • Implemented dynamic blog post pages using slugs to fetch and display individual blog content.
    • Added metadata generation for blog posts, including title, description, and Open Graph images.
    • Included author information, reading time calculation, and a link to view all posts.
  • landing-page/src/app/blogs/page.tsx
    • Created a central blog listing page to display all blog posts with featured post section.
    • Implemented logic to fetch and display blog post data, including cover images, titles, excerpts, and author information.
  • landing-page/src/components/Footer.tsx
    • Added a link to the blog in the footer.
  • landing-page/src/components/Navbar.tsx
    • Removed the fixed class from the nav element.
  • landing-page/src/lib/api.ts
    • Implemented functions to fetch blog slugs, retrieve blog posts by slug, and retrieve all blog posts.
    • Added logic to fetch author information and include it in the blog post data.
  • landing-page/src/lib/markdownToHtml.ts
    • Created a utility function to convert markdown content to HTML using remark and remark-html.
  • landing-page/src/styles/markdown-styles.module.css
    • Added CSS styles for markdown content to ensure consistent formatting and readability.
  • landing-page/src/types/global.d.ts
    • Added type definitions for IAuthor and IBLog interfaces to provide type safety for blog-related data.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Trivia time!

What is the primary use case for the gray-matter npm package?

Click here for the answer
The `gray-matter` package is primarily used to parse front matter from files, typically Markdown or YAML files. Front matter is metadata that appears at the beginning of a file, enclosed in delimiters like `---`, and provides information about the file's content, such as title, author, and date.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces blogs and a blog center to the landing page, which is a great addition for content marketing and SEO. The code is well-structured and uses Next.js features effectively. However, there are a few areas that could be improved for better maintainability and user experience.

Merge Readiness

The pull request is almost ready for merging. Addressing the comments related to the Navbar, date formatting, and potential API error handling would improve the overall quality. I am unable to directly approve this pull request, and recommend that others review and approve this code before merging. Given the medium severity comment, I recommend that the pull request not be merged until it is addressed.

@UmairJibran UmairJibran merged commit cfc59c8 into master Mar 24, 2025
4 checks passed
@UmairJibran UmairJibran deleted the add-blogs-and-blog-center branch March 24, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant