File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -346,6 +346,7 @@ export default function Home() {
346346 const minecraftSelected = isMinecraftId ( selectedTheme ) ;
347347 const minecraftGroup = minecraftThemes . find ( ( t ) => t . id === MINECRAFT_DEFAULT ) ?? minecraftThemes [ 0 ] ;
348348
349+
349350 const iphoneGuide = (
350351 < div className = "space-y-3" >
351352 < StepCard num = "1" title = "Generate" >
@@ -754,6 +755,30 @@ export default function Home() {
754755 < p className = "text-red-400/80 text-[13px] mt-2.5 font-medium text-center" > { error } </ p >
755756 ) }
756757 </ div >
758+
759+ { /* Generate / Regenerate — below the theme picker */ }
760+ < div className = "mt-8" >
761+ < button
762+ id = "generate-btn"
763+ onClick = { generate }
764+ disabled = { loading }
765+ className = "w-full py-3.5 bg-white text-black text-[14px] font-bold rounded-lg hover:bg-white/90 transition-colors disabled:opacity-30 disabled:cursor-not-allowed flex items-center justify-center gap-2"
766+ >
767+ { loading ? (
768+ < Loader2 className = "size-4 animate-spin" />
769+ ) : (
770+ `${ hasGenerated ? "Regenerate" : "Generate" } →`
771+ ) }
772+ </ button >
773+ { isDirty && ! loading && (
774+ < p className = "text-amber-300/70 text-[12px] mt-2.5 text-center font-medium" >
775+ Settings changed — regenerate to update your wallpaper.
776+ </ p >
777+ ) }
778+ { error && (
779+ < p className = "text-red-400/80 text-[13px] mt-2.5 font-medium text-center" > { error } </ p >
780+ ) }
781+ </ div >
757782 </ div >
758783
759784 { /* Export & Automate */ }
Original file line number Diff line number Diff line change 11import type { MinecraftVariant } from "./lib/minecraft" ;
22
3+
34export interface Theme {
45 name : string ;
56 background : string ;
You can’t perform that action at this time.
0 commit comments