|
1 | 1 | <x-layout title="Blog">
|
2 | 2 | {{-- Hero --}}
|
3 | 3 | <section
|
4 |
| - class="mx-auto mt-10 w-full max-w-3xl md:mt-14" |
| 4 | + class="mx-auto mt-10 w-full max-w-5xl" |
5 | 5 | aria-labelledby="article-title"
|
6 | 6 | >
|
7 | 7 | <header class="relative grid place-items-center text-center">
|
@@ -100,23 +100,59 @@ class="size-1.5 rotate-45 bg-gray-200/90 dark:bg-[#242734]"
|
100 | 100 | ></div>
|
101 | 101 | </div>
|
102 | 102 |
|
103 |
| - {{-- Content --}} |
104 |
| - <article |
105 |
| - x-init=" |
106 |
| - () => { |
107 |
| - motion.inView($el, () => { |
108 |
| - gsap.fromTo( |
109 |
| - $el, |
110 |
| - { autoAlpha: 0, y: 5 }, |
111 |
| - { autoAlpha: 1, y: 0, duration: 0.7, ease: 'power1.out' }, |
112 |
| - ) |
113 |
| - }) |
114 |
| - } |
115 |
| - " |
116 |
| - class="prose mt-2 max-w-none text-gray-600 dark:text-gray-400 dark:prose-headings:text-white" |
117 |
| - aria-labelledby="article-title" |
118 |
| - > |
119 |
| - {!! App\Support\CommonMark\CommonMark::convertToHtml($article->content) !!} |
120 |
| - </article> |
| 103 | + <div class="mt-2 flex items-start gap-5"> |
| 104 | + {{-- Content --}} |
| 105 | + <article |
| 106 | + x-init=" |
| 107 | + () => { |
| 108 | + motion.inView($el, () => { |
| 109 | + gsap.fromTo( |
| 110 | + $el, |
| 111 | + { autoAlpha: 0, y: 5 }, |
| 112 | + { autoAlpha: 1, y: 0, duration: 0.7, ease: 'power1.out' }, |
| 113 | + ) |
| 114 | + }) |
| 115 | + } |
| 116 | + " |
| 117 | + class="prose max-w-none grow text-gray-600 dark:text-gray-400 dark:prose-headings:text-white" |
| 118 | + aria-labelledby="article-title" |
| 119 | + > |
| 120 | + {!! App\Support\CommonMark\CommonMark::convertToHtml($article->content) !!} |
| 121 | + </article> |
| 122 | + |
| 123 | + {{-- Sidebar --}} |
| 124 | + <div |
| 125 | + x-init=" |
| 126 | + () => { |
| 127 | + motion.inView($el, () => { |
| 128 | + gsap.fromTo( |
| 129 | + $el, |
| 130 | + { autoAlpha: 0, x: 5 }, |
| 131 | + { autoAlpha: 1, x: 0, duration: 0.7, ease: 'power1.out' }, |
| 132 | + ) |
| 133 | + }) |
| 134 | + } |
| 135 | + " |
| 136 | + class="sticky top-20 right-0 hidden max-w-52 shrink-0 min-[850px]:block" |
| 137 | + > |
| 138 | + {{-- Sponsors --}} |
| 139 | + <h3 class="flex items-center gap-1.5 opacity-60"> |
| 140 | + {{-- Icon --}} |
| 141 | + <x-icons.star-circle class="size-6" /> |
| 142 | + {{-- Label --}} |
| 143 | + <div>Sponsors</div> |
| 144 | + </h3> |
| 145 | + |
| 146 | + {{-- List --}} |
| 147 | + <div class="space-y-3 pt-2.5"> |
| 148 | + <x-sponsors.lists.docs.featured-sponsors /> |
| 149 | + </div> |
| 150 | + |
| 151 | + {{-- List --}} |
| 152 | + <div class="space-y-3 pt-2.5"> |
| 153 | + <x-sponsors.lists.docs.corporate-sponsors /> |
| 154 | + </div> |
| 155 | + </div> |
| 156 | + </div> |
121 | 157 | </section>
|
122 | 158 | </x-layout>
|
0 commit comments