File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212use Illuminate \Support \Facades \View ;
1313use Illuminate \Support \ServiceProvider ;
1414use Illuminate \Validation \Rules \Password ;
15-
15+ use Illuminate \ Support \ Facades \ Blade ;
1616class AppServiceProvider extends ServiceProvider
1717{
1818 /**
@@ -82,6 +82,9 @@ function ($view) {
8282 );
8383 });
8484
85+ // Register the Minecraft Blade component
86+ Blade::component ('homepage.minecraft ' , 'minecraft ' );
87+
8588 $ this ->bootAuth ();
8689 $ this ->bootEvent ();
8790 }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \View \Components ;
4+
5+ use Closure ;
6+ use Illuminate \Contracts \View \View ;
7+ use Illuminate \View \Component ;
8+
9+ class MinecraftSection extends Component
10+ {
11+ /**
12+ * Create a new component instance.
13+ */
14+ public function __construct ()
15+ {
16+ //
17+ }
18+
19+ /**
20+ * Get the view / contents that represent the component.
21+ */
22+ public function render (): View |Closure |string
23+ {
24+ return view ('components.minecraft-section ' );
25+ }
26+ }
Original file line number Diff line number Diff line change 1111
1212 <div class =" flex flex-col justify-center tablet:max-w-[322px] max-tablet:w-full max-tablet:min-w-0 max-sm:w-full max-tablet:text-center max-tablet:px-8" >
1313 <div class =" flex flex-col w-full max-tablet:pt-[15px]" >
14- <img loading =" lazy" src =" /images/homepage/minecraftlogo.png" alt =" Minecraft Education logo" class =" max-w-[350px] object-contain mx-auto w-full aspect-[2.4]" />
14+ <picture >
15+ <source type =" image/avif" srcset =" /images/avif/homepage/minecraftlogo.avif" >
16+ <source type =" image/webp" srcset =" /images/webp/homepage/minecraftlogo.webp" >
17+ <img loading =" lazy" src =" /images/homepage/minecraftlogo.png" alt =" Minecraft Education logo" class =" max-w-[350px] object-contain mx-auto w-full aspect-[2.4]" />
18+ </picture >
1519 </div >
1620 <p class =" text-xl font-bold leading-truly-normal text-secondary" >
1721 Team up with Minecraft Education for EU Code Week! Discover how Minecraft Education can teach coding and AI skills.
Original file line number Diff line number Diff line change 3131 </section >
3232
3333 {{-- Include the Minecraft section here --}}
34- @include ( ' homepage. minecraft' )
34+ < x- minecraft />
3535
3636 <section class =" sub-section" id =" organize-activity" >
3737
You can’t perform that action at this time.
0 commit comments