From ceb5137786e7005a7b86a736b3af6bbe9c1cccfb Mon Sep 17 00:00:00 2001 From: raj Date: Wed, 8 Mar 2023 10:43:43 +0530 Subject: [PATCH] added the login or new user component --- css/styles.css | 20 ++++++++++++++++++++ icons/login.svg | 15 +++++++++++++++ icons/newuser-icon.svg | 22 ++++++++++++++++++++++ index.html | 32 +++++++++++++++++++++++++++++++- js/app.js | 3 ++- js/login.js | 24 ++++++++++++++++++++++++ 6 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 icons/login.svg create mode 100644 icons/newuser-icon.svg create mode 100644 js/login.js diff --git a/css/styles.css b/css/styles.css index 24add02..ecb8ce0 100644 --- a/css/styles.css +++ b/css/styles.css @@ -20,6 +20,26 @@ html, button { cursor: url(../icons/ArrowSmall.cur), default; } +/*login or signin*/ +.login{ + display:flex; + flex-direction:column; + align-items:center; + justify-content:flex-end; +} +.login p{ + font-size: 16px; + font-weight: 500; + color:gray +} + +.userLogin{ + display:flex; + flex-direction:row; + justify-content: center; + background-color: #eeeeee; +} + /* sugar-vue-Icon */ .test { width:80px; diff --git a/icons/login.svg b/icons/login.svg new file mode 100644 index 0000000..dee459c --- /dev/null +++ b/icons/login.svg @@ -0,0 +1,15 @@ + + + + + + image/svg+xml + + + + + + + + + \ No newline at end of file diff --git a/icons/newuser-icon.svg b/icons/newuser-icon.svg new file mode 100644 index 0000000..4dd2d02 --- /dev/null +++ b/icons/newuser-icon.svg @@ -0,0 +1,22 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index fe6cc86..9cd7c39 100644 --- a/index.html +++ b/index.html @@ -22,6 +22,29 @@
+ +
+ + + +
+

Hello Sugarizer

{{ message }}

{{ message }} {{ message }} Product Name : {{product.name}} - Price : {{product.price}} ({{product.category}}) + + + + +
@@ -239,6 +267,8 @@

{{ message }}

+ + diff --git a/js/app.js b/js/app.js index 85d72dd..62631f6 100644 --- a/js/app.js +++ b/js/app.js @@ -15,7 +15,8 @@ const app = Vue.createApp({ "select-box": SelectBox, "filter-box": FilterBox, "password": Password, - "dialog-box": Dialog + "dialog-box": Dialog, + "login": Login, }, data() { return { diff --git a/js/login.js b/js/login.js new file mode 100644 index 0000000..c2683f9 --- /dev/null +++ b/js/login.js @@ -0,0 +1,24 @@ + +/** + * @module Login + * @desc This is an icon component for both native and simple SVG icons + * @vue-prop {String} svgfile - Url of svg file + * @vue-prop {String} content - whether we are using it for login or signup +*/ +const Login ={ + name: 'Login', + template: `
+ + +
`, + props: ['svgfile','color','size','content'], + data() { + return { + contentData: this.content, + svgfile: this.svgfile, + } + }, + +}; + +if (typeof module !== 'undefined') module.exports = { Login } \ No newline at end of file