Skip to content

13 design frontend#15

Merged
MicRaj merged 12 commits into
mainfrom
13-design-frontend
Sep 2, 2025
Merged

13 design frontend#15
MicRaj merged 12 commits into
mainfrom
13-design-frontend

Conversation

@MicRaj

@MicRaj MicRaj commented Sep 2, 2025

Copy link
Copy Markdown
Owner

No description provided.

@MicRaj MicRaj requested a review from Copilot September 2, 2025 21:22
@MicRaj MicRaj linked an issue Sep 2, 2025 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a redesigned frontend for the blog application, transitioning from a simple editor-focused interface to a modern, multi-section layout with enhanced navigation and styling. The changes include new routing structure, improved component organization, and updated API endpoints.

  • Replaces the simple post editor interface with a comprehensive home page featuring welcome, projects, and about sections
  • Introduces new routing structure with individual post pages and dedicated editor page
  • Updates API endpoints from localhost URLs to relative paths and adds slug-based post retrieval

Reviewed Changes

Copilot reviewed 12 out of 16 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frontend/svelte.config.js Refactors export structure for better maintainability
frontend/src/routes/posts/[slug]/+page.svelte Adds individual post view page with slug-based routing
frontend/src/routes/post-editor/+page.svelte Creates dedicated post editor page
frontend/src/routes/old/+page.svelte Preserves old design implementation
frontend/src/routes/+page.svelte Implements new home page with animated sections
frontend/src/lib/components/SideBar.svelte Adds navigation sidebar with section tracking
frontend/src/lib/components/PostList.svelte Updates API endpoint to relative path
frontend/src/lib/components/PostGrid.svelte Creates new post grid component for projects section
frontend/src/lib/components/PostEditor.svelte Updates API endpoint to relative path
frontend/src/app.html Adds Google Fonts import for Space Grotesk
frontend/package.json Updates SvelteJS dependencies
backend/app/api/data.py Adds slug-based post retrieval endpoint
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}

.projects-line {
width: calc(100% -2px);

Copilot AI Sep 2, 2025

Copy link

Choose a reason for hiding this comment

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

The CSS calc expression is missing spaces around the operator. It should be calc(100% - 2px) to be valid CSS.

Suggested change
width: calc(100% -2px);
width: calc(100% - 2px);

Copilot uses AI. Check for mistakes.
}

.section-header hr {
width: calc(100% -2px);

Copilot AI Sep 2, 2025

Copy link

Choose a reason for hiding this comment

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

The CSS calc expression is missing spaces around the operator. It should be calc(100% - 2px) to be valid CSS.

Suggested change
width: calc(100% -2px);
width: calc(100% - 2px);

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +117
const blogs1 = [
{
title: 'Macropad',
date: '08/07/2025',
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
image: 'https://via.placeholder.com/100x80?text=Macro'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Macropad',
date: '08/07/2025',
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
image: 'https://via.placeholder.com/100x80?text=Macro'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Macropad',
date: '08/07/2025',
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
image: 'https://via.placeholder.com/100x80?text=Macro'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Macropad',
date: '08/07/2025',
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
image: 'https://via.placeholder.com/100x80?text=Macro'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
},
{
title: 'Self-hosted website',
date: '08/07/2025',
excerpt: 'Learn how I hosted my personal website using open-source tools.',
image: 'https://via.placeholder.com/100x80?text=Cloud'
}
];

Copilot AI Sep 2, 2025

Copy link

Choose a reason for hiding this comment

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

The blogs1 array contains extensive duplicated data with only the 'Macropad' and 'Self-hosted website' entries repeated multiple times. This should be replaced with a more maintainable approach, such as generating the array programmatically or using actual dynamic data.

Copilot uses AI. Check for mistakes.
@MicRaj MicRaj merged commit 00a443c into main Sep 2, 2025
2 checks passed
@MicRaj MicRaj deleted the 13-design-frontend branch September 2, 2025 21:24
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.

Design frontend

2 participants