A modern, responsive landing page for a smart home product, built entirely using Tailwind CSS. This project served as my initial hands-on experience with the utility-first CSS framework.
- Responsive Design: The layout adapts seamlessly to different screen sizes (mobile, tablet, and desktop) for an optimal user experience.
- Utility-First Styling: All styling is implemented using Tailwind CSS utility classes, demonstrating a utility-first workflow.
- Modern Aesthetic: A bold, two-tone color scheme (Yellow and Dark Green) provides a contemporary and engaging look.
- Interactive Elements: Features prominent calls-to-action (CTAs) and an appealing interactive-style product visualization card.
- Modular Component Structure: The design is broken down into distinct sections (Header, Hero, Features, Partners, Contact/Footer).
| Tool/Technology | Description |
|---|---|
| HTML5 | For the core structure and semantic markup of the page. |
| Tailwind CSS | The primary styling framework. Utilized for rapid UI development and responsive design. |
| CSS (PostCSS) | Used in the build process to handle Tailwind compilation and optimizations. |
| JavaScript (Minimal) | For any minor interactive features or functionality (e.g., potential mobile navigation toggle). |
Follow these instructions to get a copy of the project up and running on your local machine.
You'll need Node.js and npm (or yarn) installed to use the Tailwind CLI/build process.
# Check if Node.js is installed
node -v
# Check if npm is installed
npm -v-
Clone the Repository:
git clone https://github.com/Madhankannan02/SmartHome-TailwindCSS cd homesmart-landing-page -
Install Dependencies:
npm install
-
Run the Web Page: Since this project uses Tailwind CSS, you need to compile the utility classes into a final CSS file.
-
Run in Development Mode (Watch for changes):
npm run dev
This command will watch your HTML/JS files for utility classes and rebuild the
style.cssfile whenever changes are saved.
-
-
Open the Page: Simply open the
index.htmlfile in your web browser.
This project was a significant learning curve, focusing heavily on adopting the Tailwind methodology. Key takeaways include:
- Utility-First Paradigm: Gaining proficiency in building complex components directly from utility classes (e.g., using
flex,grid, and spacing utilities likep-4,m-auto). - Responsive Modifiers: Mastering the use of responsive prefixes like
sm:,md:, andlg:to control layout and styling at different breakpoints. - Configuration & Customization: Understanding how to configure the
tailwind.config.jsfile to define custom colors, fonts, and breakpoints. - Component-Based Thinking: Structuring the HTML/CSS with reusability in mind, even within a utility-first environment.
Distributed under the MIT License.