-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat/#171 홈 화면 리뉴얼
- Loading branch information
Showing
76 changed files
with
2,361 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="27dp" | ||
android:height="24dp" | ||
android:viewportWidth="27" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M8.75,9C8.75,8.586 9.086,8.25 9.5,8.25H17.5C17.914,8.25 18.25,8.586 18.25,9C18.25,9.414 17.914,9.75 17.5,9.75H9.5C9.086,9.75 8.75,9.414 8.75,9ZM8.75,13C8.75,12.586 9.086,12.25 9.5,12.25H14.5C14.914,12.25 15.25,12.586 15.25,13C15.25,13.414 14.914,13.75 14.5,13.75H9.5C9.086,13.75 8.75,13.414 8.75,13Z" | ||
android:fillColor="#A7A7A7" | ||
android:fillType="evenOdd"/> | ||
<path | ||
android:pathData="M8.5,2.65C6.242,2.65 4.575,4.433 4.575,6.428V14.323C4.575,16.318 6.242,18.101 8.5,18.101H9.575C10.718,18.101 11.796,18.658 12.491,19.609L13.5,20.987L14.509,19.609C15.204,18.658 16.282,18.101 17.425,18.101H18.5C20.758,18.101 22.425,16.318 22.425,14.323V6.428C22.425,4.433 20.758,2.65 18.5,2.65H8.5ZM3,6.428C3,3.43 5.462,1 8.5,1H18.5C21.538,1 24,3.43 24,6.428V14.323C24,17.321 21.538,19.751 18.5,19.751H17.425C16.772,19.751 16.156,20.069 15.759,20.613L14.311,22.591C13.911,23.136 13.089,23.136 12.689,22.591L11.241,20.613C10.844,20.069 10.228,19.751 9.575,19.751H8.5C5.462,19.751 3,17.321 3,14.323V6.428Z" | ||
android:fillColor="#A7A7A7" | ||
android:fillType="evenOdd"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="27dp" | ||
android:height="24dp" | ||
android:viewportWidth="27" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M15.129,20.472L14.587,21.388C14.104,22.204 12.897,22.204 12.413,21.388L11.871,20.472C11.451,19.762 11.241,19.406 10.903,19.21C10.565,19.013 10.14,19.006 9.29,18.991C8.034,18.97 7.247,18.893 6.587,18.619C5.98,18.368 5.429,17.999 4.965,17.535C4.501,17.071 4.132,16.52 3.881,15.913C3.5,14.995 3.5,13.83 3.5,11.5V10.5C3.5,7.227 3.5,5.59 4.237,4.388C4.649,3.715 5.214,3.149 5.887,2.737C7.09,2 8.728,2 12,2H15C18.273,2 19.91,2 21.113,2.737C21.785,3.149 22.351,3.715 22.763,4.387C23.5,5.59 23.5,7.228 23.5,10.5V11.5C23.5,13.83 23.5,14.995 23.12,15.913C22.869,16.52 22.5,17.071 22.036,17.535C21.571,18 21.02,18.368 20.413,18.619C19.753,18.893 18.966,18.969 17.71,18.991C16.86,19.006 16.435,19.013 16.097,19.21C15.759,19.406 15.549,19.761 15.129,20.472Z" | ||
android:fillColor="#000000" | ||
android:fillType="evenOdd"/> | ||
<path | ||
android:pathData="M9.5,9H17.5M9.5,13H14.5" | ||
android:strokeWidth="1.5" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#ffffff" | ||
android:strokeLineCap="round"/> | ||
</vector> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<resources> | ||
<string name="app_name">청하</string> | ||
<string name="home">홈</string> | ||
<string name="post">게시판</string> | ||
<string name="youth_policy">청년정책</string> | ||
<string name="post">커뮤니티</string> | ||
<string name="my_page">마이페이지</string> | ||
<string name="register">등록</string> | ||
</resources> |
10 changes: 10 additions & 0 deletions
10
core/data/src/main/kotlin/com/withpeace/withpeace/core/data/mapper/RecentPostMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.withpeace.withpeace.core.data.mapper | ||
|
||
import com.withpeace.withpeace.core.domain.model.post.RecentPost | ||
import com.withpeace.withpeace.core.network.di.response.post.RecentPostResponse | ||
|
||
fun RecentPostResponse.toDomain(): RecentPost { | ||
return RecentPost( | ||
id = postId, title = title, type = type.toDomain(), | ||
) | ||
} |
17 changes: 17 additions & 0 deletions
17
...rc/main/kotlin/com/withpeace/withpeace/core/data/mapper/youthpolicy/PolicyFilterMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.withpeace.withpeace.core.data.mapper.youthpolicy | ||
|
||
import com.withpeace.withpeace.core.domain.model.policy.PolicyClassification | ||
import com.withpeace.withpeace.core.domain.model.policy.PolicyFilters | ||
import com.withpeace.withpeace.core.domain.model.policy.PolicyRegion | ||
import com.withpeace.withpeace.core.network.di.response.policy.UserPolicyFilterResponse | ||
|
||
fun UserPolicyFilterResponse.toDomain(): PolicyFilters { | ||
return PolicyFilters( | ||
regions = region.map { name -> | ||
PolicyRegion.entries.find { it.name == name } ?: PolicyRegion.기타 | ||
}, | ||
classifications = classification.map { name -> | ||
PolicyClassification.entries.find { it.name == name } ?: PolicyClassification.ETC | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
core/domain/src/main/java/com/withpeace/withpeace/core/domain/model/post/RecentPost.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.withpeace.withpeace.core.domain.model.post | ||
|
||
data class RecentPost( | ||
val id: Long, | ||
val title: String, | ||
val type: PostTopic, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.