A responsive Article Preview Card built with React, TypeScript, Vite, and Tailwind CSS. This project is based on a Frontend Mentor challenge and demonstrates modern UI techniques, accessibility, and best practices in React development.
- Responsive design for mobile and desktop
- Interactive share options with smooth transitions
- Accessible markup and keyboard navigation
- Clean, maintainable code structure
- ESLint integration for code quality
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Build for production:
npm run build
-
Preview production build:
npm run preview
├── public/
│ └── vite.svg
├── src/
│ ├── assets/
│ │ ├── images/
│ │ └── style-guide.md
│ ├── components/
│ │ ├── Card.tsx
│ │ └── card/
│ │ └── Footer.tsx
│ ├── constants/
│ │ └── data.ts
│ ├── declarations/
│ │ └── declarations.d.ts
│ ├── App.tsx
│ ├── App.css
│ ├── index.css
│ ├── main.tsx
│ └── vite-env.d.ts
├── index.html
├── package.json
├── tsconfig.json
├── tsconfig.app.json
├── tsconfig.node.json
├── vite.config.ts
└── README.md
- Follows Frontend Mentor Style Guide
- Uses Manrope font family
- WCAG-compliant color palette and font sizes
- ESLint is configured for React and TypeScript.
- See
eslint.config.jsfor details. - Recommended to expand ESLint rules for production (see below).
For production, enable type-aware lint rules and consider adding eslint-plugin-react-x and eslint-plugin-react-dom.
This project is for educational purposes and based on a Frontend Mentor challenge.
Demo:
Feel free to fork, modify, and use this template for your