Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
โ€ฆri-FE-01 into feature/#6
  • Loading branch information
Minn-Choi committed Dec 10, 2024
2 parents 8ac6069 + 7dab9b0 commit 1c1c7fd
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 6 deletions.
9 changes: 9 additions & 0 deletions src/views/akopolio/Edit/akopolioEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<div class="container">
<!-- ํ—ค๋” -->
<MainHeader />
<div class="back-button" @click="goBack">
<img src="@/assets/images/back.svg" alt="Back" class="arrow-left-icon" />
</div>

<!-- ํ™œ๋™๋ช…๊ณผ ํ™œ๋™์ผ -->
<div class="activity-info">
Expand Down Expand Up @@ -354,4 +357,10 @@ input[type="file"] {
height: auto;
}
.arrow-left-icon {
cursor: pointer;
margin-bottom: 20px;
}
</style>
5 changes: 5 additions & 0 deletions src/views/akopolio/Edit/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export default {
});
const isDropdownOpen = ref(false);

const goBack = () => {
window.history.back(); // ๋’ค๋กœ ๊ฐ€๊ธฐ
};

const toggleDropdown = () => {
isDropdownOpen.value = !isDropdownOpen.value;
};
Expand Down Expand Up @@ -349,6 +353,7 @@ export default {
star,
pmi,
isDropdownOpen,
goBack,
toggleDropdown,
toggleTag,
autoResize,
Expand Down
9 changes: 8 additions & 1 deletion src/views/akopolio/create/akopolioCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="container">
<!-- Header -->
<MainHeader />

<div class="back-button" @click="goBack">
<img src="@/assets/images/back.svg" alt="Back" class="arrow-left-icon" />
</div>
<!-- Activity Name and Date -->
<div class="activity-info">
<div class="activity-name-container">
Expand Down Expand Up @@ -391,4 +393,9 @@ input[type="file"] {
height: auto;
}
.arrow-left-icon {
cursor: pointer;
margin-bottom: 20px;
}
</style>
5 changes: 5 additions & 0 deletions src/views/akopolio/create/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default {
}
},
methods: {

async fetchUserData() {
try {
const response = await fetch(
Expand Down Expand Up @@ -81,6 +82,10 @@ export default {
}
},

goBack() {
window.history.back(); // ์ด์ „ ํŽ˜์ด์ง€๋กœ ๋Œ์•„๊ฐ€๊ธฐ
},

toggleDropdown() {
this.isDropdownOpen = !this.isDropdownOpen;
},
Expand Down
7 changes: 7 additions & 0 deletions src/views/akopolio/detail/akopolioDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<MainHeader />
<div class="detail-header">
<div class="header-content">
<div class="back-button" @click="goBack">
<img src="@/assets/images/back.svg" alt="Back" class="arrow-left-icon" />
</div>
<div class="action-buttons">
<div class="edit-button" @click="editPortfolio">์ˆ˜์ •ํ•˜๊ธฐ</div>
<div class="delete-button" @click="handleDeletePortfolio">
Expand Down Expand Up @@ -280,4 +283,8 @@ p {
vertical-align: middle;
}
.arrow-left-icon {
cursor: pointer;
}
</style>
5 changes: 4 additions & 1 deletion src/views/akopolio/detail/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export default {
const router = useRouter(); // router ์‚ฌ์šฉ
const portfolioId = route.params.id; // route์—์„œ portfolioId ๊ฐ€์ ธ์˜ค๊ธฐ


const goBack = () => {
window.history.back(); // ๋’ค๋กœ ๊ฐ€๊ธฐ
};
console.log("Portfolio ID:", portfolioId);

// ํฌํŠธํด๋ฆฌ์˜ค ๋ฐ์ดํ„ฐ ๊ฐ€์ ธ์˜ค๊ธฐ
Expand Down Expand Up @@ -140,6 +142,7 @@ export default {
portfolio,
images,
nickname,
goBack,
editPortfolio,
handleDeletePortfolio,
};
Expand Down
1 change: 1 addition & 0 deletions src/views/akopolio/main/akopolioMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ input {
font-weight: 300;
justify-content: space-between;
font-family: sans-serif;
max-width: 355px;
}
.tag-container div {
Expand Down
8 changes: 4 additions & 4 deletions src/views/akopolio/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export default {
itemsPerPage: 7,
selectedTags: [],
tags: [
'์ „๊ณต', '๊ต์–‘', '๊ต๋‚ด๋™์•„๋ฆฌ', '๊ต์™ธ๋™์•„๋ฆฌ', 'ํ•™ํšŒ', '๋ด‰์‚ฌํ™œ๋™',
'์ธํ„ด', '์•„๋ฅด๋ฐ”์ดํŠธ', '๋Œ€์™ธํ™œ๋™', '์„œํฌํ„ฐ์ฆˆ', '๊ธฐ์ž๋‹จ', '๊ธฐํƒ€',
'๊ฐ•์—ฐ/ํ–‰์‚ฌ', '์Šคํ„ฐ๋””', '๋ถ€ํŠธ์บ ํ”„', 'ํ”„๋กœ์ ํŠธ', '์—ฐ๊ตฌ',
'ํ•™์ƒํšŒ',
'๊ต๋‚ด๋™์•„๋ฆฌ', '์ „๊ณต', '๊ต์–‘', '๊ต์™ธ๋™์•„๋ฆฌ', 'ํ•™ํšŒ', '๋ด‰์‚ฌํ™œ๋™',
'์ธํ„ด', '์„œํฌํ„ฐ์ฆˆ', '๊ธฐ์ž๋‹จ', '๋ถ€ํŠธ์บ ํ”„', '์•„๋ฅด๋ฐ”์ดํŠธ', 'ํ•™์ƒํšŒ',
'๋Œ€์™ธํ™œ๋™', '์Šคํ„ฐ๋””', '๊ฐ•์—ฐ/ํ–‰์‚ฌ', '๊ธฐํƒ€', '์—ฐ๊ตฌ', 'ํ”„๋กœ์ ํŠธ'

],
isDropdownOpen: false,
portfolioList: [], // ์ดˆ๊ธฐ ํฌํŠธํด๋ฆฌ์˜ค๋Š” ๋นˆ ๋ฐฐ์—ด๋กœ ์„ค์ •
Expand Down

0 comments on commit 1c1c7fd

Please sign in to comment.