diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..2a205e5 Binary files /dev/null and b/.DS_Store differ diff --git a/day1/.DS_Store b/day1/.DS_Store new file mode 100644 index 0000000..10b6325 Binary files /dev/null and b/day1/.DS_Store differ diff --git a/day1/ammu/index.html b/day1/ammu/index.html new file mode 100644 index 0000000..909d25d --- /dev/null +++ b/day1/ammu/index.html @@ -0,0 +1,22 @@ + + + + + + Zerodha login + + + + +
+ + + +

Login to Kite

+ + + + +
+ + \ No newline at end of file diff --git a/day1/ammu/kite-logo.svg b/day1/ammu/kite-logo.svg new file mode 100644 index 0000000..7d2d7e0 --- /dev/null +++ b/day1/ammu/kite-logo.svg @@ -0,0 +1 @@ +Kite logo trimmed \ No newline at end of file diff --git a/day1/ammu/style.css b/day1/ammu/style.css new file mode 100644 index 0000000..0f877a4 --- /dev/null +++ b/day1/ammu/style.css @@ -0,0 +1,64 @@ +body{ + margin:0; + padding:0; + background: rgb(255, 255, 255); + + height:100vh; + + display:flex; + justify-content:center; + align-items:center; +} + + +.login-box{ + width:320px; + background: white; + padding:40px; + + border-radius:9px; + box-shadow: 0 4px 10px rgba(0,0,0,0.1); + + text-align:center; + + + } +.logo{ + + width:60px; + + margin-bottom:20px; + +} +h2{ + margin-bottom:25px; + color:#333; +} + +input{ + width:100; + padding:12px; + margin-bottom:15px; + border:1px solid #ddd; + border-radius:4px; + font-size:16px; + box-sizing:border-box; + +} + +button{ + width: 100%; + padding: 12px; + background: orangered; + color: white; + border:none; + border-radius:4px; + font-size:16px; + cursor:pointer; +} + +button:hover{ + background: green; + +} + diff --git a/day3/.DS_Store b/day3/.DS_Store new file mode 100644 index 0000000..635c990 Binary files /dev/null and b/day3/.DS_Store differ diff --git a/day3/assignment/assignment-amaan.js b/day3/assignment/assignment-amaan.js new file mode 100644 index 0000000..c19ccb9 --- /dev/null +++ b/day3/assignment/assignment-amaan.js @@ -0,0 +1,46 @@ +import fs from "fs"; + +// promisified version of readFile +function readFilePromisified(filePath){ + return new Promise((resolve,reject) => { + fs.readFile(filePath,"utf-8",(err,data) => { + if(err){ + reject("Error: " + err); + }else{ + resolve(data); + } + }); + }); +} + +// promisified version of setTimeout +function setTimeoutPromisified(ms){ + return new Promise((resolve) => { + setTimeout(resolve,ms); + }); +} + +// async function for fetch +async function getData(url){ + const response = await fetch(url); + // converting to json + const data = await response.json(); + console.log(data); +} + +// calling readFile +readFilePromisified("a.txt") +.then((data) => { + console.log("file content: " + data); +}) +.catch((err) => { + console.log(err); +}); + +// calling setTimeout +setTimeoutPromisified(2000).then(() => { + console.log("done after 2 seconds"); +}); + +// calling fetch +getData("https://jsonplaceholder.typicode.com/todos/1"); \ No newline at end of file