Skip to content

Commit

Permalink
Add home ico (#12)
Browse files Browse the repository at this point in the history
* chore: add logo

* feat: add homepage logo

* fix: list indicator position correction
  • Loading branch information
Xanonymous-GitHub authored Jun 25, 2022
1 parent 9cfe393 commit 62ba1be
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
21 changes: 21 additions & 0 deletions Resource/Assets.xcassets/Logo.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "pastime.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions View/Pages/HomePage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ struct HomePage: View {
ZStack {
Circle().strokeBorder(.clear, lineWidth: 0)
VStack {
Image("Logo")
.resizable()
.scaledToFit()
.padding()

Text(Constants.appTitle)
.font(.system(size: g.size.height > g.size.width ? g.size.width * 0.1 : g.size.height * 0.1))
.fontWeight(.black)

Button {
_pilot.push(.GameBoardPage)
} label: {
Expand All @@ -31,7 +36,7 @@ struct HomePage: View {
.buttonStyle(ActivityButtonStyle())
.frame(minWidth: 0, maxWidth: .infinity)
.padding()

Button {
_pilot.push(.ScoreboardPage)
} label: {
Expand Down
7 changes: 3 additions & 4 deletions View/Pages/SettingSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ struct SettingSheet: View {
HStack {
Image(systemName: "info.circle")
.foregroundColor(.blue)
Text("About")
.overlay(NavigationLink(destination: TermsOfService(), label: {
EmptyView()
}))
NavigationLink("About") {
TermsOfService()
}
}

HStack {
Expand Down

0 comments on commit 62ba1be

Please sign in to comment.