HCI Lab 3 Landing Page
HCI Lab 3 Landing Page
Objective:
The goal of this lab is to guide students in designing and developing a responsive,
visually appealing, and user-friendly landing page using core UX/UI principles. This
includes understanding how to structure content, apply typography, colors, spacing,
and integrate basic animations for better user interaction.
Lab Overview:
Title: Landing Page Design
Duration: 3 Hours
Tools Needed:
o Code editor (e.g., VSCode)
Lab Instructions:
1. Landing Page Layout
Design a basic landing page that contains the following sections:
1. Header with Navigation (Links: Home, Features, About, Contact)
2. Hero Section with a Call to Action (CTA)
3. Features Section (Three or four features with icons and descriptions)
4. Testimonial Section (Use quotes from users or clients)
5. Footer (With links to social media and copyright information)
2. UX/UI Principles
Focus on the following key UX/UI principles:
Clarity: Make sure the content is easy to read and follow.
Visual Hierarchy: Use headings, subheadings, and font sizes to guide the
user’s attention.
Whitespace: Allow breathing space between elements to avoid clutter.
Consistency: Keep the style consistent throughout the page (font choices,
colors, button designs).
Responsive Design: Ensure that the page looks good on different screen
sizes (mobile, tablet, desktop).
Lab Breakdown
Step 1: Set Up the Basic Structure in HTML
1. Create an index.html file and use the following template:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Landing Page</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?
family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
</head>
<body>
</body>
</html>
Step 2: Add Basic Styling in CSS
Create a styles.css file and style the page based on UX/UI best practices.
/* General Styles */
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
background-color: #333;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
color: white;
}
header .logo {
font-size: 24px;
font-weight: bold;
}
nav ul {
list-style: none;
display: flex;
gap: 20px;
}
nav ul li a {
color: white;
text-decoration: none;
}
.hero {
background-color: #f4b41a;
text-align: center;
padding: 100px 20px;
color: white;
}
.hero h1 {
font-size: 48px;
margin-bottom: 20px;
}
.hero p {
font-size: 20px;
margin-bottom: 30px;
}
.cta-button {
padding: 10px 20px;
background-color: #333;
color: white;
text-transform: uppercase;
text-decoration: none;
font-weight: bold;
}
.features {
padding: 50px;
display: flex;
justify-content: space-around;
text-align: center;
}
.feature {
width: 30%;
}
.feature i {
font-size: 48px;
color: #f4b41a;
}
.testimonials {
background-color: #f9f9f9;
padding: 50px;
text-align: center;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
}
.social-icons a {
color: white;
margin: 0 10px;
}
.social-icons a:hover {
color: #f4b41a;
}
Step 3: Add Basic UX/UI Features
Focus on the following design aspects:
Typography: Choose a modern, sans-serif font (e.g., Poppins) for readability.
Color Scheme: Use a simple color palette (dark background with contrasting
button colors).
Call-to-Action (CTA): Place a noticeable CTA button ("Get Started") in the
hero section.
Iconography: Use icons (FontAwesome) to represent each feature.
Testimonials: Include user feedback for social proof.
Footer: Add links to social media icons and create an easy-to-find footer.
Step 4: Responsive Design
Task: Adjust the layout to ensure that the webpage is mobile-friendly.
Use flexbox or grid to manage layouts.
Ensure that the design adapts to smaller screens (use media queries).
Example of a media query for mobile responsiveness:
css
@media (max-width: 768px) {
.features {
flex-direction: column;
align-items: center;
}
.feature {
width: 80%;
margin-bottom: 20px;
}
}
Step 5: Add Animations
Add a subtle hover effect on buttons and icons to make the webpage
interactive and engaging.
Example of a hover effect for the CTA button:
.cta-button:hover {
background-color: #222;
transition: background 0.3s ease;
}
Lab Deliverables:
1. HTML and CSS code of the designed landing page.
2. A brief explanation of the UX/UI principles applied in the design.
3. Screenshot of the responsive version of the page (mobile view).
Assessment Criteria:
1. Visual Design: Proper use of typography, colors, and whitespace.
2. Usability: Easy navigation and clear call-to-actions.
3. Responsive Layout: The webpage should work well on both desktop and
mobile devices.
4. Code Quality: Clean, well-structured HTML and CSS code with appropriate
comments.
This lab will help students understand how to design a landing page by applying
key UX/UI principles while writing the HTML and CSS code. It emphasizes creating
user-friendly designs that are responsive and visually appealing.