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

Added an additional button #14

Open
wants to merge 2 commits into
base: master
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
2 changes: 1 addition & 1 deletion Contact manager app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<i class="far fa-image"></i>
<input type="url" required id="imgurl" placeholder="Enter image url" />
</div>
<button type="submit" class="submitbtn"></button>
<button type="submit" class="submitbtn">Submit</button>
</form>
</div>
</main>
Expand Down
17 changes: 16 additions & 1 deletion Contact manager app/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ form {
margin-top: 15%;
margin-left: 7%;
position: fixed;
display: flex;
flex-direction: column;
}

.name,
Expand Down Expand Up @@ -146,5 +148,18 @@ input[type="tel"] {
}

.submitbtn {
display: none;
padding: 12px 24px;
margin-right: 50%;
margin-left: 25%;
font-size: 1rem;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.submitbtn:hover {
background-color: #0056b3;
}
8 changes: 5 additions & 3 deletions Todo-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@
<div class="container">
<ul class="todo-list js-todo-list"></ul>
<div class="empty-state">
<!-- <h1 class="app-title">My Todo</h1> -->
<h1 class="app-title">My Todo</h1>
<i class="fas fa-tasks icon"></i>
<p class="empty-state__description">
Type in the below field 👇 and press enter to add your todo in the list
Press enter to add your todo in the list
</p>
</div>
<form class="formselect">
<input autofocus type="text" class="inputselect" placeholder="Eg: Workout">
</form>
<input autofocus type="text" class="inputselect" placeholder="Enter the activities you want to do (Eg. Workout)">
<button type="submit" class="btn">Add</button>
</form>
</div>

<script src="https://kit.fontawesome.com/dd8c49730d.js" crossorigin="anonymous"></script>
Expand Down
8 changes: 0 additions & 8 deletions Todo-app/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ function renderTodo(todo) {
} else {
list.append(newlist);
}

/* // disabled this after fixing a selection bug
list.append(newlist); */
}

// function for adding a todo
Expand All @@ -58,11 +55,6 @@ function myFunction(x) {
demoarray.push(todoobject);

renderTodo(todoobject);
console.log(demoarray);

/* disabled this because updated it show in list */
/* // print demoarray in console
console.log(demoarray); */
}

function toggleDone(b) {
Expand Down
33 changes: 32 additions & 1 deletion Todo-app/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,16 @@ color: var(--color);

.container {
width: 100%;
max-width: 700px;
max-width: 800px;
margin: 0 auto;
padding-left: 10px;
padding-right: 10px;
color: var(--color);
margin: auto;
padding-top: 4rem;
display: flex;
flex-direction: column;
justify-content: center;
}

.app-title {
Expand Down Expand Up @@ -228,6 +231,7 @@ margin-bottom: 20px;
.empty-state__title,
.empty-state__description {
/* margin-bottom: 20px; */
flex-shrink: 0;
font-size: 25px;
text-align: center;
margin: 2rem;
Expand Down Expand Up @@ -264,3 +268,30 @@ em {
display: none;
}
}


.btn {
position: relative;
margin-left: 10px;
margin-top: 0.3rem;
padding: 10px 30px;
font-size: 1.2rem;
background-color: #007bff;
color: #fff;
border: 2px solid #007bff;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s ease;
}

form {
display: flex;
align-items: flex-end;
}

input[type="text"] {

padding: 10px;
border-radius: 4px;
border: 3px solid #333;
}