From 33c9937547e31a104b484eca61602b319f981756 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sat, 5 Sep 2026 14:15:09 +0200 Subject: [PATCH] change List view UI disposition --- .../WorldList/Components/EmptyWorldView.swift | 40 ------------------- .../Components/WorldListHeaderView.swift | 25 ------------ 2 files changed, 65 deletions(-) delete mode 100644 WorldBuilder/Views/WorldList/Components/EmptyWorldView.swift delete mode 100644 WorldBuilder/Views/WorldList/Components/WorldListHeaderView.swift diff --git a/WorldBuilder/Views/WorldList/Components/EmptyWorldView.swift b/WorldBuilder/Views/WorldList/Components/EmptyWorldView.swift deleted file mode 100644 index e88fc19..0000000 --- a/WorldBuilder/Views/WorldList/Components/EmptyWorldView.swift +++ /dev/null @@ -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) - } -} - diff --git a/WorldBuilder/Views/WorldList/Components/WorldListHeaderView.swift b/WorldBuilder/Views/WorldList/Components/WorldListHeaderView.swift deleted file mode 100644 index 5b7c067..0000000 --- a/WorldBuilder/Views/WorldList/Components/WorldListHeaderView.swift +++ /dev/null @@ -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) - } - } -}