AOSSIE-Org / AOSSIE-Org/Resonate-Website

Standardize image usage by replacing <img> with next/image

Abierto
#249 7 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
43
Forks
154
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 🐛 Describe the bug

### Issue Description
**Problem**

The codebase currently uses a mix of the next/image component and standard HTML tags.
For **NextJS's website** - using next/image tags is the standard approach

**Affected files :**

1. app/components/Layout/NavBar/index.jsx
2. app/components/Features/Features.jsx
3. app/components/TechStack/TechStack.jsx
4. app/components/About/About.jsx

**Details**

Hero.jsx uses next/image
Other components still use
Even with unoptimized: true in next.config.js, inconsistent image handling reduces standardization and future maintainability

---------------

### Proposed changes

**Refactor all remaining tags to use the next/image component for :**

**app/components/Layout/NavBar/index.jsx**

- Import Image from next/image.
- Replace tag for the logo with .
- Use the imported object directly or its .src property as required by next/image.

**app/components/Features/Features.jsx**

- Import Image from next/image.
- Replace tags in the features map with .

**app/components/TechStack/TechStack.jsx**

- Import Image from next/image.
- Replace tags for Flutter and Appwrite logos with .

**app/components/About/About.jsx**

- Import Image from next/image.
- Replace tag for the AOSSIE logo with .

------------------
### Benefits :

- Better future optimization and maintainability
- Consistent image handling
- Standardized props (alt, sizes, priority)

-------------------------------

#### Scope

- No UI or layout changes
- Only refactor image components

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.