diff --git a/.idea/ZenLender.iml b/.idea/ZenLender.iml index 0c8867d..84fb589 100644 --- a/.idea/ZenLender.iml +++ b/.idea/ZenLender.iml @@ -8,5 +8,8 @@ + + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml index d23208f..72184eb 100644 --- a/.idea/jsLibraryMappings.xml +++ b/.idea/jsLibraryMappings.xml @@ -1,6 +1,7 @@ + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 0be9360..e6bf290 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,6 +3,8 @@ + + \ No newline at end of file diff --git a/index.html b/index.html index 359e740..0ef50d0 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,10 @@ ZenLender + - +
@@ -26,12 +27,12 @@ - @@ -44,14 +45,13 @@
-

Start Crafting Your Next Great Idea

-
Simplifying the creation of landing pages, blog pages, application pages and so much more!
+

Start Crafting Your Next Great Robot

+
Making it easier and faster to start on your FTC development without having to worry about parts!
@@ -68,12 +68,13 @@

Products

- +
- Tall slender porcelain bottle with natural clay textured body and cork stopper. + REV Control Hub
-

Earthen Bottle

-

$48

+

REV Control Hub

+

Free 247$

@@ -169,150 +170,7 @@

John Smith

-
-
-

- Simple, Transparent Pricing -

-

- Pricing to fit the needs of any companie size. -

-
-
- -
-

- Starter -

-
-

- $5 -

-

- / month -

-
-

- Ideal for Startups and Small Companies -

-
    -
  • - - - - Automated Reporting -
  • -
  • - - - - Faster Processing -
  • -
  • - - - - Customizations -
  • -
- -
- -
-

- Basic -

-
-

- $15 -

-

- / month -

-
-

- Ideal for medium-size businesses to larger businesses -

-
    -
  • - - - - Everything in Starter -
  • -
  • - - - - 100 Builds -
  • -
  • - - - - Progress Reports -
  • -
  • - - - - Premium Support -
  • -
- -
- -
-

- Plus -

-
-

- $25 -

-

- / month -

-
-

- Ideal for larger and enterprise companies -

-
    -
  • - - - - Everything in Basic -
  • -
  • - - - - Unlimited Builds -
  • -
  • - - - - Advanced Analytics -
  • -
  • - - - - Company Evaluations -
  • -
- -
-
-
+
diff --git a/javascript/global.js b/javascript/global.js new file mode 100644 index 0000000..7d016c2 --- /dev/null +++ b/javascript/global.js @@ -0,0 +1,78 @@ +let storedName, shoppingList, shoppingBag, dynamicHTML, answer, cartList; +function getUsername() { + storedName = localStorage.getItem('name'); + if(storedName!=null) { + document.getElementById('title').innerHTML = 'Hi, ' + storedName; + } + document.getElementById('shoppingCart').hidden= true + console.log('Inside Onload'); +} +async function checkout(event) { + //dynamicHTML = '' + event.preventDefault() + shoppingBag = localStorage.getItem('bag') + console.log(shoppingBag) + dynamicHTML= ""; + axios.get('https://fetchFTC.py201678.repl.co/generatehtml/' + shoppingBag) + .then(function (response) { + console.log(response.data) + document.getElementById('shoppingCartList').innerHTML = response.data + }) + .catch(function (error) { + console.log(error); + }) + .then(function () { + + console.log(dynamicHTML) + console.log("done"); + }); + axios.get('https://fetchFTC.py201678.repl.co/generateprice/' + shoppingBag) + .then(function (response) { + console.log(response.data) + document.getElementById('totalPrice').innerHTML = response.data + }) + .catch(function (error) { + console.log(error); + }) + .then(function () { + + console.log(dynamicHTML) + console.log("done"); + }); + + document.getElementById('shoppingCart').hidden = false; +} +function closeCheckout(event) { + document.getElementById('shoppingCart').hidden=true; + event.preventDefault(); +} +function goToSignUp() { + window.location.href = "../signup.html" +} +function generateHTML(res) { + dynamicHTML = dynamicHTML + ` +
  • +
    + Salmon orange fabric pouch with match zipper, gray zipper pull, and adjustable hip belt. +
    + +
    +
    +
    +

    + ${res.partName} +

    +

    $${res.price}

    +
    +

    ${res.partInitials}

    +
    +
    +

    Qty 1

    + +
    + +
    +
    +
    +
  • ` +} \ No newline at end of file diff --git a/javascript/products/REVCH.js b/javascript/products/REVCH.js new file mode 100644 index 0000000..4b9d169 --- /dev/null +++ b/javascript/products/REVCH.js @@ -0,0 +1,17 @@ +let bag; +function addToCart(event) { + bag = localStorage.getItem('bag'); + if(localStorage.getItem('loggedIn')==null){ + window.location.href="../signup.html" + } + if(localStorage.getItem('loggedIn') === "true") { + if(bag==null){ + localStorage.setItem('bag',"RCH;") + } else { + localStorage.setItem('bag',bag+"RCH;") + } + console.log('added to cart'); + } + event.preventDefault() +} + diff --git a/javascript/signin.js b/javascript/signin.js new file mode 100644 index 0000000..ed8d215 --- /dev/null +++ b/javascript/signin.js @@ -0,0 +1,14 @@ +let ftcNumber; +let name; +let password; +let email; +let storedName; +function signIn() { + ftcNumber = document.getElementById("ftcNumber") + name = document.getElementById("name"); + storedName = localStorage.setItem('name', name); + password = document.getElementById("discordID"); + email = document.getElementById("email"); + console.log(""); + //fetch() +} \ No newline at end of file diff --git a/products/REVCH.html b/products/REVCH.html index 68f056a..1b92870 100644 --- a/products/REVCH.html +++ b/products/REVCH.html @@ -6,15 +6,22 @@ REV Control Hub + + + + - +
    -
    + +
    + +
    + + + + +
    @@ -66,10 +66,11 @@

    Products

    - Tall slender porcelain bottle with natural clay textured body and cork stopper. + Tall slender porcelain bottle with natural clay textured body and cork stopper.

    REV Control Hub

    -

    $247

    +

    Free 247$

    @@ -163,7 +164,7 @@

    Machined Mechanical Pencil

    -

    © 2021 DevMello - Tailwindcss +

    © 2022 DevMello - Tailwindcss

    diff --git a/signup.html b/signup.html new file mode 100644 index 0000000..00af659 --- /dev/null +++ b/signup.html @@ -0,0 +1,136 @@ + + + + + + + Tails Downloaded File + + + + + + + +
    + +
    +
    +
    +
    +
    +
    +

    ZenLender

    +

    Parts to help you work faster.

    +
    +

    Rent parts to speed up your production ten-fold.

    +
    +
    +
    + +
    +
    +

    Signup

    +

    or, if you have an account you can sign in

    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    +
    +
    +
    +
    + + + + +
    + +
    + + + + + + \ No newline at end of file diff --git a/stylesheets/style.css b/stylesheets/style.css deleted file mode 100644 index a90f074..0000000 --- a/stylesheets/style.css +++ /dev/null @@ -1,4 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; -