File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ const events = await getEvents();
55---
66
77<Layout title =" Mod Garden Events" page =" events" >
8+ <!-- Remove when we have events -->
9+ <div class =" mx-auto mt-3 w-3/4 rounded-lg bg-white p-6 text-black shadow-md dark:bg-zinc-800 dark:text-white" >
10+ <h1 class =" mb-4 border-0 border-b-4 border-leaf-200 text-xl font-bold text-black dark:text-white" >
11+ Mod Garden Presents:
12+ </h1 >
13+ <div class =" mx-auto flex w-2/3 flex-col items-center justify-center space-y-4 text-center" >
14+ <div class =" text-lg font-semibold text-black dark:text-white" >
15+ Coming Soon, to a garden near you!
16+ </div >
17+ <div class =" italic" >Check back later for more information!</div >
18+ </div >
19+ </div >
20+
821 <div class =" mx-auto mt-3 grid w-3/4 grid-flow-row grid-cols-2 gap-2" >
922 {
1023 events .map ((modGardenEvent ) => (
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ for (const submission of submissions) {
7474
7575let modrinthUserIcon = " /images/unknown_user.png" ;
7676if (userData .modrinth_id ) {
77- var modrinthUser = await getModrinthUser (userData .modrinth_id );
78- if (modrinthUser ) {
77+ const modrinthUser = await getModrinthUser (userData .modrinth_id );
78+ if (modrinthUser && modrinthUser . avatar_url ) {
7979 modrinthUserIcon = modrinthUser .avatar_url ;
8080 }
8181}
@@ -93,9 +93,7 @@ let bio =
9393 <div class =" flex border-0 border-b-4 border-leaf-200" >
9494 <span
9595 class =" mr-5 aspect-square w-16 bg-cover bg-center"
96- style ={ modrinthUserIcon
97- ? ` background-image: url(${modrinthUserIcon }); `
98- : " " }
96+ style =`background-image: url(${modrinthUserIcon });`
9997 >
10098 </span >
10199 <h1 class =" mt-5 text-xl font-bold text-black dark:text-white" >
You can’t perform that action at this time.
0 commit comments