From 89f12d4287eb01bc093847d7def179423b442910 Mon Sep 17 00:00:00 2001 From: Malorodova Date: Mon, 26 Sep 2022 06:03:27 +0300 Subject: [PATCH] Img preview added --- src/App.vue | 14 +++++- src/components/PostForm.vue | 85 ++++++--------------------------- src/components/PostItem.vue | 14 ++++-- src/components/UI/ImgLoader.vue | 83 ++++++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+), 77 deletions(-) create mode 100644 src/components/UI/ImgLoader.vue diff --git a/src/App.vue b/src/App.vue index 3d0f426..41f4a8c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,7 +33,6 @@ export default { try { const response = await axios.get('https://jsonplaceholder.typicode.com/posts?_limit=10'); this.posts = response.data; - console.log(response) } catch (error) { console.log(error) } @@ -69,4 +68,17 @@ body { min-height: 100vh; } +.btn { + align-self: flex-end; + margin-top: 15px; + background-color: #01579b; //#096683; // #0597c4; + // border: 2px solid #096683; + border-radius: 2px; + border: none; + font-weight: 500; + color: #fff; + cursor: pointer; + + } + diff --git a/src/components/PostForm.vue b/src/components/PostForm.vue index df23089..2f0d36c 100644 --- a/src/components/PostForm.vue +++ b/src/components/PostForm.vue @@ -12,16 +12,8 @@ -
-
- attach_file - Загрузить фото - -
-
- -
-
+ + @@ -29,11 +21,11 @@ + + +