diff --git a/pinry-spa/src/assets/pinry-placeholder.jpg b/pinry-spa/src/assets/pinry-placeholder.jpg
new file mode 100755
index 0000000..3915616
Binary files /dev/null and b/pinry-spa/src/assets/pinry-placeholder.jpg differ
diff --git a/pinry-spa/src/components/Boards.vue b/pinry-spa/src/components/Boards.vue
new file mode 100644
index 0000000..4a57324
--- /dev/null
+++ b/pinry-spa/src/components/Boards.vue
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pinry-spa/src/components/PHeader.vue b/pinry-spa/src/components/PHeader.vue
index 69aceec..2212618 100644
--- a/pinry-spa/src/components/PHeader.vue
+++ b/pinry-spa/src/components/PHeader.vue
@@ -31,7 +31,7 @@
Boards
diff --git a/pinry-spa/src/components/api.js b/pinry-spa/src/components/api.js
index 290f3bf..159f3cb 100644
--- a/pinry-spa/src/components/api.js
+++ b/pinry-spa/src/components/api.js
@@ -55,6 +55,11 @@ function fetchPinsForBoard(boardId) {
);
}
+function fetchBoardForUser(username) {
+ const url = `${API_PREFIX}boards/?submitter__username=${username}`;
+ return axios.get(url);
+}
+
const User = {
storageKey: 'pinry.user',
logIn(username, password) {
@@ -128,5 +133,6 @@ export default {
fetchPin,
fetchPins,
fetchPinsForBoard,
+ fetchBoardForUser,
User,
};
diff --git a/pinry-spa/src/components/utils/fonts.scss b/pinry-spa/src/components/utils/fonts.scss
index 8ff7c1c..fee673c 100644
--- a/pinry-spa/src/components/utils/fonts.scss
+++ b/pinry-spa/src/components/utils/fonts.scss
@@ -9,6 +9,7 @@
@mixin secondary-font-color-in-dark {
color: #878787;
}
+$main-title-font-color: rgb(51, 51, 51);
// for pins component
@mixin pin-detail-font-size{
diff --git a/pinry-spa/src/router/index.js b/pinry-spa/src/router/index.js
index b28ce79..f4d8a1b 100644
--- a/pinry-spa/src/router/index.js
+++ b/pinry-spa/src/router/index.js
@@ -5,6 +5,7 @@ import Pins4Tag from '../views/Pins4Tag.vue';
import Pins4User from '../views/Pins4User.vue';
import Pins4Board from '../views/Pins4Board.vue';
import Pins4Id from '../views/Pins4Id.vue';
+import Boards4User from '../views/Boards4User.vue';
Vue.use(VueRouter);
@@ -34,6 +35,11 @@ const routes = [
name: 'pin',
component: Pins4Id,
},
+ {
+ path: '/boards/users/:username',
+ name: 'boards4user',
+ component: Boards4User,
+ },
];
const router = new VueRouter({
diff --git a/pinry-spa/src/views/Boards4User.vue b/pinry-spa/src/views/Boards4User.vue
new file mode 100644
index 0000000..2909dac
--- /dev/null
+++ b/pinry-spa/src/views/Boards4User.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+