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

Week 7 task #4

Open
wants to merge 6 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
38 changes: 38 additions & 0 deletions calculator app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!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">
<title>Calculator App</title>
</head>
<body>
<div class="main">
<input type="text" id="input">
<div class="first-div">
<button class="item">7</button>
<button class="item">8</button>
<button class="item">9</button>
<button class="item">-</button>
</div>
<div class="second-div">
<button class="item">4</button>
<button class="item">5</button>
<button class="item">6</button>
<button class="item">+</button>
</div>
<div class="third-div">
<button class="item">1</button>
<button class="item">2</button>
<button class="item">3</button>
<button class="item">/</button>
</div>
<div class="last-div">
<button class="item">0</button>
<button class="item">X</button>
<button class="item" id="total">=</button>
<button class="item">.</button>
</div>
</div>
</body>
</html>
9 changes: 9 additions & 0 deletions calculator app/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const input = document.getElementById('input');
const total = document.getElementById('total')
const figure = document.querySelector('.item')
const btn =document.querySelector('button')


btn.addEventListener('click',()=>{
console.log('working')
})
35 changes: 35 additions & 0 deletions calculator app/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
body{
background: darksalmon;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
font-size: 20px;
}
.main{
display: flex;
flex-direction: column;
}
.first-div{
display: flex;
justify-content: center;
}
.second-div{
display: flex;
justify-content: center;
}
.third-div{
display: flex;
justify-content: center;
}
.last-div{
display: flex;
justify-content: center;
}
.item{
background: #fff;
border: 1px solid red;
padding: 3rem;
}
#input{
padding: 3rem;
width: 21%;
margin:0rem auto;
}
268 changes: 268 additions & 0 deletions week 3-4/todo-app/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
*, *::before, *::after {
box-sizing: border-box;
}

body{
margin: 0px;
background:linear-gradient(to right, #232526, #414345);
font-family: 'Open Sans', sans-serif;
box-sizing: inherit;
}
.footer{
text-align: center;
font-size: 20px;
position: relative;
bottom: 0px;
background: rgb(255, 255, 255);
padding: 0.3rem;

}
.inner-div{
margin: 8rem auto;
width: 50%;
padding: 4rem 1rem;
background-color:#000;
border-radius: 10px;
}
.header{
font-family: 'Courgette', cursive;
font-size: 50px;
text-align: center;
margin-top: -2rem;
color: #FFF;
-webkit-animation: glow 1s ease-in-out infinite alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
from {
text-shadow: 0 0 5px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
}
to {
text-shadow: 0 0 10px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
}
}
#input{
padding: .5rem;
width: 70%;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
border-radius: 5px;
outline-color:#e4c2c2 ;
border: 1px solid #fff;
background-color: #fff;
}
#enterBtn{
width: 20%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
margin-left: 1rem;
color: #000;
outline-color:#e4c2c2;
background-color: #fff;
}
#clearTodo{
width: 25%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
margin-left: 0rem;
outline-color:#e4c2c2;
color: #000;
background-color: rgb(46, 38, 38)
}

li{
display: flex;
justify-content: space-between;
background-color: #f3f3f3;
list-style-type: none;
margin-left: -2.3rem;
padding: .5rem;
border:1px dashed #e4c2c2;
border-radius: 5px;
}
.cancel{
text-decoration: line-through;
color : red;
}
/* .cancelTodo{
background-color: red;
} */
@media screen and (max-width:1024px){
#input{
padding: .5rem;
width: 60%;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
border-radius: 5px;
outline-color:#e4c2c2 ;
border: 1px solid #fff;
}
#enterBtn{
width: 20%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
margin-left: 1rem;
outline-color:#e4c2c2;
background-color: #fff;
}
#clearTodo{
width: 30%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
margin-left: 0rem;
outline-color:#e4c2c2;
background-color: rgba(84, 82, 85, 0.5);
}
.inner-div{
background-color:#000;
margin: 10rem auto;
width: 60%;
padding: 5rem 1rem;
border-radius: 10px;
}
.header{
font-size: 40px;
}

}
@media screen and (max-width:768px){
#input{
padding: .5rem;
width: 60%;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
border-radius: 5px;
outline-color:#e4c2c2 ;
border: 1px solid #fff;
}
#enterBtn{
width: 30%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
outline-color:#e4c2c2;
background-color: #fff
}
#clearTodo{
width: 40%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
margin-left: 0rem;
outline-color:#e4c2c2;
background-color: rgba(84, 82, 85, 0.5);
}
.inner-div{
margin: 5rem auto;
width: 60%;
padding: 5rem 1rem;
background-color:#000;
border-radius: 10px;
}
.header{
font-size: 30px;
}
}
@media screen and (max-width:576px){
#input{
padding: .5rem;
width: 70%;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
border-radius: 5px;
outline-color:#e4c2c2 ;
border: 1px solid #fff;
}
#enterBtn{
width: 20%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
outline-color:#e4c2c2;
background-color: #fff
}
#clearTodo{
width: 40%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
margin-left: 0rem;
outline-color:#e4c2c2;
background-color: rgba(84, 82, 85, 0.5);
}
.inner-div{
margin: 5rem auto;
width: 80%;
padding: 5rem 1rem;
background-color:#000;
border-radius: 10px;
}
.header{
font-size: 30px;
}
}
@media screen and (max-width:360px){
#input{
padding: .5rem;
width: 60%;
font-family: 'Open Sans', sans-serif;
font: 20px bold;
border-radius: 5px;
outline-color:#e4c2c2 ;
border: 1px solid #fff;
}
#enterBtn{
width: 25%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
outline-color:#e4c2c2;
background-color: #fff
}
#clearTodo{
width: 40%;
padding: .5rem;
border-radius: 5px;
border: 1px solid #fff;
font-family: 'Open Sans', sans-serif;
font-size: 15px;
margin-left: 0rem;
outline-color:#e4c2c2;
background-color: rgba(84, 82, 85, 0.5);
}
.inner-div{
margin: 5rem auto;
width: 80%;
padding: 5rem 1rem;
background-color:#000;
border-radius: 10px;
}
.header{
font-size: 30px;
}
}

Binary file added week 3-4/todo-app/img/images-2.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 week 3-4/todo-app/img/images-3.jpg
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 week 3-4/todo-app/img/images.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions week 3-4/todo-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Courgette&family=Open+Sans&display=swap" rel="stylesheet"> <link rel="stylesheet" href="css/style.css">
<title>Todo app</title>
</head>
<body>
<div class="inner-div">
<h2 class="header">Things to do</h2>
<input type="text" id="input">
<button id="enterBtn">Enter</button>
<hr>
<ul>

</ul>
<button id="clearTodo">Clear Task</button>
</div>
<footer >
<div class="footer">
<p>Made with ❤ by that_yhemmygirl</p>
</div>
</footer>
<script src="script/script.js"></script>
</body>
</html>
Loading