UIUX Final Lab Manual
UIUX Final Lab Manual
Aim:
Exploring various UI Interaction Patterns Creating a program to explore
various UI interaction patterns involves implementing different patterns in a
sample application. Below is a simple example using HTML, CSS, and
JavaScript to demonstrate some basic interaction patterns. Note that this
example focuses on showcasing the patterns and may require additional styling
and optimization for a production environment.
Program:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UI Interaction Patterns</title>
<style>
/* Add your styles here */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0;
}
.container {
text-align: center;
}
.box {
width: 100px;
height: 100px;
background-color: #3498db;
color: #fff;
display: inline-block;
margin: 10px;
padding: 20px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.box:hover {
background-color: #2980b9;
}
.draggable-box {
width: 100px;
height: 100px;
background-color: #e74c3c;
color: #fff;
display: inline-block;
margin: 10px;
padding: 20px;
cursor: move;
user-select: none;
}
.droppable-area {
width: 250px;
height: 250px;
background-color: #2ecc71;
margin: 10px;
padding: 20px;
display: inline-block;
}
.swipe-container {
width: 300px;
height: 150px;
overflow: hidden;
position: relative;
margin: 10px;
}
.swipe-content {
white-space: nowrap;
transition: transform 0.3s ease;
}
.swipe-item {
display: inline-block;
width: 100px;
height: 100px;
background-color: #f39c12;
color: #fff;
margin: 10px;
padding: 20px;
cursor: pointer;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background: #fff;
padding: 20px;
border-radius: 5px;
}
.tabs {
display: flex;
margin: 10px;
}
.tab {
flex: 1;
padding: 10px;
text-align: center;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 5px;
}
.tab-content {
display: none;
}
.dropdown {
position: relative;
display: inline-block;
margin: 10px;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #fff;
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.toggle-switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: #fff;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196F3;
}
input:checked + .slider:before {
transform: translateX(26px);
}
.stepper {
margin: 10px;
}
.stepper input {
width: 50px;
text-align: center;
margin: 0 5px;
}
.progress-bar {
width: 300px;
height: 20px;
background-color: #ccc;
margin: 10px;
position: relative;
}
.progress-bar-fill {
height: 100%;
background-color: #3498db;
width: 0;
transition: width 0.3s ease;
position: absolute;
}
</style>
</head>
<body>
<div class="container">
<div class="box" onclick="alert('Click/Tap Interaction')">Click/Tap</div>
<div class="draggable-box" draggable="true"
ondragstart="drag(event)">Drag
Me</div>
</div>
<div class="tab-content" id="tab1">
<p>Tab 1 Content</p>
</div>
<div class="tab-content" id="tab2" style="display:non"</div>
Output:
Result:
EX.NO:2 Developing an interface with proper UI Style Guides
DATE:
Aim:
Creating a program with a proper UI style guide involves using HTML,
CSS, and potentially JavaScript to ensure consistency and adherence to design
principles. Below is a simple example that incorporates basic UI style guide
elements. Note that this is a starting point, and you can expand and customize it
based on your specific design requirements.
Program:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UI Style Guide Example</title>
<style>
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
background-color: #f5f5f5;
color: #333;
margin: 0;
padding: 0;
}
/* Header Styles */
header {
background-color: #3498db;
color: #fff;
padding: 10px;
text-align: center;
}
/*
Navigation Styles */
nav {
background-color: #2c3e50;
padding: 10px;
text-align: center;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px;
margin: 0 10px;
display: inline-block;
}
/* Main Content Styles */
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2, h3 {
color: #333;
}
p{
margin-bottom: 20px;
}
/* Button Styles */
.btn {
background-color: #e74c3c;
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 3px;
display: inline-block;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #c0392b;
}
/* Form Styles */
form {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 3px;
}
input[type="submit"] {
background-color: #2ecc71;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 3px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #27ae60;
}
/* Footer Styles */
footer {
background-color: #34495e;
color: #fff;
padding: 10px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1>UI Style Guide Example</h1>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Contact</a>
</nav>
<div class="container">
<h2>Main Content Heading</h2>
<p>This is a simple example of a UI style guide. Feel free to
customize and
expand it based on your project requirements.</p>
<a href="#" class="btn">Call to Action</a>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="password">Password:</label>
Result:
EX.NO:3 Developing Wireflow diagram for application using open-
DATE: source software
Aim:
Creating a wireflow diagram involves combining wireframes and user
flow diagrams to represent the structure and flow of a user interface. In this
example, I'lldemonstrate using the open-source desktop application Pencil
Project for creating a wireflow diagram.
Using Pencil Project:
1. Download and Install Pencil Project:
Visit the Pencil Project GitHub Releases page.
Download the latest version suitable for your operating system
(Windows, macOS, Linux).
Install the application on your computer.
2. Open Pencil Project:
the Pencil Project application.
3. Create a New Document:
Click on "File" and select "New."
Choose the type of document you want (e.g., Desktop or Mobile).
4. Add UI Components
On the left toolbar, select the "Wireframe" category.
Drag and drop UI components onto the canvas to represent screens or
components of your application.
5. Connect Components:
Use connectors or arrows from the toolbar to represent the flow
between different screens or components.
Connect the components to illustrate the user journey.
6. Label Components:
Double-click on components to add labels and provide more
information about each screen or component.
7. Group and Align:
Group related components together to maintain a clean and organized
layout.
Use alignment tools to ensure a consistent structure.
8. Add Annotations:
Utilize the annotation feature to add notes or comments to specific
components, explaining functionality or user interactions.
9. Customize Styles:
Customize the appearance of your wireflow by adjusting colors, fonts,
and other styling options.
10.Save Your Project:
Click on "File" and choose "Save" to save your wireflow project for
future editing.
11.Export as Image or PDF:
Once you're satisfied with your wireflow, you can export it as an
image (PNG, JPEG) or a PDF.
Click on "File" and select "Export Document.
Result:
EX.NO:4 Defining the Look and Feel of the new project
DATE:
Aim:
Defining the look and feel of a new project involves creating a cohesive
and visually appealing identity that aligns with the project's goals and
resonates with the target audience. Here are step-by-step guidelines to
help you in this process:
Project Overview:
Define the purpose and goals of the project. What problem does it
solve, and what are its key objectives?
Gather Inspirations:
Color Palette:
Choose a color scheme that reflects the project's personality.
Consider
the emotions associated with each color.
Typography:
Select fonts that align with the project's tone. Consider readability
and
hierarchy.
Imagery and Iconography:
Plan the navigation structure. Consider user flow and ease of use.
Icons:
Internal Review:
Refine Designs:
Ensure that the changes align with the established visual identity.
8. Document the Style Guide
Handover to Development:
By following these steps, you can systematically define the look and feel
of your new project, ensuring a visually appealing and user-friendly
experience. Regular collaboration and feedback loops with stakeholders
and users are crucial for refining and enhancing the project's visual
identity over time.
Result:
EX.NO:5 Create a sample pattern library for the product(Mood
DATE: board,Fonts,Colors based on UI principles)
Aim:
Create a sample pattern library for a product, including a mood
board, font choices, and a color palette based on UI principles. This
sample is fictional and serves as a starting point for your own product.
1. Mood Board:
Mood Description:
2. Fonts:
Primary Font: Lato
cssCopy code
border-color: #3498db;
Error State:
cssCopy code
border-color: #e74c3c;
Alerts:
Success Alert:
cssCopy code
background-color: #2ecc71; color: #ecf0f1;
Error Alert:
cssCopy code
background-color: #e74c3c; color: #ecf0f1;
Feel free to adapt and customize this sample pattern library based on your
project's
Result: