From fbe00450bf0aeb501f73d3286f326dbc3710c79b Mon Sep 17 00:00:00 2001 From: bilel0509 Date: Mon, 5 Aug 2024 08:58:44 +0100 Subject: [PATCH] -changed card image height from 20 to 30 for more visibility -changed the width of the parent div of the iframe from 350 to full and removed the height and width of iframe to fix the overflow problem -added additional breakpoint in tailwind.config.ts -centered the SubStackCustom.tsx -change the width of the card at people section for sm breakpoint from 1/4 to 1/8 -replaced the padding and height of main at page.tsx with margin -added breakpoints for text size to main in page.tsx -added a breakpoint for space-between in navbar --- src/app/page.tsx | 4 ++-- src/components/Card.tsx | 2 +- src/components/LessonSection.tsx | 7 +++---- src/components/PeopleSection.tsx | 2 +- src/components/SubstackCustom.tsx | 4 ++-- src/components/navbar/Navbar.tsx | 2 +- tailwind.config.ts | 10 ++++++++++ 7 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 5787dac..0d3deab 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,8 +11,8 @@ import LessonSection from "@/components/LessonSection"; export default function Home() { return ( -
-
+
+
Rust Logo = ({ item, key }) => { alt={item.name ?? item.title ?? ""} width={75} height={75} - className="rounded-md min-w-20 h-20 p-2 object-contain" + className="rounded-md min-w-20 h-30 p-2 object-contain" />

diff --git a/src/components/LessonSection.tsx b/src/components/LessonSection.tsx index 0916532..f560b98 100644 --- a/src/components/LessonSection.tsx +++ b/src/components/LessonSection.tsx @@ -19,15 +19,14 @@ export default function LessonSection() { className="dark:bg-gray-900 bg-gray-200 p-6 rounded-lg shadow-lg transition duration-300 hover:shadow-xl hover:scale-105" >
-
+

diff --git a/src/components/PeopleSection.tsx b/src/components/PeopleSection.tsx index f6bcefb..0760cf2 100644 --- a/src/components/PeopleSection.tsx +++ b/src/components/PeopleSection.tsx @@ -17,7 +17,7 @@ export default function PeopleSection() { {people.slice(0, 3).map((p, index) => (
-
+
{ return ( -
    +
      {menuItems.map((item, index) => ( {item.items} diff --git a/tailwind.config.ts b/tailwind.config.ts index 58d9860..6d108df 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -10,6 +10,16 @@ module.exports = { fontFamily: { sans: ["Roboto", "Inter", "ui-sans-serif", "system-ui"], }, + + screens: { + 'extra-small':'320px', + // => @media (min-width: 320px) { ... } + 'small':'420px', + // => @media (min-width: 420px) { ... } + 'small-medium':'640px', + // => @media (min-width: 640px) { ... } + + }, }, }, plugins: [],