From 68b90cd65481b8a1b1a4052e137d693fe22b5707 Mon Sep 17 00:00:00 2001
From: salathiel wekesa <107699372+salawekesa@users.noreply.github.com>
Date: Wed, 31 May 2023 00:41:51 +0300
Subject: [PATCH 1/5] landing page
---
index.html | 44 +++++++++++++++++++++++++++++
style.css | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
style.js | 20 +++++++++++++
3 files changed, 146 insertions(+)
create mode 100644 index.html
create mode 100644 style.css
create mode 100644 style.js
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..7e5eeac
--- /dev/null
+++ b/index.html
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+ Mind your Mind
+
+
+
+
+
+ MindYM
+
+ - Breathing
+ - Morning pages
+ - Meditation
+ - Get inspired
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..22b530f
--- /dev/null
+++ b/style.css
@@ -0,0 +1,82 @@
+/*
+ 1. Use a more-intuitive box-sizing model.
+*/
+*, *::before, *::after {
+ box-sizing: border-box;
+}
+/*
+ 2. Remove default margin
+*/
+* {
+ margin: 0;
+}
+/*
+ 3. Allow percentage-based heights in the application
+*/
+html, body {
+ height: 100%;
+}
+/*
+ Typographic tweaks!
+ 4. Add accessible line-height
+ 5. Improve text rendering
+*/
+body {
+ line-height: 1.5;
+ -webkit-font-smoothing: antialiased;
+}
+/*
+ 6. Improve media defaults
+*/
+img, picture, video, canvas, svg {
+ display: block;
+ max-width: 100%;
+}
+/*
+ 7. Remove built-in form typography styles
+*/
+input, button, textarea, select {
+ font: inherit;
+}
+/*
+ 8. Avoid text overflows
+*/
+p, h1, h2, h3, h4, h5, h6 {
+ overflow-wrap: break-word;
+}
+/*
+ 9. Create a root stacking context
+*/
+#root, #__next {
+ isolation: isolate;
+}
+
+/*
+ custom css
+*/
+
+header{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 70%;
+ margin: auto;
+}
+
+header h1{
+ color: aliceblue;
+}
+ul{
+ display: flex;
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ color:white;
+ gap: 1rem;
+}
+
+
+#display{
+ width: 100%;
+ height: 100vh;
+}
diff --git a/style.js b/style.js
new file mode 100644
index 0000000..82bb840
--- /dev/null
+++ b/style.js
@@ -0,0 +1,20 @@
+
+VANTA.HALO({
+ el: '#display',
+ mouseControls: true,
+ touchControls: true,
+ gyroControls: false,
+ minHeight: 200.00,
+ minWidth: 200.00,
+ scale: 1.00,
+ scaleMobile: 1.00
+ })
+
+ //Get Inspired
+ fetch("https://type.fit/api/quotes")
+ .then(function(response) {
+ return response.json();
+ })
+ .then(function(data) {
+ console.log(data[1].text);
+ });
\ No newline at end of file
From 84c06a6e19e0b833095877dda61bc1066c2fe360 Mon Sep 17 00:00:00 2001
From: salathiel wekesa <107699372+salawekesa@users.noreply.github.com>
Date: Wed, 31 May 2023 02:17:22 +0300
Subject: [PATCH 2/5] quotes page
---
assets/icon-dice.svg | 1 +
assets/pattern-divider-desktop.svg | 1 +
assets/pattern-divider-mobile.svg | 1 +
css/quotes.css | 78 ++++++++++++++++++++++++++++++
style.css => css/style.css | 34 ++++++++++++-
index.html | 14 +++---
js/quotes.js | 21 ++++++++
style.js => js/style.js | 0
pages/breathing.html | 21 ++++++++
pages/morning-pages.html | 21 ++++++++
pages/quotes.html | 38 +++++++++++++++
11 files changed, 221 insertions(+), 9 deletions(-)
create mode 100644 assets/icon-dice.svg
create mode 100644 assets/pattern-divider-desktop.svg
create mode 100644 assets/pattern-divider-mobile.svg
create mode 100644 css/quotes.css
rename style.css => css/style.css (70%)
create mode 100644 js/quotes.js
rename style.js => js/style.js (100%)
create mode 100644 pages/breathing.html
create mode 100644 pages/morning-pages.html
create mode 100644 pages/quotes.html
diff --git a/assets/icon-dice.svg b/assets/icon-dice.svg
new file mode 100644
index 0000000..c43bdd9
--- /dev/null
+++ b/assets/icon-dice.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/pattern-divider-desktop.svg b/assets/pattern-divider-desktop.svg
new file mode 100644
index 0000000..1442839
--- /dev/null
+++ b/assets/pattern-divider-desktop.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/pattern-divider-mobile.svg b/assets/pattern-divider-mobile.svg
new file mode 100644
index 0000000..5827785
--- /dev/null
+++ b/assets/pattern-divider-mobile.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/css/quotes.css b/css/quotes.css
new file mode 100644
index 0000000..aa189d3
--- /dev/null
+++ b/css/quotes.css
@@ -0,0 +1,78 @@
+@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@600&family=Manrope:wght@800&display=swap");
+*, ::before, ::after {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-size: 28px;
+ font-weight: 800;
+ font-family: "Manrope", sans-serif;
+ height: 100vh;
+ padding: 2rem;
+ background-color: hsl(218deg, 23%, 16%);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-around;
+}
+
+#advice {
+ width: 100%;
+ background-color: hsl(217deg, 19%, 24%);
+ border-radius: 16px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-around;
+ padding: 2rem;
+ position: relative;
+ line-height: 2.8rem;
+}
+#advice #counter {
+ font-size: 12px;
+ color: hsl(150deg, 100%, 66%);
+ text-transform: uppercase;
+}
+#advice #entry {
+ text-align: center;
+ color: hsl(193deg, 38%, 86%);
+ margin-bottom: 2rem;
+}
+#advice picture {
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ margin-bottom: 2rem;
+}
+#advice button {
+ all: unset;
+}
+#advice #dice {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 70px;
+ height: 70px;
+ border-radius: 50%;
+ background-color: hsl(150deg, 100%, 66%);
+ position: absolute;
+ bottom: -40px;
+ cursor: pointer;
+}
+@media (min-width: 500px) {
+ #advice {
+ width: 500px;
+ }
+}
+
+.attribution {
+ font-size: 11px;
+ text-align: center;
+ color: hsl(193deg, 38%, 86%);
+}
+
+.attribution a {
+ color: hsl(228deg, 45%, 44%);
+}
\ No newline at end of file
diff --git a/style.css b/css/style.css
similarity index 70%
rename from style.css
rename to css/style.css
index 22b530f..9fd7170 100644
--- a/style.css
+++ b/css/style.css
@@ -59,20 +59,31 @@ header{
display: flex;
justify-content: space-between;
align-items: center;
- width: 70%;
+ width: 80%;
margin: auto;
+ padding: 2.5rem;
+
}
header h1{
color: aliceblue;
}
+
+header a{
+ text-decoration: none;
+ color: aliceblue;
+
+}
+
ul{
display: flex;
+ flex-direction: row;
list-style: none;
margin: 0;
padding: 0;
color:white;
- gap: 1rem;
+ gap: .8rem;
+ font-size: 1.2rem;
}
@@ -80,3 +91,22 @@ ul{
width: 100%;
height: 100vh;
}
+
+
+@media (max-width: 700px) {
+ header{
+ display: flex;
+ align-items: flex-start;
+ }
+ ul {
+ display: flex;
+ flex-grow: 1;
+ flex-direction: column;
+ gap: 3rem;
+ background-color: aliceblue;
+ width: 100%;
+ height: 100vh;
+ color: black;
+ position: relative;
+}
+}
\ No newline at end of file
diff --git a/index.html b/index.html
index 7e5eeac..dd2a71e 100644
--- a/index.html
+++ b/index.html
@@ -4,8 +4,8 @@
-
-
+
+
Mind your Mind
@@ -14,10 +14,10 @@
@@ -38,7 +38,7 @@ MindYM
-
+