Skip to content

Commit 9e13ea1

Browse files
Merge branch 'dev' into feature/visual-design
2 parents 8957615 + afc37e2 commit 9e13ea1

2 files changed

Lines changed: 110 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 104 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ export default async function Page({
667667
24. Never install icon libraries — use shared icons.tsx with raw SVG paths
668668
25. Always await params and searchParams in dynamic route pages (Next.js 15)
669669
26. seed scripts go in scripts/ folder and are gitignored — never commit them
670+
27. Mobile-first responsive design always. Use Tailwind breakpoints in this order: base (mobile) → md (tablet 768px) → lg (desktop 1024px). Never design desktop-first and patch mobile after.
670671
671672
---
672673
@@ -884,4 +885,106 @@ export async function GET() {
884885
885886
---
886887
887-
*Last updated: May 2026*
888+
## 21. Responsive Design Rules
889+
890+
### Core principle
891+
**Mobile-first always.** Every component is designed for mobile (375px) first, then enhanced for larger screens using Tailwind breakpoints. Never write desktop styles first and try to patch mobile after.
892+
893+
### Breakpoints
894+
```
895+
base → 0px+ mobile phones (375px target)
896+
sm → 640px+ large phones / small tablets (use sparingly)
897+
md → 768px+ tablets
898+
lg → 1024px+ desktop (most layout changes happen here)
899+
xl → 1280px+ large desktop (use sparingly)
900+
```
901+
902+
### Layout rules per section
903+
904+
**Navbar:**
905+
```
906+
mobile: hamburger menu, logo left, menu button right
907+
lg: full nav links visible, logo left, CTA button right
908+
```
909+
910+
**Hero section:**
911+
```
912+
mobile: single column, text stacked, Kody mascot hidden
913+
lg: two columns — text left (flex-1), Kody right (w-80)
914+
```
915+
916+
**Products section:**
917+
```
918+
mobile: single column, full width cards
919+
lg: max-w-xl cards, left-aligned — do not stretch to full width
920+
```
921+
922+
**Latest Releases & Recognition:**
923+
```
924+
mobile: grid-cols-1 (single column)
925+
md: grid-cols-2
926+
lg: grid-cols-3
927+
gap: gap-6 at all breakpoints
928+
```
929+
930+
**About page — two-column sections:**
931+
```
932+
mobile: stacked — heading above, body below
933+
lg: flex-row — heading left (w-1/3), body right (flex-1)
934+
```
935+
936+
**Team section (home page):**
937+
```
938+
mobile: grid-cols-1
939+
md: grid-cols-3
940+
```
941+
942+
**Team page (/team):**
943+
```
944+
mobile: grid-cols-1
945+
md: grid-cols-2
946+
lg: grid-cols-3
947+
```
948+
949+
**Contact page:**
950+
```
951+
mobile: stacked — info above, form below
952+
lg: two columns — info left (w-1/3), form right (flex-1)
953+
```
954+
955+
**Footer:**
956+
```
957+
mobile: stacked — logo+tagline, then nav columns, then bottom bar
958+
lg: logo+tagline left, nav columns right, bottom bar as row
959+
```
960+
961+
### Typography scaling
962+
```
963+
H1 hero: text-4xl md:text-5xl lg:text-7xl
964+
H2 section: text-2xl md:text-3xl lg:text-[40px]
965+
H3: text-xl md:text-2xl
966+
Body: text-base (16px) — never scale down on mobile
967+
```
968+
969+
### What hides or shows at different breakpoints
970+
```
971+
Kody mascot in Hero: hidden on mobile, block on lg
972+
Full nav links: hidden on mobile, flex on lg
973+
Hamburger menu: flex on mobile, hidden on lg
974+
Two-column layouts: stack on mobile, side-by-side on lg
975+
```
976+
977+
### Testing checklist
978+
Before committing any visual design work, test at these widths:
979+
- 375px — iPhone SE (smallest target)
980+
- 390px — iPhone 14
981+
- 768px — iPad portrait
982+
- 1024px — iPad landscape / small desktop
983+
- 1280px — standard desktop
984+
- 1440px — large desktop
985+
986+
Use browser DevTools responsive mode. Never ship a change that breaks any of these widths.
987+
988+
---
989+
990+
*Last updated: May 2026*

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
Official company website and internal CMS for **CODEDDEVS TECHNOLOGY LTD**.
44

5-
This site presents CODEDDEVS as a product-driven technology company building AI-first software for African markets. The public site is aimed at investors, press, and partners. The admin dashboard is used to manage products, updates, team members, careers, messages, applications, and uploaded media.
5+
- **Live:** codeddevs.com (pending)
6+
- **Framework:** Next.js 15, App Router, TypeScript
7+
- **Runtime:** React 19
8+
- **Tech:** Tailwind, Drizzle ORM, Neon PostgreSQL
9+
- **Audience:** Investors, press, and partners
10+
- This site presents CODEDDEVS as a product-driven technology company building AI-first software for African markets. The public site is aimed at investors, press, and partners. The admin dashboard is used to manage products, updates, team members, careers, messages, applications, and uploaded media.
611

712
- **Live URL:** https://codeddevs.com
813
- **Company:** CODEDDEVS TECHNOLOGY LTD
@@ -245,4 +250,3 @@ NEXTAUTH_URL=https://codeddevs.com
245250

246251
CODEDDEVS TECHNOLOGY LTD
247252
codeddevs.team@gmail.com
248-

0 commit comments

Comments
 (0)