diff --git a/components/CoopCard.vue b/components/CoopCard.vue new file mode 100644 index 0000000..8f5389c --- /dev/null +++ b/components/CoopCard.vue @@ -0,0 +1,237 @@ + + + + + diff --git a/components/NavMenu copy.vue b/components/NavMenu copy.vue deleted file mode 100644 index fd624a8..0000000 --- a/components/NavMenu copy.vue +++ /dev/null @@ -1,276 +0,0 @@ - - - - - diff --git a/components/ProductCard.vue b/components/ProductCard.vue new file mode 100644 index 0000000..2fc0964 --- /dev/null +++ b/components/ProductCard.vue @@ -0,0 +1,506 @@ + + + + + diff --git a/components/ProductCardDetails.vue b/components/ProductCardDetails.vue index 8956f92..2970577 100644 --- a/components/ProductCardDetails.vue +++ b/components/ProductCardDetails.vue @@ -110,6 +110,7 @@ - \ No newline at end of file + diff --git a/pages/c/index.vue b/pages/c/index.vue index 9ee4414..12caead 100644 --- a/pages/c/index.vue +++ b/pages/c/index.vue @@ -1,15 +1,192 @@ \ No newline at end of file +.title { + margin-top: 60px; + margin-bottom: 40px; + font-size: $xxl; + color: $color-navy; +} + +.form-container { + display: flex; + justify-content: flex-start; +} + +.coopcard-list { + margin-bottom: 40px; +} + +.pagination { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; +} + +.help { + color: $color-navy; + margin-bottom: 0px; + font-size: $s; +} + +.search-container { + border: none; + border-radius: 5px; + background: $color-light-green; + width: 50%; + height: 32px; + overflow: hidden; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + margin-top: 50px; + margin-bottom: 50px; + + @include mobile { + width: 100%; + } +} + +.search-container img, +input, +select { + padding: 6px 10px; + margin-right: 16px; + background: transparent; + font-size: $xl; + border: none; +} + +.search-icon { + float: right; + height: 90%; +} + +.search-text { + outline: none; + width: 100%; + text-align: center; + color: $color-navy; + font-size: $s; + font-weight: $regular; +} + +::placeholder { + color: $color-navy; + font-size: $s; +} + +select { + --webkit-appearance: auto; +} + diff --git a/stores/auth.ts b/stores/auth.ts index 2d04e03..043935a 100644 --- a/stores/auth.ts +++ b/stores/auth.ts @@ -29,6 +29,7 @@ export const useAuthStore = defineStore('auth', { method: 'POST', body: { email, password } }) + console.log('Login payload:', payload) this.setPayload(payload) }, @@ -41,7 +42,11 @@ export const useAuthStore = defineStore('auth', { Authorization: `Bearer ${this.access}` } }) - this.setUserData(data) + try { + this.setUserData(data) + } catch (error) { + console.error('Error setting user data:', error) + } }, async refresh() {