AOSSIE-Org / AOSSIE-Org/Resonate-Website

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

Ouverte
#249 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
43
Forks
154
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### 🐛 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.