Skip to content

Commit

Permalink
Merge pull request #59 from yebin-jeong/main
Browse files Browse the repository at this point in the history
[Style] #26 - ์ „๋ฐ˜์  ์Šคํƒ€์ผ ์ˆ˜์ •
  • Loading branch information
yebin-jeong authored Nov 27, 2024
2 parents 20c11fb + fd994f4 commit 53f5730
Show file tree
Hide file tree
Showing 8 changed files with 424 additions and 279 deletions.
3 changes: 3 additions & 0 deletions src/assets/images/trash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 80 additions & 56 deletions src/views/akopolio/Edit/akopolioEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,56 +64,41 @@
</div>
</div>






<div class="image-upload-container">
<h2>ํ™œ๋™ ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ</h2>
<h3>์ตœ๋Œ€ 5์žฅ๊นŒ์ง€ ๊ฐ€๋Šฅํ•ด์š”!&nbsp;&nbsp;<span>{{ images.length }} / 5</span></h3>
<label for="file-upload" class="custom-file-upload">


<i class="fas fa-upload"></i> ํŒŒ์ผ ์„ ํƒ
<i class="fas fa-upload"></i> ํŒŒ์ผ ์„ ํƒ
</label>
<input type="file" id="file-upload" multiple @change="handleFileChange" accept="image/*" />

<div class="image-preview-container" v-if="images.length">
<div class="image-card" v-for="(image, index) in images" :key="index">
<div class="image-preview-card">
<img :src="image.previewUrl" :alt="image.name" class="image-preview" />
<img :src="image.previewUrl" :alt="`Uploaded Image ${index + 1}`" class="image-preview" />
<button @click="removeImage(index)" class="delete-image-btn">X</button>
</div>
</div>
</div>
</div>

</div>










<!-- ์ €์žฅ ๋ฒ„ํŠผ -->
<button @click="saveData" class="save-button">์ €์žฅํ•˜๊ธฐ</button>
<MainFooter />
</div>
<div class="button-container">
<button @click="saveData" class="save-button">์ €์žฅํ•˜๊ธฐ</button>
</div>
<MainFooter />
</div>
</template>

<script src="./edit.js"></script>

<style scoped>
@import '../../../assets/fonts/fonts.css';
.container {
width: 395px;
max-width: 500px;
margin: 4rem auto;
padding: 20px;
background-color: #ffe8d1;
background-color: #fae8da;
min-height: calc(100vh - 120px); /* ํ—ค๋”์™€ ํ‘ธํ„ฐ๋ฅผ ๊ณ ๋ คํ•œ ํŽ˜์ด์ง€ ๋†’์ด ์กฐ์ • */
}
Expand All @@ -131,6 +116,7 @@
.activity-name-container {
margin-bottom: 20px;
}
Expand All @@ -140,7 +126,7 @@ textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
background-color: #fff3e6;
background-color: white;
border-radius: 5px;
resize: none;
font-size: 13px;
Expand All @@ -149,17 +135,15 @@ textarea {
.image-upload-container,
.star-box,
.pmi-box {
background-color: #fff3e6;
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.activity-info{
background-color: #fff3e6;
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}
Expand All @@ -178,19 +162,18 @@ button {
border-radius: 40px;
background-color: white;
transition: background-color 0.3s;
border: 1px solid #eec092;
}
button.active {
background-color: #F6B87A;
color: white;
background-color: #f6b87a;
}
/* ๋ถ„์•ผ ์„ค์ • ๋ฐ•์Šค */
.category-box {
background-color: #fff3e6;
background-color: white;
padding: 15px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.category-label {
Expand All @@ -201,41 +184,81 @@ button.active {
.tag-badge {
display: inline-block;
margin-left: 10px;
background-color: #F6B87A;
color: white;
background-color: #f6b87a;
color: black;
padding: 5px 10px;
border-radius: 20px;
font-size: 13px;
}
/* ์ €์žฅ ๋ฒ„ํŠผ */
.button-container {
display: flex;
justify-content: center;
}
.save-button {
width: 100%;
padding: 15px;
width: 160px;
margin-top: 20px;
padding-left: 16px;
padding-right: 16px;
padding-top: 8px;
padding-bottom: 8px;
background-color: #F6B87A;
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
cursor: pointer;
;
color: black;
font-size: 0.875rem;
font-weight: 500;
border-radius: 9999px;
transition: background-color 0.3s ease;
margin-bottom: 20px;
}
.save-button:hover {
background-color: #f4c08c;
background-color: #e5a769;
}
h3 {
font-size: 15px;
color: #FF7F00;
.experience-container h3,
.pmi-container h3 {
font-size: 15px;
color: #ff7f00;
margin-bottom: 10px;
margin-top: 10px;
white-space: nowrap;
padding: 0;
}
h3{
font-size: 15px;
color: #ff7f00;
margin: 0;
white-space: nowrap;
padding: 0;
}
h2 {
font-size: 16px;
color: #ff7f00;
margin-bottom: 10px;
padding: 0;
}
.category-box h2{
margin: 0;
font-size: 15px;
}
p {
margin:0;
font-size: 14px;
word-break: break-word;
padding: 0;
}
.experience-container p,
.pmi-container p {
margin-bottom: 15px;
}
label {
font-size: 15px;
}
Expand Down Expand Up @@ -285,18 +308,19 @@ input[type="file"] {
/* ์ปค์Šคํ…€ ๋ฒ„ํŠผ ์Šคํƒ€์ผ */
.custom-file-upload {
background-color: white; /* ๋ฐฐ๊ฒฝ์ƒ‰ */
color: #f3ab62; /* ๊ธ€์ž์ƒ‰ */
padding: 10px 128px; /* ๋ฒ„ํŠผ ํฌ๊ธฐ */
font-size: 13px; /* ๊ธ€์ž ํฌ๊ธฐ */
background-color: #faf5f0;
color: #f3ab62;
padding: 10px 128px;
font-size: 13px;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
transition: background-color 0.3s ease;
margin-bottom: 10px;
transition: background-color 0.3s ease; /* ๋งˆ์šฐ์Šค ์˜ค๋ฒ„ ์‹œ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ ์ƒ‰์ƒ ๋ณ€ํ™” */
}
.custom-file-upload:hover {
background-color: #f6e3d2; /* ๋งˆ์šฐ์Šค๋ฅผ ์˜ฌ๋ ธ์„ ๋•Œ ๋ฐฐ๊ฒฝ์ƒ‰ ๋ณ€๊ฒฝ */
background-color: #f5eadf;
}
Expand Down
Loading

0 comments on commit 53f5730

Please sign in to comment.