CCS370 Lab Manual
CCS370 Lab Manual
<main>
<section class="content">
<h2>Latest Posts</h2>
<div class="post">
<h3>Post Title</h3>
<p>Content of the post...</p>
</div>
<!-- More posts go here -->
</section>
<aside class="sidebar">
<h2>Trending Topics</h2>
<ul>
<li>#topic1</li>
<li>#topic2</li>
<li>#topic3</li>
<!-- More trending topics go here -->
</ul>
</aside>
</main>
<footer>
<p>© 2024 Societal App. All rights reserved.</p>
</footer>
</body>
</html>
CSS (styles.css):
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px 20px;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 20px;
}
.content {
flex: 70%;
}
.sidebar {
flex: 30%;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
main {
flex-direction: column;
}
.sidebar {
order: -1; /* Move sidebar to the top on small screens */
margin-top: 20px;
}
}
Output:
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container">
<div class="modal-content">
<span class="close">×</span>
</div>
</div>
<select>
</select>
</div>
<script src="script.js"></script>
</body>
</html>
CSS (styles.css):
.container {
max-width: 600px;
padding: 20px;
text-align: center;
}
button {
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
input[type="text"], select {
margin: 10px 0;
padding: 8px;
width: 100%;
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
.modal-content {
background-color: #fefefe;
padding: 20px;
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
avaScript (script.js):
document.addEventListener('DOMContentLoaded', function() {
btnToggleModal.addEventListener('click', function() {
modal.style.display = 'block';
});
spanClose.addEventListener('click', function() {
modal.style.display = 'none';
});
window.addEventListener('click', function(event) {
if (event.target == modal) {
modal.style.display = 'none';
});
});
Output:
<main>
<section>
<h2>Section 1</h2>
<p>This is the content of section 1.</p>
</section>
<section>
<h2>Section 2</h2>
<p>This is the content of section 2.</p>
</section>
</main>
<footer>
<p>© 2024 My App. All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>
CSS (styles.css):
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
padding: 20px;
}
section {
margin-bottom: 20px;
}
footer {
background-color: #333;
color: #fff;
padding: 10px 20px;
text-align: center;
}
OUTPUT:
4.Developing Wireflow diagram for application using open source software
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 10px;
padding: 10px;
background-color: #f9f9f9;
border-radius: 6px;
}
li:hover {
background-color: #eaeaea;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h1>Explore Open Source Collaborative Interface Platforms</h1>
<ul id="platformList">
<!-- Platforms will be added dynamically using JavaScript -->
</ul>
</div>
<script>
// Example data of open source collaborative interface platforms
const platforms = [
{ name: "GitHub", url: "https://github.com" },
{ name: "GitLab", url: "https://gitlab.com" },
{ name: "Bitbucket", url: "https://bitbucket.org" },
// Add more platforms as needed
];
platforms.forEach(platform => {
const listItem = document.createElement('li');
listItem.textContent = platform.name;
listItem.addEventListener('click', () => window.open(platform.url,
'_blank'));
platformList.appendChild(listItem);
});
}
</body>
</html>
6.Hands on Design Thinking Process for a new product
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Design Thinking Process for a New Product</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
text-align: center;
}
.step {
margin-bottom: 20px;
padding: 20px;
background-color: #f9f9f9;
border-radius: 6px;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="container">
<h1>Design Thinking Process for a New Product</h1>
<script>
let currentStep = 1;
function nextStep() {
document.getElementById(`step$
{currentStep}`).classList.add('hidden');
currentStep++;
if (currentStep <= 5) {
document.getElementById(`step$
{currentStep}`).classList.remove('hidden');
}
}
function restart() {
document.getElementById(`step$
{currentStep}`).classList.add('hidden');
currentStep = 1;
document.getElementById(`step$
{currentStep}`).classList.remove('hidden');
}
</script>
</body>
</html>
7.Brainstorming feature for proposed product
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Brainstorming Feature for Proposed Product</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
text-align: center;
}
form {
text-align: center;
margin-bottom: 20px;
}
input[type="text"] {
width: 70%;
padding: 10px;
margin-bottom: 10px;
border-radius: 4px;
border: 1px solid #ccc;
box-sizing: border-box;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
ul {
list-style-type: none;
padding: 0;
text-align: left;
}
li {
padding: 10px;
background-color: #f9f9f9;
margin-bottom: 10px;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="container">
<h1>Brainstorming Feature for Proposed Product</h1>
<form id="ideaForm">
<input type="text" id="ideaInput" placeholder="Enter your
idea">
<button type="submit">Submit Idea</button>
</form>
<ul id="ideaList">
<!-- Ideas will be added dynamically using JavaScript -->
</ul>
</div>
<script>
// Function to add idea to the list
function addIdea(event) {
event.preventDefault(); // Prevent form submission
const ideaInput = document.getElementById('ideaInput');
const idea = ideaInput.value.trim();
if (idea !== '') {
const ideaList = document.getElementById('ideaList');
const listItem = document.createElement('li');
listItem.textContent = idea;
ideaList.appendChild(listItem);
ideaInput.value = ''; // Clear input field
}
}
</body>
</html>
8. Defining the Look and Feel of the new Project
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Define Look and Feel</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
.option {
margin-bottom: 20px;
}
.option label {
font-weight: bold;
}
.option input[type="color"] {
width: 40px;
height: 40px;
border: none;
border-radius: 50%;
cursor: pointer;
}
.option select {
padding: 5px;
border-radius: 4px;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1>Define Look and Feel</h1>
<div class="option">
<label for="primaryColor">Primary Color:</label>
<input type="color" id="primaryColor" value="#007bff">
</div>
<div class="option">
<label for="secondaryColor">Secondary Color:</label>
<input type="color" id="secondaryColor" value="#6c757d">
</div>
<div class="option">
<label for="fontFamily">Font Family:</label>
<select id="fontFamily">
<option value="Arial">Arial</option>
<option value="Verdana">Verdana</option>
<option value="Helvetica">Helvetica</option>
<!-- Add more font options as needed -->
</select>
</div>
<script>
function applyChanges() {
const primaryColor =
document.getElementById('primaryColor').value;
const secondaryColor =
document.getElementById('secondaryColor').value;
const fontFamily =
document.getElementById('fontFamily').value;
document.body.style.setProperty('--primary-color',
primaryColor);
document.body.style.setProperty('--secondary-color',
secondaryColor);
document.body.style.setProperty('--font-family', fontFamily);
}
</script>
</body>
</html>
9.Create a Sample Pattern Library for that product (Mood board, Fonts, Colors based on UI
principles)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
body {
margin: 0;
padding: 20px;
background-color: #f4f4f4;
.container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
border-radius: 8px;
padding: 20px;
h1 {
text-align: center;
.section {
margin-bottom: 30px;
.section h2 {
margin-bottom: 10px;
.mood-board {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.mood-board img {
width: 30%;
margin-bottom: 10px;
border-radius: 8px;
.fonts {
margin-top: 20px;
.colors {
margin-top: 20px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.color-box {
width: 30%;
height: 100px;
margin-bottom: 10px;
border-radius: 8px;
</style>
</head>
<body>
<div class="container">
<div class="section">
<h2>Mood Board</h2>
<div class="mood-board">
</div>
</div>
<div class="section">
<h2>Fonts</h2>
<div class="fonts">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean in mauris euismod,
suscipit turpis et, vestibulum erat.</p>
</div>
</div>
<div class="section">
<h2>Colors</h2>
<div class="colors">
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Identify Customer Problem</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
form {
margin-top: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1>Identify Customer Problem</h1>
<button type="submit">Submit</button>
</form>
</div>
<script>
function submitProblem(event) {
event.preventDefault();
// Here you can perform further actions like sending the data to a server, etc.
console.log("Problem Title:", problemTitle);
console.log("Problem Description:", problemDescription);
// Optionally, you can display a success message or redirect the user to another
page.
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>End-to-End User Research</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
text-align: center;
}
form {
margin-top: 20px;
display: flex;
flex-direction: column;
}
label {
margin-bottom: 5px;
}
input[type="text"],
textarea {
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
align-self: flex-end;
}
button:hover {
background-color: #0056b3;
}
.persona {
margin-top: 20px;
border: 1px solid #ccc;
border-radius: 4px;
padding: 10px;
}
.persona h2 {
margin-top: 0;
}
</style>
</head>
<body>
<div class="container">
<h1>End-to-End User Research</h1>
<button type="submit">Submit</button>
</form>
<script>
document.getElementById('userResearchForm').addEventList
ener('submit', function(event) {
event.preventDefault();
const researchTopic =
document.getElementById('researchTopic').value;
const researchDetails =
document.getElementById('researchDetails').value;
// Process the research data (e.g., store in database, perform
analysis)
console.log("Research Topic:", researchTopic);
console.log("Research Details:", researchDetails);