소스 검색

add wall post

Ethosa 1 년 전
부모
커밋
d4891ae2fb
3개의 변경된 파일21개의 추가작업 그리고 6개의 파일을 삭제
  1. 15 4
      components/Wall/Post.vue
  2. 1 1
      layouts/default.vue
  3. 5 1
      pages/news.vue

+ 15 - 4
components/Wall/Post.vue

@@ -1,6 +1,15 @@
 <template>
-  <div class="text-foreground">
-
+  <div class="flex flex-col gap-2 text-foreground bg-background-100 rounded-lg overflow-hidden">
+    <img :src="image" :alt="title" class="h-[170px] object-cover object-center" >
+    <span class="px-2 leading-none text-xl font-semibold">
+      {{ title }}
+    </span>
+    <span class="px-2 font-medium">
+      {{ description }}
+    </span>
+    <span class="w-full text-right -mt-2 px-2 pb-2 text-sm font-medium opacity-50">
+      {{ date }}
+    </span>
   </div>
 </template>
 
@@ -8,9 +17,11 @@
 
 const props = withDefaults(
   defineProps<{
-    image: string
+    image?: string,
+    title?: string,
+    description?: string
+    date?: string
   }>(), {
-
   }
 );
 

+ 1 - 1
layouts/default.vue

@@ -1,7 +1,7 @@
 <template>
   <div
     ref="globalWindow"
-    class="text-foreground flex flex-col w-screen h-screen bg-background-100 overflow-y-hidden"
+    class="text-foreground flex flex-col w-screen h-screen bg-background-200 overflow-y-hidden"
   >
     <SideBar />
     <Header />

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 5 - 1
pages/news.vue


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.