Skip to content

Commit

Permalink
fix(thumbnail): no-image 비율 맞추기
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauto committed Oct 27, 2021
1 parent 7716374 commit e2a5476
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 31 deletions.
5 changes: 5 additions & 0 deletions assets/img/no-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/img/no_image.png
Binary file not shown.
6 changes: 5 additions & 1 deletion components/project/project/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ProjectCard = defineComponent({
},
computed: {
thumbnail() {
return this.project.thumbnail || require("~/assets/img/no_image.png");
return this.project.thumbnail || require("~/assets/img/no-image.svg");
},
},
methods: {
Expand Down Expand Up @@ -72,6 +72,10 @@ a {
text-decoration: none;
}
.thumbnail {
object-fit: cover;
}
@include d-c3 {
.thumbnail {
width: 100%;
Expand Down
58 changes: 28 additions & 30 deletions components/project/project/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default defineComponent({
return this.project.members?.join(" ") || "";
},
thumbnail() {
return this.project.thumbnail || require("~/assets/img/no_image.png");
return this.project.thumbnail || require("~/assets/img/no-image.svg");
},
},
methods: {
Expand Down Expand Up @@ -119,10 +119,11 @@ export default defineComponent({
}
@include tablet {
.leading {
display: block;
display: none;
}
.trailing {
display: none;
margin-left: auto;
display: block;
}
}
@include desktop {
Expand Down Expand Up @@ -406,89 +407,87 @@ export default defineComponent({
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
overflow-y: auto;
}
.project-detail-container {
height: 100%;
border-radius: 16px;
position: relative;
width: 528px;
display: flex;
flex-direction: column;
background-color: white;
@include desktop {
.thumbnail {
width: 100%;
max-height: 445px;
}
}
margin: 30px auto;
.contents {
padding: 24px;
display: flex;
flex-direction: column;
grid-gap: 16px;
overflow-y: auto;
}
.information {
display: flex;
flex-direction: column;
grid-gap: 4px;
grid-gap: 8px;
}
.name {
font-style: normal;
font-weight: bold;
font-size: 24px;
line-height: 36px;
font-size: 32px;
line-height: 48px;
letter-spacing: -0.02em;
color: #000000;
}
.th-year {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
font-size: 14px;
line-height: 21px;
letter-spacing: -0.02em;
color: #777777;
}
.team-members {
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 21px;
font-size: 18px;
line-height: 27px;
letter-spacing: -0.02em;
color: #000000;
}
.thumbnail {
width: 100%;
img {
width: 100%;
max-height: 445px;
border-radius: 8px;
width: 480px;
height: 270px;
border-radius: 16px;
}
}
.description {
white-space: pre-wrap;
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 21px;
font-size: 18px;
line-height: 27px;
letter-spacing: -0.02em;
color: #000000;
}
.ppt {
display: flex;
width: 130px;
width: 172px;
cursor: pointer;
padding: 16px 0;
p {
font-style: normal;
font-weight: bold;
font-size: 16px;
line-height: 24px;
font-size: 24px;
line-height: 36px;
letter-spacing: -0.02em;
color: #000000;
Expand All @@ -504,8 +503,7 @@ export default defineComponent({
text-decoration: none;
}
.links {
margin: 0 24px 24px 24px;
margin: 0 24px 24px;
display: flex;
flex-direction: row;
justify-content: space-between;
Expand Down

0 comments on commit e2a5476

Please sign in to comment.