From 4620a79b1773f2bbe9de8c72c2761b50456f6dbe Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 28 Jan 2018 00:29:45 -0800 Subject: [PATCH] first stab at a profile page --- bin/svgs.js | 4 +- routes/_components/AccountProfile.html | 127 +++++++++++++++++++++++++ routes/accounts/[accountId].html | 7 +- templates/2xx.html | 2 + 4 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 routes/_components/AccountProfile.html diff --git a/bin/svgs.js b/bin/svgs.js index 5eb596c..13300fd 100644 --- a/bin/svgs.js +++ b/bin/svgs.js @@ -15,5 +15,7 @@ module.exports = [ {id:'fa-eye-slash', src:'node_modules/font-awesome-svg-png/white/svg/eye-slash.svg', title: 'Hide Sensitive Content'}, {id:'fa-hashtag', src:'node_modules/font-awesome-svg-png/white/svg/hashtag.svg', title: 'Hashtag'}, {id:'fa-lock', src:'node_modules/font-awesome-svg-png/white/svg/lock.svg', title: 'Locked'}, - {id:'fa-envelope', src:'node_modules/font-awesome-svg-png/white/svg/envelope.svg', title: 'Sealed Envelope'} + {id:'fa-envelope', src:'node_modules/font-awesome-svg-png/white/svg/envelope.svg', title: 'Sealed Envelope'}, + {id:'fa-user-times', src:'node_modules/font-awesome-svg-png/white/svg/user-times.svg', title: 'Stop Following'}, + {id:'fa-user-plus', src:'node_modules/font-awesome-svg-png/white/svg/user-plus.svg', title: 'Follow'} ] \ No newline at end of file diff --git a/routes/_components/AccountProfile.html b/routes/_components/AccountProfile.html new file mode 100644 index 0000000..3fd60d9 --- /dev/null +++ b/routes/_components/AccountProfile.html @@ -0,0 +1,127 @@ +
+ + +
+ + \ No newline at end of file diff --git a/routes/accounts/[accountId].html b/routes/accounts/[accountId].html index 6c46807..cc58f77 100644 --- a/routes/accounts/[accountId].html +++ b/routes/accounts/[accountId].html @@ -11,6 +11,9 @@ dynamicIcon="#fa-user" > {{#if $isUserLoggedIn}} + {{#if $currentAccountProfile}} + + {{/if}} {{else}} @@ -30,6 +33,7 @@ import HiddenFromSSR from '../_components/HiddenFromSSR' import DynamicPageBanner from '../_components/DynamicPageBanner.html' import { showAccountProfile } from './_actions/[accountId]' + import AccountProfile from '../_components/AccountProfile.html' export default { oncreate() { @@ -50,7 +54,8 @@ LazyTimeline, FreeTextLayout, HiddenFromSSR, - DynamicPageBanner + DynamicPageBanner, + AccountProfile } } \ No newline at end of file diff --git a/templates/2xx.html b/templates/2xx.html index 8d4fc82..fb59b73 100644 --- a/templates/2xx.html +++ b/templates/2xx.html @@ -81,6 +81,8 @@ body.offline,body.theme-hotpants.offline,body.theme-majesty.offline,body.theme-o Hashtag Locked Sealed Envelope +Stop Following +Follow