-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
21 changed files
with
314 additions
and
303 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
28 changes: 28 additions & 0 deletions
28
HongikYeolgong2/Presentation/Auth/SignUp/Component/DuplicateCheckButton.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,28 @@ | ||
// | ||
// DuplicateCheckButton.swift | ||
// HongikYeolgong2 | ||
// | ||
// Created by 권석기 on 11/15/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct DuplicateCheckButton: View { | ||
let action: () -> Void | ||
let disabled: Bool | ||
|
||
var body: some View { | ||
Button(action: action, label: { | ||
Text("중복확인") | ||
.foregroundStyle(disabled ? Color.gray200 : Color.white) | ||
.frame(maxWidth: 88.adjustToScreenWidth, maxHeight: 48.adjustToScreenHeight) | ||
}) | ||
.background(disabled ? Color.blue400 : Color.blue100) | ||
.disabled(disabled) | ||
.cornerRadius(8) | ||
} | ||
} | ||
|
||
#Preview { | ||
DuplicateCheckButton(action: {}, disabled: false) | ||
} |
46 changes: 46 additions & 0 deletions
46
HongikYeolgong2/Presentation/Auth/SignUp/Component/Form.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,46 @@ | ||
// | ||
// Form.swift | ||
// HongikYeolgong2 | ||
// | ||
// Created by 권석기 on 11/15/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct FormTitle: View { | ||
let title: String | ||
|
||
var body: some View { | ||
Text(title) | ||
.font(.suite(size: 18, weight: .bold)) | ||
.foregroundStyle(.gray100) | ||
.frame( | ||
maxWidth: .infinity, | ||
maxHeight: 52.adjustToScreenHeight, | ||
alignment: .leading | ||
) | ||
.background(Color.black) | ||
} | ||
} | ||
|
||
struct FormLabel: View { | ||
let title: String | ||
|
||
var body: some View { | ||
Text(title) | ||
.font(.pretendard(size: 16, weight: .bold), lineHeight: 26) | ||
.foregroundStyle(.gray200) | ||
} | ||
} | ||
|
||
struct FormDescription: View { | ||
let message: String | ||
let color: Color | ||
|
||
var body: some View { | ||
Text(message) | ||
.font(.pretendard(size: 12, weight: .regular)) | ||
.foregroundStyle(color) | ||
.padding(.top, 4.adjustToScreenHeight) | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
HongikYeolgong2/Presentation/Auth/SignUp/Component/SubmitButton.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,23 @@ | ||
// | ||
// SubmitButton.swift | ||
// HongikYeolgong2 | ||
// | ||
// Created by 권석기 on 11/15/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct SubmitButton: View { | ||
let action: () -> () | ||
let disabled: Bool | ||
|
||
var body: some View { | ||
Button(action: action) { | ||
Image(.submitButtonEnable) | ||
.resizable() | ||
.frame(height: 50.adjustToScreenHeight) | ||
} | ||
.disabled(disabled) | ||
.overlay(disabled ? Color.dark.opacity(0.5) : nil) | ||
} | ||
} |
Oops, something went wrong.