Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
blog-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Manivasagam S
blog-app
Commits
e802915f
Commit
e802915f
authored
Jul 16, 2025
by
Manivasagam S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor code
parent
ec1d92be
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
Pagination.jsx
Component/Top-level/Pagination/Pagination.jsx
+0
-1
theme.css
Styles/theme.css
+0
-1
Home.js
app/components/Home.js
+2
-4
No files found.
Component/Top-level/Pagination/Pagination.jsx
View file @
e802915f
...
@@ -11,7 +11,6 @@ export const Pagination = ({ size, currentPage, onChange }) => {
...
@@ -11,7 +11,6 @@ export const Pagination = ({ size, currentPage, onChange }) => {
setIsShow
(
!
isShow
);
setIsShow
(
!
isShow
);
};
};
const
renderPageButtons
=
()
=>
{
const
renderPageButtons
=
()
=>
{
const
pages
=
[];
const
pages
=
[];
...
...
Styles/theme.css
View file @
e802915f
/* styles/theme.css */
:root
{
:root
{
--bg-color
:
#ffffff
;
--bg-color
:
#ffffff
;
--text-color
:
#000000
;
--text-color
:
#000000
;
...
...
app/components/Home.js
View file @
e802915f
...
@@ -12,8 +12,6 @@ export default function Home({ blogs }) {
...
@@ -12,8 +12,6 @@ export default function Home({ blogs }) {
const
handleSearch
=
(
value
)
=>
{
const
handleSearch
=
(
value
)
=>
{
setSearchQuery
(
value
.
toLowerCase
());
setSearchQuery
(
value
.
toLowerCase
());
};
};
// Filter markdown posts by title or author
const
filteredPosts
=
useMemo
(()
=>
{
const
filteredPosts
=
useMemo
(()
=>
{
return
blogs
.
filter
(
return
blogs
.
filter
(
(
post
)
=>
(
post
)
=>
...
@@ -28,13 +26,13 @@ export default function Home({ blogs }) {
...
@@ -28,13 +26,13 @@ export default function Home({ blogs }) {
name
=
"NewsBlog"
name
=
"NewsBlog"
currentTheme
=
{
theme
}
currentTheme
=
{
theme
}
onThemeChange
=
{
toggleTheme
}
onThemeChange
=
{
toggleTheme
}
onSearch
=
{
handleSearch
}
// Passed to <Search /> inside Header
onSearch
=
{
handleSearch
}
/
>
/
>
<
CardList
<
CardList
title
=
"Lifestyle"
title
=
"Lifestyle"
description
=
"Lorem ipsum dolor sit amet elit. Id quaerat amet ipsum sunt et quos dolorum"
description
=
"Lorem ipsum dolor sit amet elit. Id quaerat amet ipsum sunt et quos dolorum"
blogs
=
{
filteredPosts
}
// ✅ Use filtered posts
blogs
=
{
filteredPosts
}
/
>
/
>
<
/
>
<
/
>
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment