From 8a04c06ae8cd73aa6d42b9bdc87b5af9436ae42c Mon Sep 17 00:00:00 2001 From: Jorge Machuca Date: Thu, 6 Jun 2024 08:27:28 -0400 Subject: [PATCH] finished calculator basic implementation --- .gitignore | 1 + index.html | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++ styles.css | 46 ++++++++++++++++++ 3 files changed, 185 insertions(+) create mode 100644 .gitignore create mode 100644 index.html create mode 100644 styles.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9170c21e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.prettierrc \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..d358a72a --- /dev/null +++ b/index.html @@ -0,0 +1,138 @@ + + + + + + + Document + + +
+
+
+

0

+
+
+

7

+

8

+

9

+

/

+

4

+

5

+

6

+

X

+

1

+

2

+

3

+

+

+

0

+

.

+

=

+

-

+
+
+ +
+ + diff --git a/styles.css b/styles.css new file mode 100644 index 00000000..27ab3dc4 --- /dev/null +++ b/styles.css @@ -0,0 +1,46 @@ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +.calculator { + background-color: black; + width: 400px; + height: 500px; + border-radius: 40px; + padding: 30px; +} + +.bar { + background-color: white; + height: 60px; + display: flex; + flex-direction: row-reverse; + align-items: center; + padding: 0 10px; + margin-bottom: 40px; +} +.operation-text { + font-size: 40px; + font-weight: bold; +} + +.numbers { + width: 100%; + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.numbers > p { + flex: 1 0 20%; + background-color: white; + text-align: center; + padding: 16px 20px; + border-radius: 50%; + font-size: 36px; + font-weight: bold; +}