Skip to content

🌐 Modern website for a hair transplant clinic, built with Next.js, Tailwind CSS, and Next-intl for multilingual support.

Notifications You must be signed in to change notification settings

fernandohiroshi/dr-hair-site

Repository files navigation

DR Hair Transplante Capilar

A modern and responsive web project dedicated to hair transplant procedures and hair loss treatments. Developed with cutting-edge technologies like Next.js, React, and Tailwind CSS, offering an optimized user experience with support for multiple languages.

DR Hair Preview

Notice: This project is licensed under the MIT License. Unauthorized use or duplication of this code is prohibited.

Getting Started

Clone the repository and run the following commands:

git clone https://github.com/yourusername/drhairtransplantecapilar.git
npm install
npm run dev

Table of Contents

  1. Technologies
  2. Project Structure
  3. Internationalization
  4. Deployment
  5. License

Technologies

Core

  • Next.js: React framework for server-rendered applications, offering dynamic routing, pre-rendering, and performance optimization. Documentation
  • React: JavaScript library for building user interfaces with reusable components. Documentation
  • Tailwind CSS: Utility-first CSS framework for rapid UI development with predefined classes. Documentation
  • Next-intl: Library for comprehensive internationalization support. Documentation

UI and Animations

Email and Forms

  • EmailJS: Solution for sending emails directly from client-side JavaScript, without the need for a backend server. Used for contact forms and appointment scheduling. Documentation

Component Libraries

Utilities

Project Structure

project-root/
β”œβ”€β”€ messages/         # Localization and translation files
β”œβ”€β”€ public/           # Static assets
└── src/
    β”œβ”€β”€ app/
    β”‚   β”œβ”€β”€ [locale]/ # Language-specific routes
    β”‚   β”œβ”€β”€ pages/    # Application pages
    β”‚   β”œβ”€β”€ layout.tsx
    β”‚   β”œβ”€β”€ page.tsx
    β”‚   └── globals.css
    β”œβ”€β”€ components/
    β”‚   β”œβ”€β”€ ui/       # Reusable UI components
    β”‚   └── view/     # Page-specific components
    β”œβ”€β”€ i18n/         # Internationalization configuration
    β”œβ”€β”€ lib/          # Utility functions
    └── middleware.ts # Request handlers and language config

Internationalization

The project uses Next-intl to provide a multilingual experience. Translation files are stored in the messages directory, with locale configuration managed through middleware.ts and the [locale] dynamic route structure. This allows content to be served in multiple languages, enhancing the user experience for our international audience.

Deployment

The project is deployed and accessible at:

drhairtransplantecapilar.com.br

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

🌐 Modern website for a hair transplant clinic, built with Next.js, Tailwind CSS, and Next-intl for multilingual support.

Topics

Resources

Stars

Watchers

Forks