From 365af6d0919d3b88068cdd8d8e29e4f082b24a86 Mon Sep 17 00:00:00 2001 From: vaibhav-1508 Date: Wed, 8 Jun 2022 19:34:05 +0530 Subject: [PATCH 1/7] first commit --- .github/PULL_REQUEST_TEMPLATE.md | 32 ------ .github/labeler.yml | 8 -- .github/workflows/labeler.yml | 11 -- Android.md | 59 ----------- Flutter.md | 73 ------------- WebDev.md | 55 ---------- console.js | 176 +++++++++++++++++++++++++++++++ home.html | 82 ++++++++++++++ moon.png | Bin 0 -> 8081 bytes readme.md | 150 -------------------------- style.css | 124 ++++++++++++++++++++++ sun.png | Bin 0 -> 9140 bytes 12 files changed, 382 insertions(+), 388 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/labeler.yml delete mode 100644 .github/workflows/labeler.yml delete mode 100644 Android.md delete mode 100644 Flutter.md delete mode 100644 WebDev.md create mode 100644 console.js create mode 100644 home.html create mode 100644 moon.png delete mode 100644 readme.md create mode 100644 style.css create mode 100644 sun.png diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index dc2beda..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,32 +0,0 @@ -## CSOC Task 1 Submission - - -### Track - -- [ ] Android -- [ ] Flutter -- [ ] Web Devlopment - -### Task Completed - -#### Hangman - -- [ ] **Task 1**: Implement a hangman game. Create a word generator and generate random words in every game. -- [ ] **Task 2**: Add a high score page to view the previous scores. -- [ ] **Task 3**: Giving hints to users, by showing a few letters when the user needs them. Also, you could give signs when the entered letters are wrong. -- [ ] **Task 4:** Make hard and easy mode with say, 5 lives in easy and 3 in hard mode. Also, word length and difficulty could be changed with respective levels. Easy words could have till 5 letters while difficult ones with longer words. -- [ ] **Extras:** Adding a timer for making it more interactive and competitive. - -#### Calculator - -- [ ] **Task 1**: Create a simple calculator with basic mathematical operations. -- [ ] **Task 2**: Add complex operations including exponentiation, logarithms, trigonometry, etc. -- [ ] **Task 3:** Add an option to change settings, say from radians to degrees and vice versa, and an option to change the theme of the app. -- [ ] **Task 4:** Feature to show a history of previous calculations. -- [ ] **Extras:** Add feature for matrix calculations and plotting of simple basic graphs using equations. - -### Submission - - -[Repo](link) -[APK|Web Site](link) diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 714b6e5..0000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,8 +0,0 @@ -android: -- any: ['Android.md'] - -flutter: -- any: ['Flutter.md'] - -web: -- any: ['WebDev.md'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 331ddc9..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: "Pull Request Labeler" -on: -- pull_request_target - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v3 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/Android.md b/Android.md deleted file mode 100644 index d532893..0000000 --- a/Android.md +++ /dev/null @@ -1,59 +0,0 @@ -# CSOC Week1 Android - -## Introduction -The most apt definition for android is - "Android is a mobile operating system based on a modified version of the Linux kernel and other open-source software, designed primarily for touchscreen mobile devices such as smartphones and tablets." -In short, we can say that it is an Operating system for touchscreen devices, and any device that runs on this Operating System is known as an Android Device. Now for every operating system, some applications can run on it to perform specific tasks. Similarly, for Android Devices, we have Android Apps that can run on them to perform specific tasks. - -Evident enough that the software engineering field for developing such apps is known as Android App Development. -The official language for Android development is Kotlin, but Java is still used in many famous courses and many projects, so you are free to use any of them. - -## Installation - -### Android Studio - -Android Studio is the official Integrated Development Environment (IDE) for Android app development. This software is a bit heavy on normal systems (8 GB Ram & 1 TB HDD) and can be quite laggy for any systems below this configuration. - -[](https://developer.android.com/studio/install) - -While developing an android app you will need to test it on a device. You can test it in two ways - - -- [Real Device (Preferred for slower systems)](https://developer.android.com/studio/debug/dev-options) -For testing you apps on a real device you will need to have a USB cable and an Android device. Follow this tutorial to enable USB debugging in order to run your app in the device. - -- [Emulator](https://developer.android.com/studio/run/emulator) -An Android Emulator simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device. It provides almost all of the capabilities of a real Android device. - - -## How to get started - -If you haven't had any chance to develop android apps earlier then don't worry it's not too late to start now. Here are few resources to start with android development. - -- Video Tutorial - - [Android development tutorial 1](https://www.youtube.com/playlist?list=PLUcsbZa0qzu3Mri2tL1FzZy-5SX75UJfb) - - [Android development tutorial 2](https://www.youtube.com/playlist?list=PLgCYzUzKIBE8TUoCyjomGFqzTFcJ05OaC) -- Written Tutorials - - [Create a project](https://developer.android.com/training/basics/firstapp/creating-project) - - [Run your app](https://developer.android.com/training/basics/firstapp/running-app) - - [Include new UI](https://developer.android.com/training/basics/firstapp/building-ui) - - [Make it functional](https://developer.android.com/training/basics/firstapp/starting-activity) - -## Submission Guidelines : - -Submission has to be done by sharing your github repo link and the .apk file of your android app - -- Fork and then Clone your repository -- Make a new entry into submissions as explained in comments -- Commit and Push the changes -- Make a Pull request - -## Submissions - - - - diff --git a/Flutter.md b/Flutter.md deleted file mode 100644 index f0a98c4..0000000 --- a/Flutter.md +++ /dev/null @@ -1,73 +0,0 @@ -# CSoC Week-1 Flutter - -# Introduction - -Flutter - promises cross platform, natively compiled apps, with slick smooth UIs. Developed by Google, the framework is gaining in popularity, especially amongst new startups. - -## Single Codebase…like Java? - -Flutter’s major selling point is that it allows developers to create mobile apps for Android and iOS using a single codebase. It’s possible to build a Flutter app targeting Android and build the same project on a Mac for iOS devices without changing a single line of code. - -Unlike most other mobile app frameworks Flutter does not use WebView nor OEM widgets. Instead, Flutter uses its own rendering engine to draw widgets. - -Apps are natively compiled too, so you’ll need a machine with Android SDK installed for targetting Android and you’ll need to be running XCode to build for iOS devices. - -# Getting Started - -## Installation - -Here is how you can install Flutter. Do not install Android Studio right now, this week you do not require it. Read until writing your first flutter app. - -[Install](https://flutter.dev/docs/get-started/install) - -To use flutter consistently between different terminal sessions, go through this - -[Linux install](https://flutter.dev/docs/get-started/install/linux#update-your-path) - -Install a suitable IDE. VS Code (compared to Android Studio) is good choice for a light and better experience. - -# For Basic Understanding - -- [Flutter Widgets - Javatpoint](https://www.javatpoint.com/flutter-widgets) -- [Flutter - Container Cheat Sheet](https://medium.com/jlouage/container-de5b0d3ad184) -- [Flutter Tutorial for Beginners - Build iOS and Android Apps with Google's Flutter & Dart](https://www.youtube.com/watch?v=x0uinJvhNxI) -- [The Flutter Series: Exploring a Flutter project and building your first Flutter app](https://medium.com/@dev.n/the-complete-flutter-series-article-1-exploring-a-flutter-project-and-building-your-first-flutter-e438ea941d70) - -- [The Flutter Series: Basic Widgets and Layout](https://medium.com/@dev.n/the-complete-flutter-series-article-2-basic-widgets-and-layout-in-flutter-92a4fbd4a3e1) - -Don't forget to switch on USB Debugging on your mobile. (In case you are not using an emulator) - -For reference, keep this handy - -[Flutter - Dart API docs](https://api.flutter.dev/) - -# Challenge - -As an aspiring developer, you'd need to keep building things to keep your knowledge on tips. Now that you are good to go with the basics of native Android Development, we want you to build **one of the apps** from the following list on your own. - -1. Calculator app -2. Hangman game - -You have to provide your Repo and APK File as part of submission - -### **Judging** - -The evaluation would be done mainly on the following basis: - -1. User Interface and User Experience -2. Authenticity and readability of the code -3. Completion of mentioned tasks -4. Bonus Points for implementing extra features depending on your creativity😉 - -Remember, the deadline for this week's task is **June 10th, 2022, 23:59**. - -## Submission Guidelines : - -Submission has to be done by sharing your github repo link and the .apk file of your application - -- Fork and then Clone your repository -- Make a new entry into submissions as explained in comments -- Commit and Push the changes -- Make a Pull request - -## Submissions diff --git a/WebDev.md b/WebDev.md deleted file mode 100644 index cb78c5f..0000000 --- a/WebDev.md +++ /dev/null @@ -1,55 +0,0 @@ -# CSOC'22 Week1 Web Development - -## Introduction - -Web development is a basic skill that is often said as a good start to the development field. This week you will learn the basics of web development. You will get familiar with HTML, CSS, and JavaScript. On completion, you will be able to make simple static websites for both desktop and mobile. - -## Responsive UI - -One major thing to ensure while working on Web Apps is to ensure that most people will open your websites on mobile first based on that we develop our site on Mobile First approach and then make changes to scale with increasing screen size - -### Native CSS Tools - -These are vanilla CSS Tools that will allow you to make your UI respond to changes in the screen size. - -- Flexbox - -- Grid - -- Float - -- Media Queries - -### CSS Frameworks - -They provide you with a set of classes and components that scale with the screen size. Although its only recommended to use them when you understand native CSS properly. - -- [Bootstrap 5](https://getbootstrap.com/) - -- [TailwindCSS 2](https://tailwindcss.com/) - -- [Bulma](https://bulma.io/) - -- [Materialize](https://materializecss.com/) - -## Submission Guidelines : - -Submission has to be done by sharing your github repo link and deployment link of site - -- Fork and then Clone your repository - -- Make a new entry into submissions as explained in comments - -- Commit and Push the changes - -- Make a Pull request - -Remember, the deadline for this week's task is June 7th, 2022, at 23:59. - -## Submissions - - - - - - diff --git a/console.js b/console.js new file mode 100644 index 0000000..7b3ed36 --- /dev/null +++ b/console.js @@ -0,0 +1,176 @@ +// darkmode +var darkmode = document.getElementById("darkmode-icon"); + +darkmode.onclick = function(){ + document.body.classList.toggle("light-mode"); + if(document.body.classList.contains("light-mode")) + darkmode.src= "moon.png" + else + darkmode.src= "sun.png" +} + + +let inv = document.getElementsByClassName("sci"); + +let display = document.getElementById('display-input'); + +let buttons = Array.from(document.getElementsByClassName('button')); + +let expression = ''; + +let history = ''; + +let x; + +let i = 0; + + +linebreak = document.createElement("br"); +hist = document.getElementById("history"); + +buttons.map(button => { + button.addEventListener('click', (e) => { + switch (e.target.innerText) { + + // for clearing text + case 'C': + display.innerText = ''; + expression = ''; + addToHistory(''); + i++; + history = ''; + console.log(expression);//test + break; + + // when = is pressed + case '=': + try { + display.innerText = eval(expression); + addToHistory(expression + '=' + display.innerText); + expression = display.innerText; + console.log(expression);//test + i++; + history = ''; + } catch { + display.innerText = "Error" + expression = ''; + } + break; + + + // backspace + case '←': + if (display.innerText) { + display.innerText = display.innerText.slice(0, -1); + expression = display.innerText; + console.log(expression);//test + } + break; + + + case 'π': + display.innerText += 'π'; + expression += Math.PI; + console.log(expression);//test + break; + case 'e': + display.innerText += 'e'; + expression += Math.E; + console.log(expression);//test + break; + case 'ln': + display.innerText = "log(" + display.innerText + ")"; + expression = eval(expression); + expression = Math.log(expression); + console.log(expression);//test + break; + case '%': + display.innerText += '%'; + expression = eval(expression); + expression = (expression) / 100; + break; + case '√': + display.innerText = '√' + display.innerText; + expression = Math.sqrt(expression); + break; + case '!': + display.innerText += '!'; + expression = factorial(expression); + break; + case 'sci': + for (let j = 0; j < 7; j++) { + inv[j].classList.toggle("invisible"); + } + + break; + case '^': + display.innerText += '^'; + expression += '^'; + switch (e.target.innerText) { + case '=': + expression = power(expression); + try { + display.innerText = eval(expression); + console.log(expression);//test + } catch { + display.innerText = "Error" + expression = ''; + } + } + + break; + default: + display.innerText += e.target.innerText; + expression += e.target.innerText; + console.log(expression);//test + } + }); +}); + +function addToHistory(value) { + let hist = document.getElementsByClassName('history'); + + var el = document.createElement('div'); + el.setAttribute("id", `Div${i}`); + hist[0].appendChild(el); + + + + history += value; + + console.log(history); + + if (history === '=undefined') { + history = ''; + expression = ''; + display.innerText = ''; + } + else + { + document.getElementById(`Div${i}`).innerHTML = history; + } + + + +} + +factorial = (n) => { + let answer = 1; + if (n == 0 || n == 1) { + return answer; + } else { + for (var i = n; i >= 1; i--) { + answer = answer * i; + } + return answer; + } +} + +power = (n) => { + var textinside = n; + var a = textinside.slice(0, textinside.indexOf('^')); + var b = textinside.slice(-1, textinside.indexOf('^')); + console.log(a, b); + ans = Math.pow(a, b); + return (ans); +} diff --git a/home.html b/home.html new file mode 100644 index 0000000..16b8eb2 --- /dev/null +++ b/home.html @@ -0,0 +1,82 @@ + + + + + + + + + + + Document + + + +
+ +
+
+
+
+
C
+
/
+
*
+
+ + + +
7
+
8
+
9
+
-
+ + +
4
+
5
+
6
+
+
+ + +
1
+
2
+
3
+
.
+ + +
0
+
(
+
)
+
=
+ + + + + + +
sci
+ + +
+ +
+
+ +
+
+
+ +
+
+
+
+ +
+ + +
+ + + + + + \ No newline at end of file diff --git a/moon.png b/moon.png new file mode 100644 index 0000000000000000000000000000000000000000..e86aa0039b338dcce5e56b5a337570cbd88ef741 GIT binary patch literal 8081 zcmdsc=UY=x@NW_$B-9X^^aLR^=>h@@p%+6hp$kawz4!7}dWV2CDUsd;6bwZK=|!r7 z6j4B$(iK7Y#e45Ra9`g0;ymX(GqZDcXJ=<-Ka-%Vtwu@4Oa=e|C^giT^#K4Niui~^ zNQjgVjMV4E7tmK|>v! z6}~t@e$gn1n6z+dI`?WBq>?B;C5!XQPJa(%UU=blgJgt;o%acpb1Dv0O&K?8A?Y|q znVaH1jJg(uGqiU<{)h&(Q&f)uQO&ilLDNGiV~qu8TlDCK0baCd3C;Z zIx;Z)_s{849go!Fucuen3)KcMuAVz`tisd_0DakhP!mi~Wu<*`+!hzNcT2mV4|k== z=v<79&qy{O^(NW72uQyMz$P&(fWleg?%hlO;NbHF%^kY7I2RCChuy|V&YQ6UiQOWA zH-ro*0OqeV8E~otYs>#Vd0tdhv}#aB2`{%)LdjLs)a)1zbn)ATl_?;^KoA2v-mg*> z4T}M_*hV?EvRN(#X4Ys@(h-tAI-oixTNPl#pYn*adE8P0`hi+P(vQ$xeqy7Z{l4jD zbQ2hcZ~6v*%A+8IQS^&$?`g{*#QnI*63`5dE+z6x`)#QnVX;^}1B1sNhb6W9jc%w$ zS>KoLi-VHjL~fX~eCbDJD3%r2mcGNykjHnDIxxV?H(OpXYFEi^oQYMQ-~yUqs2D;Y zKmO{qe01Gru_R3OYc}4zQs*J7a|Q`G5lOVM5+7dVMNz=wX6I-?N2cqPF@r%1D!+DV zagm`P$F8A(5C+Ea2^R-ZY2!qmUr$#)oHVW-pm0<3UXp+M)w5>cBnv?UAqOsjVW_1z z@{gV_E;9J?@~eSuG=IegmOdzB@0mni{V0Z^%FON)B8*D@XBNVDxacv z&DXAYQYUdiNjaETCZNx*!{jcHGikzfJ-jj_H;c?RqJV_JNRogyA-W1;qC?Dkb2OoK zY|LFNJ8V%@Z)f(Sel2a37YHN`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%-=w;uZ|` zdKLWCOy`4MD{-S-x4^b?qbe>fw83C3(okQEH68)C;OnbwqmyU@Haey}8bpWD>Z(c> zAy~MvCY|^`i}Jas0|s)yIv~+j1pyoTec90j>sM_3%;oJF=++0S?U|`i1HquBiZM^< z98)13xvDk{*PHJ*~85$#e5*o*Bp))-%Cn)kmCVk1p#&KF>b` zIm7zrxO5Fx|3>ZSynHB3ne2%Rh;Y13?#{bvMdN8*C$C>Haas9ngOEq zng9`-AJh)r@VWjp86a4z&ayY8$yByFGY|;_1g##_uS#-ujilYP8HqALq*j$>Z%mY; zY<6ZKE(QqNF%_iPoL%E;_H0e63=phCJqK*imt&{eF4^wPKuZP)*y}w8ZO*POna>9@ z0|pFu%(6Ebn3IcS1~LQvF+kAjt&y%JXV?CS&&M+ZCJYd%uCHZpHnAg@$qZx$N-{vu z-smvJ=ImOM_k3Drz=#2dS@v&62INASfy_W>3=p&~emrbgXSL?DGXt3cBL*B~**lFY z&V@1qnE^8f2-=&0sSG!(HJ8c^WCn~FAW}_#2z!iCg}G2>ATwac06}|dhbeXn=MS)} zHJ8o|WCn~FAo%q2oTEwx?aQ3Eu~9|2P-Y-A;En+TaX0WBXeAeLU~zXfW=)|O$Zt&y y#k_}l3Cg`uyF{JpkNJEtFLl$8ZDr{K2L2!V)x4ELf;z4M0000 Date: Wed, 8 Jun 2022 19:49:48 +0530 Subject: [PATCH 2/7] fade effect --- console.js | 14 +++++++++++++- style.css | 8 +++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/console.js b/console.js index 7b3ed36..1ded6f8 100644 --- a/console.js +++ b/console.js @@ -134,6 +134,18 @@ function addToHistory(value) { el.setAttribute("id", `Div${i}`); hist[0].appendChild(el); + + if (i<1) { + let newElement= document.getElementById(`Div${i}`); + newElement.classList.add("new-element"); + } + else { + let newElement= document.getElementById(`Div${i}`); + newElement.classList.add("new-element"); + let oldElement= document.getElementById(`Div${i-1}`); + oldElement.classList.remove("new-element"); + } + history += value; @@ -149,7 +161,7 @@ function addToHistory(value) { { document.getElementById(`Div${i}`).innerHTML = history; } - + } diff --git a/style.css b/style.css index b7355fc..05f292a 100644 --- a/style.css +++ b/style.css @@ -112,6 +112,7 @@ body{ min-width: 500px; text-align: center; font-size: 25px; + animation: fade-out 0.4s ease; } #darkmode-icon { @@ -121,4 +122,9 @@ body{ cursor: pointer; justify-self: left; margin-right: 0%; - } \ No newline at end of file + } + +.new-element{ + font-size: 50px; + animation: fade-in 0.4s ease; +} \ No newline at end of file From fb3c7be2d23609016bad2e81a82dfda0d97053c9 Mon Sep 17 00:00:00 2001 From: vaibhav-1508 Date: Thu, 9 Jun 2022 13:51:26 +0530 Subject: [PATCH 3/7] theme change --- home.html | 36 ++++++++++++++++++------------------ style.css | 30 ++++++++++++++++++++++-------- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/home.html b/home.html index 16b8eb2..c244aee 100644 --- a/home.html +++ b/home.html @@ -4,7 +4,10 @@ - + + + + @@ -15,38 +18,42 @@
+
+
+
+
-
C
-
/
-
*
-
+
C
+
/
+
+
*
7
8
9
-
-
+
-
4
5
6
-
+
+
+
1
2
3
-
.
+
.
0
(
)
-
=
+
=
@@ -63,15 +70,8 @@
-
- -
-
-
-
- -
- + +
diff --git a/style.css b/style.css index 05f292a..774c78d 100644 --- a/style.css +++ b/style.css @@ -1,10 +1,14 @@ :root{ - --primaary-colour: #323330; + --primaary-colour: #01011b; --secondary-colour: aliceblue; + --tertiary-colour: rgba(23, 23, 24, 0.929) ; + --quaternary-colour: #1c1c1de4; } .light-mode{ - --primaary-colour:aliceblue; - --secondary-colour:#323330; + --primaary-colour:rgb(255, 255, 255); + --secondary-colour:#01011b; + --tertiary-colour: ; + --quaternary-colour: aliceblue ; } .sci{ @@ -33,11 +37,13 @@ body{ background: var(--primaary-colour); color: var(--secondary-colour); transition: background 0.5s linear; + font-family: 'Varela Round', sans-serif; + border: 0; + margin: 0; } .main{ display: grid; - grid-template-columns: 2fr 1fr; } .invisible{ @@ -56,17 +62,25 @@ body{ .buttons { display: grid; - + background: var(--quaternary-colour); grid-template-columns: 1fr 1fr 1fr 1fr 1fr; + border-radius: 50px 50px 0 0; } - +.red{ + color:tomato; +} +.green{ + color: aquamarine; +} .button { - line-height: 100px; + line-height: 50px; text-align: center; font-size: 25px; cursor: pointer; - border-radius: 50px; + border-radius: 10px; + background: var(--tertiary-colour); + margin: 10%; } #equal { From 9af735ce68faf84cea940356c3da799fe5cbb1d3 Mon Sep 17 00:00:00 2001 From: vaibhav-1508 Date: Thu, 9 Jun 2022 16:25:11 +0530 Subject: [PATCH 4/7] changes --- console.js | 2 + home.html | 78 ++++++++++++++++++------------------- style.css | 110 +++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 129 insertions(+), 61 deletions(-) diff --git a/console.js b/console.js index 1ded6f8..0bb369e 100644 --- a/console.js +++ b/console.js @@ -138,12 +138,14 @@ function addToHistory(value) { if (i<1) { let newElement= document.getElementById(`Div${i}`); newElement.classList.add("new-element"); + newElement.scrollIntoView({behavior:"smooth"}); } else { let newElement= document.getElementById(`Div${i}`); newElement.classList.add("new-element"); let oldElement= document.getElementById(`Div${i-1}`); oldElement.classList.remove("new-element"); + newElement.scrollIntoView({behavior:"smooth"}); } diff --git a/home.html b/home.html index c244aee..a461c72 100644 --- a/home.html +++ b/home.html @@ -17,62 +17,58 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
C
-
/
-
-
*
- - +
+ +
+
C
+
/
+
+
*
+ -
7
-
8
-
9
-
-
- -
4
-
5
-
6
-
+
- +
7
+
8
+
9
+
-
+ -
1
-
2
-
3
-
.
- +
4
+
5
+
6
+
+
+ -
0
-
(
-
)
-
=
+
1
+
2
+
3
+
.
+ +
0
+
(
+
)
+
=
- -
sci
- - -
+ +
sci
+ +
-
-
- -
diff --git a/style.css b/style.css index 774c78d..31f8e2c 100644 --- a/style.css +++ b/style.css @@ -1,12 +1,12 @@ :root{ - --primaary-colour: #01011b; + --primaary-colour: #060709; --secondary-colour: aliceblue; --tertiary-colour: rgba(23, 23, 24, 0.929) ; --quaternary-colour: #1c1c1de4; } .light-mode{ --primaary-colour:rgb(255, 255, 255); - --secondary-colour:#01011b; + --secondary-colour:#060709; --tertiary-colour: ; --quaternary-colour: aliceblue ; } @@ -43,24 +43,76 @@ body{ } .main{ - display: grid; + position: absolute; + top: 0px; + right: 0px; + bottom: 0px; + left: 0px; + display:grid; + height: 100%; + border: 0; + margin: 0; } -.invisible{ - opacity: 0; +.input-box{ + display: flex; + flex-direction: column; + margin: 0; + border: 0; +} + + +.top-area{ + position:absolute; + top:0px; + right:0px; + display: flex; + flex-direction: column; +} + + +.history{ + height: 55px; + margin-bottom: 200px; + Overflow-x:hidden ; + scroll-behavior:smooth; + min-width: 500px; + text-align: center; + font-size: 25px; animation: fade-out 0.4s ease; + +} +.history::-webkit-scrollbar { + display: none; } #display-input { - text-align: right; - height: 70px; - line-height: 70px; - padding: 16px 8px; - font-size: 25px; + text-align: flex-end; + min-height: 60px; + line-height: 60px; + padding:8px; + font-size: 50px; +} + + +#display-input{ + align-self: flex-end; +} + + +.invisible{ + opacity: 0; + animation: fade-out 0.4s ease; } .buttons { + padding: 10px; + align-self: bottom; + position: absolute; + right: 0px; + bottom: 0px; + left: 0px; display: grid; background: var(--quaternary-colour); grid-template-columns: 1fr 1fr 1fr 1fr 1fr; @@ -80,7 +132,7 @@ body{ cursor: pointer; border-radius: 10px; background: var(--tertiary-colour); - margin: 10%; + margin: 2%; } #equal { @@ -119,15 +171,7 @@ body{ } -.right-panel{ - display: flex; -} -.history{ - min-width: 500px; - text-align: center; - font-size: 25px; - animation: fade-out 0.4s ease; -} + #darkmode-icon { height: 30px; @@ -141,4 +185,30 @@ body{ .new-element{ font-size: 50px; animation: fade-in 0.4s ease; +} + + + +@media screen and (max-width: 480px) { + .buttons { + padding: 10px; + align-self: bottom; + position: absolute; + right: 0px; + bottom: 0px; + left: 0px; + display: grid; + background: var(--quaternary-colour); + grid-template-columns: 1fr 1fr 1fr 1fr 1fr; + border-radius: 50px 50px 0 0; + } + .button { + line-height: 70px; + text-align: center; + font-size: 50px; + cursor: pointer; + border-radius: 10px; + background: var(--tertiary-colour); + margin: 2%; + } } \ No newline at end of file From e366f37f9317083335965943e8b41d040cb36250 Mon Sep 17 00:00:00 2001 From: vaibhav-1508 Date: Thu, 9 Jun 2022 23:28:49 +0530 Subject: [PATCH 5/7] responsive --- style.css | 73 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 29 deletions(-) diff --git a/style.css b/style.css index 31f8e2c..d0b6495 100644 --- a/style.css +++ b/style.css @@ -33,6 +33,9 @@ } } + + + body{ background: var(--primaary-colour); color: var(--secondary-colour); @@ -43,12 +46,6 @@ body{ } .main{ - position: absolute; - top: 0px; - right: 0px; - bottom: 0px; - left: 0px; - display:grid; height: 100%; border: 0; margin: 0; @@ -62,6 +59,7 @@ body{ } + .top-area{ position:absolute; top:0px; @@ -74,25 +72,28 @@ body{ .history{ height: 55px; margin-bottom: 200px; + margin-right: 500px; Overflow-x:hidden ; scroll-behavior:smooth; min-width: 500px; text-align: center; font-size: 25px; animation: fade-out 0.4s ease; - } -.history::-webkit-scrollbar { - display: none; +.new-element{ + font-size: 25px; + animation: fade-in 0.4s ease; } - #display-input { text-align: flex-end; min-height: 60px; line-height: 60px; padding:8px; - font-size: 50px; + font-size: 25px; +} +.history::-webkit-scrollbar { + display: none; } @@ -188,27 +189,41 @@ body{ } +@media screen and (min-height: 400px) and (max-height:700px){ + + .history{ + margin-bottom:-15px; + font-size: 12px; + margin-right: 300px; + } + + .new-element{ + font-size: 20px; -@media screen and (max-width: 480px) { - .buttons { - padding: 10px; - align-self: bottom; - position: absolute; - right: 0px; - bottom: 0px; - left: 0px; - display: grid; - background: var(--quaternary-colour); - grid-template-columns: 1fr 1fr 1fr 1fr 1fr; - border-radius: 50px 50px 0 0; } .button { - line-height: 70px; - text-align: center; + line-height: 45px; + + font-size: 25px; + + } + +} + +@media screen and (max-device-width: 500px) { + .history{ + margin-bottom:30px; + font-size: 40px; + margin-left: 30%; + } + + .button{ + line-height: 200px; + font-size: 50px; + } + + #display-input { + margin-top: 40%; font-size: 50px; - cursor: pointer; - border-radius: 10px; - background: var(--tertiary-colour); - margin: 2%; } } \ No newline at end of file From 691f1dc9e4f54da75544b5f9136a39c3063bef92 Mon Sep 17 00:00:00 2001 From: vaibhav-1508 Date: Thu, 9 Jun 2022 23:34:11 +0530 Subject: [PATCH 6/7] minor changes --- style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index d0b6495..e623b5c 100644 --- a/style.css +++ b/style.css @@ -189,7 +189,7 @@ body{ } -@media screen and (min-height: 400px) and (max-height:700px){ +@media screen and (min-height: 200px) and (max-height:700px){ .history{ margin-bottom:-15px; @@ -202,9 +202,9 @@ body{ } .button { - line-height: 45px; + line-height: 25px; - font-size: 25px; + font-size: 15px; } From 14eaf2897d8b465ae38fa3c5815ddf4500bdfae4 Mon Sep 17 00:00:00 2001 From: vaibhav-1508 <96713176+vaibhav-1508@users.noreply.github.com> Date: Thu, 9 Jun 2022 23:52:41 +0530 Subject: [PATCH 7/7] Create README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..52b8417 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# CSOC22-Week1 + +A responsive scientific calculator that works on phones, tablets as well as PC screen with dark and light themes. +