commit 05561fb5cbd88a45347dc72bfedc75beabb98daf Author: kudindmitriy Date: Thu Feb 5 16:11:22 2026 +0200 Initial commit diff --git a/.env b/.env new file mode 100644 index 0000000..2a8dc67 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +NEXT_PUBLIC_API_URL=undefined +NEXT_PUBLIC_PROJECT_ID=569680d2-4442-484c-b112-3a709c84e2a4 \ No newline at end of file diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..d372c5f --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,57 @@ +name: Code Check + +on: + workflow_dispatch: + inputs: + branch: + description: 'Branch to check' + required: true + default: 'main' + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Checkout branch + uses: actions/checkout@v3 + with: + ref: ${{ gitea.event.inputs.branch }} + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 24 + + - name: Install dependencies + run: | + set -euo pipefail + npm ci --prefer-offline --no-audit 2>&1 | tee install.log + env: + NODE_OPTIONS: '--max-old-space-size=4096' + + - name: TypeScript check + run: | + set -euo pipefail + npm run typecheck 2>&1 | tee build.log + + - name: ESLint check + run: | + set -euo pipefail + npm run lint 2>&1 | tee build.log + + - name: Upload build log on failure + if: failure() + uses: actions/upload-artifact@v3 + with: + name: build-log + path: build.log + if-no-files-found: ignore + + - name: Check completed + if: success() + run: echo "Typecheck and lint passed successfully" diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx new file mode 100644 index 0000000..40c4f91 --- /dev/null +++ b/src/app/blog/page.tsx @@ -0,0 +1,97 @@ +"use client"; + +import ReactLenis from "lenis/react"; +import BlogCardOne from "@/components/sections/blog/BlogCardOne"; +import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis"; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered"; +import { useBlogPosts } from "@/hooks/useBlogPosts"; + +export default function BlogPage() { + const { posts, isLoading } = useBlogPosts(); + + return ( + + +
+ + + {isLoading ? ( +
+

Loading posts...

+
+ ) : ( + + )} + + +
+
+
+ ); +} \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css new file mode 100644 index 0000000..f624db2 --- /dev/null +++ b/src/app/globals.css @@ -0,0 +1,5 @@ +@import "tailwindcss"; +@import "./styles/variables.css"; +@import "./styles/theme.css"; +@import "./styles/utilities.css"; +@import "./styles/base.css"; diff --git a/src/app/layout.tsx b/src/app/layout.tsx new file mode 100644 index 0000000..3351524 --- /dev/null +++ b/src/app/layout.tsx @@ -0,0 +1,1269 @@ +import type { Metadata } from "next"; +import { IBM_Plex_Sans } from "next/font/google"; +import "./globals.css"; +import { ServiceWrapper } from "@/components/ServiceWrapper"; +import Tag from "@/tag/Tag"; + +const ibmPlexSans = IBM_Plex_Sans({ + variable: "--font-ibm-plex-sans", subsets: ["latin"], + weight: ["100", "200", "300", "400", "500", "600", "700"], +}); + +export const metadata: Metadata = { + title: "iPhone Store - Official iPhone Sales & Support", description: "Shop the latest iPhone models with premium features, stunning design, and incredible performance. Find the perfect iPhone for you with flexible pricing and support.", keywords: "iPhone, Apple iPhone, smartphone, latest iPhone model, buy iPhone online", metadataBase: new URL("https://iphone-store.example.com"), + alternates: { + canonical: "https://iphone-store.example.com" + }, + openGraph: { + title: "iPhone Store - Premium Smartphones", description: "Discover the latest iPhone technology. Shop now for premium design, advanced features, and exceptional performance.", url: "https://iphone-store.example.com", siteName: "iPhone Store", images: [ + { + url: "https://img.b2bpic.net/free-photo/smartphone-bokeh-background_23-2147983809.jpg", alt: "Latest iPhone models showcase" + } + ], + type: "website" + }, + twitter: { + card: "summary_large_image", title: "iPhone Store - Shop Latest iPhones", description: "Experience innovation with the latest iPhone models. Premium design, cutting-edge technology.", images: ["https://img.b2bpic.net/free-photo/proud-joyful-charming-cheerful-blond-european-woman-stylish-silver-shiny-dress-hold-hand-waist-co_1258-134478.jpg"] + }, + robots: { + index: true, + follow: true + } +}; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( + + + + + {children} + +