From f82dfe8b3e1823ea0717c54a78ef7b40a42f14c2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 16 Jan 2025 20:45:17 -0700 Subject: [PATCH] Add story components --- .../assets/js/components/StoryCompose.vue | 469 +++++--- .../js/components/StoryTimelineComponent.vue | 17 +- .../assets/js/components/StoryViewer.vue | 1026 +++++++++++++++-- 3 files changed, 1278 insertions(+), 234 deletions(-) diff --git a/resources/assets/js/components/StoryCompose.vue b/resources/assets/js/components/StoryCompose.vue index ba6a35f70..a23427ca6 100644 --- a/resources/assets/js/components/StoryCompose.vue +++ b/resources/assets/js/components/StoryCompose.vue @@ -1,154 +1,167 @@ - - + + + diff --git a/resources/assets/js/components/StoryTimelineComponent.vue b/resources/assets/js/components/StoryTimelineComponent.vue index 659939505..721b8f336 100644 --- a/resources/assets/js/components/StoryTimelineComponent.vue +++ b/resources/assets/js/components/StoryTimelineComponent.vue @@ -11,7 +11,8 @@ v-for="(story, index) in stories" class="px-3 pt-3 text-center cursor-pointer" :class="{ seen: story.seen }" - @click="showStory(index)"> + @click="showStory(index)" + > {{story.username}} @@ -118,6 +121,18 @@ background: #fff; padding: 3px; } + + &.new { + background: none; + width: 70px; + height: 70px; + border: dashed 4px #d92d77; + + img { + width: 56px; + height: 56px; + } + } } .scrolly { diff --git a/resources/assets/js/components/StoryViewer.vue b/resources/assets/js/components/StoryViewer.vue index 9c7144d75..908e358f1 100644 --- a/resources/assets/js/components/StoryViewer.vue +++ b/resources/assets/js/components/StoryViewer.vue @@ -1,129 +1,987 @@ - \ No newline at end of file +