From e63a3126ae763f9068c8bf123777a4fb99aa24fe Mon Sep 17 00:00:00 2001 From: Radiquum Date: Wed, 23 Jul 2025 11:52:12 +0500 Subject: [PATCH] feat: add tablet styles (768-1023px) --- app/Section/Characters.tsx | 37 ++++++++++++++++++++++++++++--- app/Section/Contacts.tsx | 4 ++-- app/Section/Intro.tsx | 16 ++++++++----- app/Section/Photos.tsx | 4 ++-- app/Section/Projects.tsx | 4 ++-- app/Section/Socials.tsx | 4 ++-- app/components/CharacterImage.tsx | 4 ++-- app/components/Section.tsx | 2 +- app/globals.css | 10 ++++++++- app/page.tsx | 6 ++--- 10 files changed, 67 insertions(+), 24 deletions(-) diff --git a/app/Section/Characters.tsx b/app/Section/Characters.tsx index 2d43dca..5a2772a 100644 --- a/app/Section/Characters.tsx +++ b/app/Section/Characters.tsx @@ -21,8 +21,8 @@ const links = [ export const Characters = () => { return (
-
-

Characters

+
+

Characters

{links.map((item) => ( @@ -35,7 +35,7 @@ export const Characters = () => { ))}
-
+
{ image="/images/protogen.png" />
+
+
+ +
+

Kentai

+

Red Panda

+

Male

+
+ +
+
+
+ +
+

Protogen

+

Male

+
+
+
); }; diff --git a/app/Section/Contacts.tsx b/app/Section/Contacts.tsx index 1ce4f3c..384988c 100644 --- a/app/Section/Contacts.tsx +++ b/app/Section/Contacts.tsx @@ -32,8 +32,8 @@ const links = [ export const Contacts = () => { return (
-

Contacts

-
+

Contacts

+
{links.map((item) => { if (item.url) { return ( diff --git a/app/Section/Intro.tsx b/app/Section/Intro.tsx index 0ee7e25..ac04c44 100644 --- a/app/Section/Intro.tsx +++ b/app/Section/Intro.tsx @@ -2,15 +2,19 @@ export const Intro = () => { return (
-

+

Radiquum

-
-
-

Photographer

-

Developer

-

+

+
+

+ Photographer +

+

+ Developer +

+

Self-Hosting admirer

diff --git a/app/Section/Photos.tsx b/app/Section/Photos.tsx index 0d3bd55..c38bfa0 100644 --- a/app/Section/Photos.tsx +++ b/app/Section/Photos.tsx @@ -40,8 +40,8 @@ export const Photos = () => { return (
-
-

Photos

+
+

Photos

{links.map((item) => ( diff --git a/app/Section/Projects.tsx b/app/Section/Projects.tsx index 91886a2..16ba9f7 100644 --- a/app/Section/Projects.tsx +++ b/app/Section/Projects.tsx @@ -50,8 +50,8 @@ const links = [ export const Projects = () => { return (
-

Projects

-
+

Projects

+
{links.map((item) => ( diff --git a/app/Section/Socials.tsx b/app/Section/Socials.tsx index 55fb62d..696fa0f 100644 --- a/app/Section/Socials.tsx +++ b/app/Section/Socials.tsx @@ -50,8 +50,8 @@ const links = [ export const Socials = () => { return (
-

Socials

-
+

Socials

+
{links.map((item) => ( diff --git a/app/components/CharacterImage.tsx b/app/components/CharacterImage.tsx index a01d403..a4f124c 100644 --- a/app/components/CharacterImage.tsx +++ b/app/components/CharacterImage.tsx @@ -14,8 +14,8 @@ export const CharacterImage = ({ }: CharacterImageProps) => { return (
- -
+ +

{name}

diff --git a/app/components/Section.tsx b/app/components/Section.tsx index d0779f9..d7671d6 100644 --- a/app/components/Section.tsx +++ b/app/components/Section.tsx @@ -2,7 +2,7 @@ export const Section = ({ children, }: Readonly<{ children: React.ReactNode }>) => { return ( -

+
{children}
); diff --git a/app/globals.css b/app/globals.css index db00065..184727a 100644 --- a/app/globals.css +++ b/app/globals.css @@ -41,7 +41,7 @@ body { /* embla styles */ .embla { - max-width: 48rem; + max-width: 100%; margin: auto; --slide-height: 144px; --slide-spacing: 8px; @@ -87,3 +87,11 @@ body { -o-object-fit: cover; object-fit: cover; } + +@media (min-width: 768px) { + .embla { + --slide-height: 288px; + --slide-spacing: 16px; + --slide-size: 512px; + } +} diff --git a/app/page.tsx b/app/page.tsx index 5466d1f..02ba0e3 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,14 +7,14 @@ import { Socials } from "./Section/Socials"; export default function Home() { return ( -
-
+
+
-
+