Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmoniqa – The soundtrack to your mood #280

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Project Name
# Harmoniqa – The soundtrack to your mood

Replace this readme with your own information about your project.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
The project was to create an interactive Chatbot that manipulates the DOM when the user replies by using functions, conditionals and event listeners.

## The problem

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?
For this project, I approached the problem by first understanding the structure and flow of the chatbot. I planned out the conversation steps and mapped out how the user would interact with the bot, starting with entering their name and progressing through mood and color choices to receive song suggestions.

I have used functions, event listeners and condtionals statements in order to give a tailored, but dynamic experience to the user. I used the switch statements and also a JavaScript object to determine the suggested song names and their Spotify URL.

## View it live

Have you deployed your project somewhere? Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
[https://harmoniqa.netlify.app/](https://harmoniqa.netlify.app/)
Binary file added code/assets/.DS_Store
Binary file not shown.
Binary file added code/assets/bot-avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed code/assets/bot.png
Binary file not shown.
Binary file added code/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/assets/sterion-bold.ttf
Binary file not shown.
Binary file added code/assets/sterion-bold.woff
Binary file not shown.
Binary file added code/assets/sterion-bold.woff2
Binary file not shown.
Binary file added code/assets/user-avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed code/assets/user.png
Binary file not shown.
Binary file added code/favicon.ico
Binary file not shown.
28 changes: 18 additions & 10 deletions code/index.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet" />
<title>Chatbot</title>
rel="stylesheet"
/>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="./assets/favicon.png" />
<title>Harmoniqa – the soundtrack to your mood</title>
</head>

<body>
<h1>Welcome to my chatbot!</h1>
<header>
<h1>Harmoniqa</h1>
<p>The soundtrack to your mood</p>
</header>
<main>
<section class="chat" id="chat"></section>
<div class="input-wrapper" id="input-wrapper">
<section id="chat" class="chat"></section>
<div id="input-wrapper" class="input-wrapper">
<form id="name-form">
<label for="name-input">Name</label>
<input id="name-input" type="text" />
<button class="send-btn" type="submit">
<input
id="name-input"
type="text"
aria-label="Type your response here"
placeholder="Type here..."
/>
<button id="send-button" class="send-button" type="button">
Send
</button>
</form>
Expand All @@ -28,5 +37,4 @@ <h1>Welcome to my chatbot!</h1>

<script src="./script.js"></script>
</body>

</html>
Loading