@@ -7,6 +7,12 @@ import Link from "next/link";
77import { useSession } from "next-auth/react" ;
88import QuickLinkCards from "@/components/QuickLinks/QuickLinkCards" ;
99import { QuickLink } from "@/components/QuickLinks/types" ;
10+ import darkBlog from "../assets/images/index/for-dark-theme/blog.png" ;
11+ import lightBlog from "../assets/images/index/for-light-theme/blog.png" ;
12+ import darkExtensions from "../assets/images/index/for-dark-theme/extensions.png" ;
13+ import lightExtensions from "../assets/images/index/for-light-theme/extensions.png" ;
14+ import darkTools from "../assets/images/index/for-dark-theme/tools.png" ;
15+ import lightTools from "../assets/images/index/for-light-theme/tools.png" ;
1016
1117const pageName = "Home" ;
1218
@@ -15,25 +21,42 @@ type HomeProps = { appProps: AppProps };
1521export function Home ( { appProps } : HomeProps ) : React . ReactNode {
1622 const { data : session } = useSession ( ) ;
1723
24+ // https://arcade.makecode.com/S14537-75361-35697-31523
1825 const quickLinks : QuickLink [ ] = [
1926 {
2027 name : "Extensions" ,
2128 description : `A list of ${ Math . floor ( appProps . extensionsListed / 10 ) * 10 } + awesome MakeCode Arcade extensions to further your games!` ,
2229 link : "/extensions" ,
2330 linkText : "View awesome extensions" ,
31+ image : {
32+ darkTheme : darkExtensions ,
33+ lightTheme : lightExtensions ,
34+ altText :
35+ "A picture of the MakeCode Arcade extension puzzle piece icon in MakeCode Arcade image style." ,
36+ } ,
2437 } ,
2538 {
2639 name : "Tools" ,
2740 description : `A list of ${ Math . floor ( appProps . toolsListed / 10 ) * 10 } + awesome MakeCode Arcade tools to help you develop great games!` ,
2841 link : "/tools" ,
2942 linkText : "View awesome tools" ,
43+ image : {
44+ darkTheme : darkTools ,
45+ lightTheme : lightTools ,
46+ altText : "A picture of tools in MakeCode Arcade image style." ,
47+ } ,
3048 } ,
3149 {
3250 name : "Blog" ,
3351 description :
3452 "Read about the latest news and updates in the MakeCode Arcade world!" ,
3553 link : "/blog" ,
3654 linkText : "Read the blog" ,
55+ image : {
56+ darkTheme : darkBlog ,
57+ lightTheme : lightBlog ,
58+ altText : "A picture of a newspaper in MakeCode Arcade image style." ,
59+ } ,
3760 } ,
3861 ] ;
3962
0 commit comments