change List view UI disposition
This commit is contained in:
1 parent
ae6197d855
commit
33c9937547
2 files changed
-65
No files matched your search
@@ -1,40 +0,0 @@
|
||||
//
|
||||
// EmptyWorldView.swift
|
||||
// WorldBuilder
|
||||
//
|
||||
// Created by Giovanni Josserand on 02/09/2026.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct EmptyWorldView : View {
|
||||
var body : some View {
|
||||
VStack(spacing: 20) {
|
||||
ZStack {
|
||||
Circle()
|
||||
.fill(.indigo.opacity(0.12))
|
||||
.frame(width: 100, height: 100)
|
||||
|
||||
Image(systemName: "globe.europe.africa")
|
||||
.font(.system(size: 42))
|
||||
.foregroundStyle(.indigo)
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("Ton univers commence ici.")
|
||||
.font(.title3.bold())
|
||||
Text("Crée ton premier monde et commence à construire ton univers.")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
.multilineTextAlignment(.center)
|
||||
}
|
||||
.frame(maxWidth: 300)
|
||||
|
||||
|
||||
CreateWorldButtonView()
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.vertical, 50)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
//
|
||||
// WorldListHeader.swift
|
||||
// WorldBuilder
|
||||
//
|
||||
// Created by Giovanni Josserand on 02/09/2026.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct WorldListHeaderView : View {
|
||||
var worlds : [World]
|
||||
|
||||
var body : some View {
|
||||
VStack (alignment: .leading, spacing: 6){
|
||||
Text("Mes mondes").font(.largeTitle.bold())
|
||||
Text(
|
||||
worlds.isEmpty
|
||||
? "Créer ton premier monde pour commencer ton aventure."
|
||||
: "\(worlds.count) monde\(worlds.count > 1 ? "s" : "")"
|
||||
)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user