diff --git a/src/components/ListItems/CheckBox.vue b/src/components/ListItems/CheckBox.vue index 2fd1ef0..452a1a7 100644 --- a/src/components/ListItems/CheckBox.vue +++ b/src/components/ListItems/CheckBox.vue @@ -1,44 +1,58 @@ - - - - - \ No newline at end of file + }, + mounted() { + this.isChecked = this.value; // Set initial state based on prop value + } +}; + + + diff --git a/src/components/ListItems/CheckboxOneWay.vue b/src/components/ListItems/CheckboxOneWay.vue new file mode 100644 index 0000000..c3dd629 --- /dev/null +++ b/src/components/ListItems/CheckboxOneWay.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/src/components/ListItems/DateInput.vue b/src/components/ListItems/DateInput.vue index d26aa45..cb840f6 100644 --- a/src/components/ListItems/DateInput.vue +++ b/src/components/ListItems/DateInput.vue @@ -1,25 +1,206 @@ diff --git a/src/components/ListItems/ListElement.css b/src/components/ListItems/ListElement.css index 5ba4ef1..12721ca 100644 --- a/src/components/ListItems/ListElement.css +++ b/src/components/ListItems/ListElement.css @@ -1,166 +1,168 @@ .dropbtn { - margin-bottom: 10px; - min-width: 20px; - max-width: 200px; - width: 200px; - } - - - .dropdown { - position: relative; - display: inline-block; - } - - .dropdown-content { - display: none; - position: absolute; - background-color: #f9f9f9; - min-width: 160px; - box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); - z-index: 1; - } - - .dropdown-content a { - color: black; - padding: 12px 16px; - text-decoration: none; - display: block; - } - - .dropdown-content a:hover { - background-color: #f1f1f1; - } - - .dropdown:hover .dropdown-content { - display: block; - } - - .text-cursor { - cursor: text; - } - - .item-text:focus { - outline: none; - /* Remove default outline for focused element */ - } - - .drag-button { - padding: 4px; - background-color: #ccc; - color: #333; - border: none; - border-radius: 4px; - cursor: pointer; - margin-right: 4px; - } - - /* Styles for dragging */ - .ListItem li { - cursor: move; - } - - .template-container { - background-color: black; - border-radius: 10px; - border-color: white; - border-width: 1px; - border-style: solid; - min-height: 400px; - max-height: 600px; - min-width: 400px; - max-width: 500px; - padding: 5px 10px; - } - - .input-container { - margin-bottom: 0px; - display: flex; - align-items: center; - } - - - - .input-field { - padding: 8px 12px; - border: 1px solid #ccc; - border-radius: 4px; - margin-right: 8px; - font-size: 14px; - } - - .add-button, - .toggle-popup-button { - padding: 8px 16px; - background-color: #2d5dc7; - color: white; - border: none; - border-radius: 4px; - cursor: pointer; - font-size: 14px; - margin-right: 8px; - } - - .remove-button { - padding: 4px 8px; - background-color: #343541; - color: white; - border: none; - border-radius: 50%; - cursor: pointer; - font-size: 12px; - margin-right: 8px; - } - - .ListContainer { - display: flex; - flex-direction: column; - } - - .ListItem { - padding: 0; - } - - .item-container { - display: flex; - align-items: center; - } - - .item-text { - margin-left: 10px; - outline: none; - word-break: break-all; - } - - .ListItem li { - position: relative; - padding-top: 1.45px; - padding-bottom: 1.45px; - } - - .ListContainer { - max-height: 300px; - max-width: 400px; - overflow-y: auto; - display: flex; - } - - .ListItem { - padding: 0; - } - - .ListItem, - .RemoveButtonContainer { - list-style-type: none; - padding: 0; - } - - li { - list-style-type: none; - padding-right: 10px; - spellcheck: false; - } - - li:hover { - background-color: grey; - border-radius: 15px; - } \ No newline at end of file + padding: 8px 16px; + background-color: #383444; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + font-size: 14px; + width: 100%; +} + +.dropdown { + position: relative; + display: inline-block; + width: 100%; +} + +.dropdown-content { + display: none; + position: absolute; + background-color:#383444; + width: 100%; + box-shadow: 0 -8px 16px 0 rgba(0, 0, 0, 0.2); /* Shadow adjusted upwards */ + z-index: 1; + bottom: 100%; + max-height: 200px; + overflow-y: auto; +} + +.dropdown-content a { + color: white; + padding: 12px 16px; + text-decoration: none; + display: block; + font-size: 14px; +} + +.dropdown-content a:hover { + background-color: #f1f1f1; +} + +.dropdown:hover .dropdown-content { + display: block; +} + +.text-cursor { + cursor: text; +} + +.item-text:focus { + outline: none; +} + +.drag-button { + padding: 4px; + background-color: #ccc; + color: #333; + border: none; + border-radius: 4px; + cursor: pointer; + margin-right: 4px; +} + +/* Styles for dragging */ +.ListItem li { + cursor: move; +} + +.template-container { + background-color: black; + border-radius: 10px; + border-color: white; + border-width: 1px; + border-style: solid; + height:90vh; + width: 400px; + overflow:hidden; + color:white; + padding-left: 5px; + padding-right: 5px; +} + +.add-button, +.toggle-popup-button { + padding: 8px 16px; + background-color: #343541; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + font-size: 14px; + margin-right: 8px; +} + +.ListContainer { + display: flex; + flex-direction: column; + min-height: 50px; + max-height: 390px; + max-width: 400px; + overflow-y:auto; + flex:1; +} + +.ListItem { + padding: 0; +} + +.item-container { + display: flex; + align-items: center; +} + +.item-text { + margin-left: 10px; + outline: none; + word-break: break-all; +} + +.ListItem li { + position: relative; + padding-top: 0px; + padding-bottom: 0px; +} + +.ListItem { + padding-left:20px; +} + +.ListItem, +.RemoveButtonContainer { + list-style-type: none; + padding: 0; +} + +li { + list-style-type: none; + padding-right: 10px; +} + +li:hover { + background-color: grey; + border-radius: 15px; +} + + +.settings{ + max-width: 15px; + max-height: 20px; +} + +.input-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); /* Adjust based on the number of elements */ + gap: 10px; /* Space between items */ + margin-bottom: 10px; /* Space below the grid */ +} + +.title{ + max-width: 200px; + font-size:25px; + text-decoration: underline; +} + +.input-grid > * { + min-width: 0; /* Prevent overflow */ +} + diff --git a/src/components/ListItems/ListElement.vue b/src/components/ListItems/ListElement.vue index e22c7e9..44c2af7 100644 --- a/src/components/ListItems/ListElement.vue +++ b/src/components/ListItems/ListElement.vue @@ -1,51 +1,65 @@ + + + diff --git a/src/components/ListItems/TimeInput.vue b/src/components/ListItems/TimeInput.vue new file mode 100644 index 0000000..aaf21d2 --- /dev/null +++ b/src/components/ListItems/TimeInput.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/src/components/ListItems/popup.js b/src/components/ListItems/popup.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/components/Login.vue b/src/components/Login.vue index 26bc50e..84680d6 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -10,7 +10,7 @@ - Sign in with Google + diff --git a/src/components/SidebarComponents/SideBar.vue b/src/components/SidebarComponents/SideBar.vue index 37fef6c..9459e65 100644 --- a/src/components/SidebarComponents/SideBar.vue +++ b/src/components/SidebarComponents/SideBar.vue @@ -25,11 +25,11 @@ export default { name: 'SideBar', setup() { const routes = [ - { path: '/Dashboard', label: 'Dashboard' }, + { path: '/', label: 'Dashboard' }, { path: '/Lists', label: 'Lists' }, { path: '/Learn', label: 'Learn' }, { path: '/Type', label: 'Type' }, - { path: '/', label: 'About Me' }, + { path: '/About-me', label: 'About Me' }, { path: '/Settings', label: 'Settings' }, { path: '/Login', label: 'Login' }, ]; diff --git a/src/router/index.js b/src/router/index.js index c23abd9..1026f7e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,7 +10,7 @@ import SignUp from '../views/SignUp.vue' const routes = [ { - path: '/dashboard', + path: '/', name: 'dashboard', component: DashboardWorld }, @@ -25,7 +25,7 @@ const routes = [ component: SettingsWorld }, { - path: '/', + path: '/About-me', name: 'About Me', component: AboutMe }, diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 5a01377..734f974 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -5,16 +5,16 @@
Previous Day
Next Day
-
+
- +
+
Insert Daily Calendar Here
-
Insert Daily Calendar Here
@@ -40,7 +40,7 @@ export default { grid-row: 1; display: flex; flex-direction: row; - flex-grow: 1; + height:10vh; } .button-container { @@ -63,22 +63,9 @@ export default { .page-container { display: flex; - padding-top: 10px; flex-direction: row; padding-left: 10px; -} - -.listContainer { - border-radius: 10px; - border-color: white; - border-width: 1px; - border-style: solid; - min-height: 400px; - max-height: 600px; - min-width: 300px; - max-width: 400px; - padding: 5px 10px; - margin: 10px 10px 20px 10px; + height:90vh; } .innerListContainer {} @@ -92,7 +79,6 @@ export default { } .calendarTemp { - grid-row: 2; border-radius: 10px; border-color: white; border-style: solid; diff --git a/src/views/Learn.vue b/src/views/Learn.vue index 10e6de1..b7dc561 100644 --- a/src/views/Learn.vue +++ b/src/views/Learn.vue @@ -1,7 +1,7 @@