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
β 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! π€
β 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
π‘ 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
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
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
This project demonstrates a testimonial slider with a background video using HTML, CSS, and JavaScript.
Preview
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.
git clone https://github.com/your-username/day7-footer.git
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.
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! π
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.
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.
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.
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.
A simple calculator web app built with HTML, CSS, and JavaScript. This calculator supports basic arithmetic operations and provides a clean, responsive interface.
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.
A basic login page built with HTML, CSS, and JavaScript. This project demonstrates a simple user authentication interface with username and password validation.
A comprehensive registration form with client-side validation using JavaScript. This project demonstrates various form input types and validation techniques for user registration.
A secure and responsive contact form built with PHP, featuring form validation, spam protection, and email functionality.
htmlspecialchars()
and trim()