MyCodingChallenges

Simple Landing Page - Day 1 Challenge πŸš€ This project is a basic landing page with a header (logo + navigation) and a hero section (headline + call-to-action button). It is designed to be responsive and mobile-friendly, making it a great starting point for web development practice.

πŸ“Œ Features βœ… Clean and structured HTML5 markup βœ… Styled with CSS3 for modern design βœ… Responsive layout for mobile and desktop screens βœ… Simple and easy-to-understand code βœ… Includes a call-to-action button in the hero section

πŸ“‚ Folder Structure graphql Copy Edit πŸ“¦ landing-page/ ┣ πŸ“‚ css/ ┃ β”— πŸ“„ style.css # Stylesheet for the page
┣ πŸ“‚ images/ # Stores images used in the project
β”— πŸ“„ index.html # Main HTML file

πŸ“– How to Use Clone this repository: bash Copy Edit git clone https://github.com/your-username/landing-page.git Open index.html in a browser. live demo: https://chathurahasanga.github.io/MyCodingChallenges/index.html

image

βœ… Day 2: Contact Form (HTML & CSS) Contact Form (HTML & CSS) πŸ“Œ Overview This is a simple and responsive Contact Form built using HTML & CSS. Currently, it does not have a backend, but it is styled for a clean and modern look. The form includes:

Name (Text Input)

Email (Email Input)

Subject (Text Input)

Message (Textarea)

Submit Button

🎨 Features βœ… Modern and clean design with soft colors βœ… Smooth hover and focus effects βœ… Mobile-friendly using Flexbox/Grid βœ… Responsive design with media queries βœ… Accessibility improvements (good contrast & clear labels)

πŸ“‚ File Structure πŸ“ contact-form │── πŸ“„ index.html # Main HTML file │── πŸ“„ styles.css # CSS file for styling │── πŸ“„ README.md # Project documentation πŸš€ Getting Started Clone the repository:

git clone https://github.com/your-username/contact-form.git Open the index.html file in your browser.

πŸ› οΈ Built With HTML5

CSS3 (Flexbox & Grid for responsiveness)

πŸ“’ Feel free to contribute and improve this project! 🀝 image

βœ… Day 3: Responsive Navigation Bar (Hamburger Menu) This project focuses on creating a responsive navigation bar that adapts to different screen sizes using HTML, CSS, and JavaScript.

πŸ“Œ Features Fixed Navbar: Stays at the top for easy access.

Hamburger Menu: Appears on smaller screens. Click to Close: Closes menu when clicking a link. Active Link Indicator: Highlights the current page.

πŸ› οΈ Technologies Used HTML for structure

CSS for styling and responsiveness

JavaScript for interactivity

πŸ“‚ Project Structure πŸ“ project-folder ┣ πŸ“‚ assets ┃ ┣ πŸ“„ styles.css ┃ ┣ πŸ“„ script.js ┣ πŸ“„ index.html πŸ”¨ Steps to Build 1️⃣ Structure Your Navbar (HTML) Create a header section with:

A logo (text or image)

A nav menu with links (Home, About, Services, Contact)

A hamburger menu button (three-line icon)

2️⃣ Style the Navbar (CSS) Fix the navbar at the top.

Use flexbox to align items.

Hide the menu on small screens and show the hamburger icon.

3️⃣ Add Interactivity (JavaScript) Toggle the menu visibility when clicking the hamburger button. Close the menu when a link is clicked.

🎨 Bonus Enhancements βœ… Highlight the active menu link.

πŸš€ Live Demo image image

πŸ’‘ How to Use Clone the repository:

git clone https://github.com/yourusername/responsive-navbar.git Open index.html in your browser.

πŸ“œ License This project is open-source and free to use.

πŸ“’ Feel free to contribute and improve the project!

Day 4: Pricing Table (CSS Flexbox or Grid) Challenge πŸš€ Challenge Overview Create a modern, responsive Pricing Table using CSS Flexbox or Grid. This helps to improve my layout skills and enhance my understanding of responsive web design.

🎯 Goals Design a clean and structured pricing table

Use Flexbox or CSS Grid for layout

Ensure responsiveness across devices

Implement hover effects and buttons

πŸ“Œ What You’ll Learn CSS Flexbox vs. Grid for layout

Creating visually appealing pricing tables

Improving responsiveness with media queries

Styling buttons, typography, and colors

πŸ› οΈ Tools & Technologies HTML5 CSS3 (Flexbox/Grid)

πŸ“œ Instructions Set up the HTML structure for the pricing table.

Use Flexbox or Grid to create a well-aligned layout.

Style the design with colors, borders, and shadows.

Make it responsive using media queries.

Enhance interactivity with hover effects.

πŸ“· Screenshots image

Demo: https://chathurahasanga.w3spaces.com/Day4/index4.html

πŸš€ How to Run Clone the repository:

git clone https://github.com/yourusername/pricing-table-challenge.git Open index.html in your browser.

#CSS #Flexbox #Grid #FrontendChallenge

βœ… Day 5: Blog Card UI (Title, Image, Description) A sleek and responsive Blog Card UI that showcases blog posts with hover effects. When hovered, hidden content slides up smoothly, displaying more details about the blog post.

πŸš€ Features Beautiful Card Design: Modern UI with smooth animations.

Hover Effects: Hidden content slides up on hover and disappears when the cursor leaves.

Responsive Layout: Works seamlessly across devices.

Animated Scaling: Image enlarges on hover for a dynamic effect.

Interactive Buttons: β€œRead Article” button for better user engagement.

πŸ“Έ Preview image

Demo: https://chathurahasanga.w3spaces.com/Day5/index5.html

πŸ›  Technologies Used HTML for structure

CSS for styling and animations

Font Awesome for icons

πŸ— How to Use Clone this repository:

git clone https://github.com/yourusername/blog-card-ui.git Navigate to the project directory:

cd blog-card-ui Open index.html in your browser.

⭐ If you like this project, consider giving it a star on GitHub!

βœ… Day 6: Testimonial Slider

Testimonial Slider with Background Video

This project demonstrates a testimonial slider with a background video using HTML, CSS, and JavaScript.

Features

Demo

Preview image

Installation

  1. Clone the repository:
git clone https://github.com/your-username/testimonial-slider.git

βœ… Day 7: Footer with Social Media Icons

This project demonstrates a responsive footer with Font Awesome icons, useful links, and a subscription form.

Features

Preview

image

Installation

  1. Clone the repository:
git clone https://github.com/your-username/day7-footer.git

βœ… Day 8: FAQ Section (Expandable with CSS)

This project demonstrates a responsive FAQ accordion with toggle functionality. Clicking on a question reveals the answer and toggles the arrow icon between up and down.

Features

Preview

image

Installation

  1. Clone the repository:
git clone https://github.com/your-username/day8-faq-accordion.git

βœ… Day 9: Simple Portfolio Page Welcome to my personal portfolio website! This site showcases my skills, projects, and experience in web development. Feel free to explore and reach out! πŸŽ‰

🌐 Demo

image

πŸ“Œ Features

πŸ› οΈ Tech Stack

Day 10: Personal Bio Website

This is a personal portfolio website designed to showcase the skills, projects, and contact information of Chathura Hasanga, a software engineering undergraduate. The website is built using HTML, CSS with additional libraries like Font Awesome and Boxicons for icons.

Features

Demo

image

Day 11: Form Validation with JavaScript

This project demonstrates a simple form validation using JavaScript. The form includes fields for first name, last name, username, email, password, phone number, and date of birth. Validation is performed on each field to ensure proper input before submission.

Features

Demo

image

Day 12: Lightbox Image Gallery

This project demonstrates a responsive image gallery with a lightbox effect. Users can click on images to view them in a modal with navigation controls to move between images.

Features

Demo

image

image

Day 13: To-Do List with Local Storage

This project is a simple To-Do List application that allows users to add, mark as completed, and delete tasks. The application uses Local Storage to persist tasks even after the page is refreshed.

Features

Demo

image

Day 14: JS Calculator

A simple calculator web app built with HTML, CSS, and JavaScript. This calculator supports basic arithmetic operations and provides a clean, responsive interface.

Features

Demo

image

Day 15: Weather App

A simple weather application that allows users to search for the current weather in any city using the OpenWeatherMap API. The app displays the city name, temperature, and weather description with a visually appealing background.

Features

Demo

image

Day 16: Simple Login Page

A basic login page built with HTML, CSS, and JavaScript. This project demonstrates a simple user authentication interface with username and password validation.

Features

Demo

image

Day 17: User Registration Form with JavaScript Validation

A comprehensive registration form with client-side validation using JavaScript. This project demonstrates various form input types and validation techniques for user registration.

Features

Demo

image

Day 18: Contact Form with PHP Backend (Form Submission)

A secure and responsive contact form built with PHP, featuring form validation, spam protection, and email functionality.

πŸš€ Features

πŸ“‹ Form Fields

πŸ›‘οΈ Security Features

Form Validation

Spam Protection

Security Headers

🎨 Styling Features

Demo

image