-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 출석 현황 상태 카드 추가
- Loading branch information
Showing
13 changed files
with
242 additions
and
5 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
16 changes: 16 additions & 0 deletions
16
...ources/ImageAssets.xcassets/Attandance/Abesent_icons.imageset/Abesent_icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
...signSystem/Resources/ImageAssets.xcassets/Attandance/Abesent_icons.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Abesent_icons.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ance/Projects/Shared/DesignSystem/Resources/ImageAssets.xcassets/Attandance/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
.../DesignSystem/Resources/ImageAssets.xcassets/Attandance/Late_icons.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Late_icons.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...em/Resources/ImageAssets.xcassets/Attandance/Late_icons.imageset/Late_icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
...signSystem/Resources/ImageAssets.xcassets/Attandance/Present_icons.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Present_icons.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ources/ImageAssets.xcassets/Attandance/Present_icons.imageset/Present_icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
77 changes: 77 additions & 0 deletions
77
Attendance/Projects/Shared/DesignSystem/Sources/UI/Card/AttendanceCheckStatusCard.swift
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,77 @@ | ||
// | ||
// AttendanceCheckStatusCard.swift | ||
// DesignSystem | ||
// | ||
// Created by Wonji Suh on 1/27/25. | ||
// | ||
|
||
import SwiftUI | ||
import Model | ||
|
||
public struct AttendanceCheckStatusCard: View { | ||
private let attandanceType: AttendanceType | ||
private let selectPart: SelectPart | ||
private let selectTeam: SelectTeam | ||
private let name: String | ||
|
||
public init( | ||
attandanceType: AttendanceType, | ||
selectPart: SelectPart, | ||
selectTeam: SelectTeam, | ||
name: String | ||
) { | ||
self.attandanceType = attandanceType | ||
self.selectPart = selectPart | ||
self.selectTeam = selectTeam | ||
self.name = name | ||
} | ||
|
||
public var body: some View { | ||
VStack { | ||
VStack(spacing: .zero) { | ||
Spacer() | ||
.frame(height: 16) | ||
|
||
HStack { | ||
VStack(alignment: .leading, spacing: .zero) { | ||
HStack { | ||
Text(name) | ||
.pretendardCustomFont(textStyle: .title3NormalBold) | ||
.foregroundStyle(.staticWhite) | ||
Spacer() | ||
} | ||
|
||
Text("\(selectTeam.attandanceCardDesc) / \(selectPart.attendanceListDesc) ") | ||
.pretendardCustomFont(textStyle: .body2NormalBold) | ||
.foregroundStyle(.staticWhite) | ||
} | ||
|
||
Spacer() | ||
|
||
HStack(spacing: .zero) { | ||
Text(attandanceType.koreanDesc) | ||
.pretendardCustomFont(textStyle: .body2NormalMedium) | ||
.foregroundStyle(.staticWhite) | ||
|
||
Spacer() | ||
.frame(width: 12) | ||
|
||
Image(assetName: attandanceType.imageDesc) | ||
.resizable() | ||
.scaledToFit() | ||
.frame(width: 24, height: 24) | ||
} | ||
|
||
} | ||
|
||
|
||
Spacer() | ||
.frame(height: 16) | ||
} | ||
.padding(.horizontal, 20) | ||
} | ||
.background(.borderInverse) | ||
.frame(height: 84) | ||
.cornerRadius(15) | ||
} | ||
} |