From 82ace8d14544da4a99989418b5060c2d7692ee20 Mon Sep 17 00:00:00 2001
From: andupetcu <47487320+andupetcu@users.noreply.github.com>
Date: Mon, 22 Sep 2025 08:57:13 +0300
Subject: [PATCH] Migrate all pages from Grid to Box components using flexbox
layout
- Migrated search page to use Box with flexbox for responsive layout
- Updated bible reader controls to use Box instead of Grid
- Converted home page hero, features, and stats sections to flexbox
- Removed Grid imports and replaced with Box components across all pages
- Maintained responsive behavior using sx breakpoints and flex properties
---
app/[locale]/bible/reader.tsx | 26 ++++----
app/[locale]/bookmarks/page.tsx | 25 ++++---
app/[locale]/page.tsx | 37 +++++------
app/[locale]/profile/page.tsx | 13 ++--
app/[locale]/search/page.tsx | 112 +++++++++++++++++---------------
app/[locale]/settings/page.tsx | 17 +++--
6 files changed, 115 insertions(+), 115 deletions(-)
diff --git a/app/[locale]/bible/reader.tsx b/app/[locale]/bible/reader.tsx
index f54a1ce..5df4338 100644
--- a/app/[locale]/bible/reader.tsx
+++ b/app/[locale]/bible/reader.tsx
@@ -596,9 +596,9 @@ export default function BibleReaderNew() {
border: `1px solid ${getThemeStyles().borderColor}`
}}
>
-
- {/* Books Selection */}
-
+
+ {/* Books Selection */>
+
{t('book')}
-
+
{/* Chapter Selection */}
-
+
{t('chapter')}
-
+
- {/* Font Size Controls */}
-
+ {/* Font Size Controls */>
+
A⁺
-
+
- {/* Action Buttons */}
-
+ {/* Action Buttons */>
+
-
+
-
+
)
diff --git a/app/[locale]/bookmarks/page.tsx b/app/[locale]/bookmarks/page.tsx
index 2619de8..4015f44 100644
--- a/app/[locale]/bookmarks/page.tsx
+++ b/app/[locale]/bookmarks/page.tsx
@@ -16,7 +16,6 @@ import {
Button,
Chip,
Divider,
- Grid,
IconButton,
Alert,
CircularProgress,
@@ -222,8 +221,8 @@ export default function BookmarksPage() {
{/* Stats */}
-
-
+
+
@@ -234,8 +233,8 @@ export default function BookmarksPage() {
-
-
+
+
@@ -246,8 +245,8 @@ export default function BookmarksPage() {
-
-
+
+
@@ -258,8 +257,8 @@ export default function BookmarksPage() {
-
-
+
+
@@ -309,9 +308,9 @@ export default function BookmarksPage() {
) : (
-
+
{filteredBookmarks().map((bookmark) => (
-
+
@@ -391,9 +390,9 @@ export default function BookmarksPage() {
-
+
))}
-
+
)}
diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx
index be07589..bf176c4 100644
--- a/app/[locale]/page.tsx
+++ b/app/[locale]/page.tsx
@@ -1,7 +1,6 @@
'use client'
import {
Container,
- Grid,
Card,
CardContent,
Typography,
@@ -70,8 +69,8 @@ export default function Home() {
}}
>
-
-
+
+
{t('hero.title')}
@@ -113,13 +112,13 @@ export default function Home() {
{t('hero.cta.askAI')}
-
-
+
+
-
-
+
+
@@ -137,9 +136,9 @@ export default function Home() {
{t('features.subtitle')}
-
+
{features.map((feature, index) => (
-
+
-
+
))}
-
+
{/* Stats Section */}
-
-
+
+
66
{t('stats.books')}
-
-
+
+
31,000+
{t('stats.verses')}
-
-
+
+
24/7
{t('stats.aiAvailable')}
-
-
+
+
diff --git a/app/[locale]/profile/page.tsx b/app/[locale]/profile/page.tsx
index 4201ed1..e084796 100644
--- a/app/[locale]/profile/page.tsx
+++ b/app/[locale]/profile/page.tsx
@@ -12,7 +12,6 @@ import {
TextField,
Button,
Avatar,
- Grid,
Card,
CardContent,
Divider,
@@ -117,9 +116,9 @@ export default function ProfilePage() {
{/* Profile Information */}
-
+
{/* Personal Information Card */}
-
+
@@ -189,10 +188,10 @@ export default function ProfilePage() {
)}
-
+
{/* Account Details Card */}
-
+
@@ -221,8 +220,8 @@ export default function ProfilePage() {
-
-
+
+
{/* Success/Error Message */}
{message && (
diff --git a/app/[locale]/search/page.tsx b/app/[locale]/search/page.tsx
index b4f4f1c..6933740 100644
--- a/app/[locale]/search/page.tsx
+++ b/app/[locale]/search/page.tsx
@@ -13,7 +13,6 @@ import {
Paper,
Card,
CardContent,
- Grid,
Chip,
List,
ListItem,
@@ -654,52 +653,56 @@ export default function SearchPage() {
{/* Advanced Filters */}
-
-
-
- {t('filters.version')}
-
-
-
+
+ {/* First row of filters */}
+
+
+
+ {t('filters.version')}
+
+
+
-
-
- Sort by
-
-
-
+
+
+ Sort by
+
+
+
-
- setFilters(prev => ({ ...prev, showContext: e.target.checked }))}
- />
- }
- label="Show context"
- />
-
+
+ setFilters(prev => ({ ...prev, showContext: e.target.checked }))}
+ />
+ }
+ label="Show context"
+ />
+
+
-
+ {/* Popular searches */}
+
{t('popular.title')}
@@ -718,9 +721,10 @@ export default function SearchPage() {
/>
))}
-
+
-
+ {/* Book selection */}
+
{t('filters.specificBooks')}
@@ -742,14 +746,14 @@ export default function SearchPage() {
/>
))}
-
-
+
+
-
+
{/* Sidebar */}
-
+
{/* Search History */}
{searchHistory.length > 0 && (
@@ -776,10 +780,10 @@ export default function SearchPage() {
)}
-
+
{/* Main Results */}
-
+
{/* Results Header */}
{(results.length > 0 || loading) && (
@@ -959,8 +963,8 @@ export default function SearchPage() {
)}
-
-
+
+
{/* Scroll to Top */}
{results.length > 5 && (
diff --git a/app/[locale]/settings/page.tsx b/app/[locale]/settings/page.tsx
index 6cf42e5..3cc8f30 100644
--- a/app/[locale]/settings/page.tsx
+++ b/app/[locale]/settings/page.tsx
@@ -15,7 +15,6 @@ import {
MenuItem,
FormControl,
InputLabel,
- Grid,
Card,
CardContent,
Divider,
@@ -79,9 +78,9 @@ export default function SettingsPage() {
-
+
{/* Appearance Settings */}
-
+
@@ -123,10 +122,10 @@ export default function SettingsPage() {
-
+
{/* Language & Notifications */}
-
+
@@ -175,10 +174,10 @@ export default function SettingsPage() {
-
+
{/* Security Settings */}
-
+
@@ -197,8 +196,8 @@ export default function SettingsPage() {
-
-
+
+
{/* Save Button */}