This commit is contained in:
austinkelsay 2025-04-20 16:53:21 -05:00
parent 8d0c349bb3
commit ff809813d9
No known key found for this signature in database
GPG Key ID: 5A763922E5BA08EE
2 changed files with 7 additions and 13 deletions

View File

@ -22,7 +22,6 @@ import useWindowWidth from '@/hooks/useWindowWidth';
import GenericButton from '@/components/buttons/GenericButton';
import appConfig from '@/config/appConfig';
import { BookOpen } from 'lucide-react';
import { useSession } from 'next-auth/react';
export function CourseTemplate({ course, showMetaTags = true }) {
const { zaps, zapsLoading, zapsError } = useZapsSubscription({
@ -35,7 +34,6 @@ export function CourseTemplate({ course, showMetaTags = true }) {
const { returnImageProxy } = useImageProxy();
const windowWidth = useWindowWidth();
const isMobile = windowWidth < 768;
const { data: session } = useSession();
useEffect(() => {
if (zaps.length > 0) {
@ -112,9 +110,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
</div>
</CardHeader>
<CardContent
className={`${
isMobile ? 'px-3' : ''
} pt-4 pb-2 w-full flex flex-row justify-between items-center`}
className={`${isMobile ? 'px-3' : ''
} pt-4 pb-2 w-full flex flex-row justify-between items-center`}
>
<div className="flex flex-wrap gap-2 max-w-[65%]">
{course &&
@ -145,9 +142,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
)}
</CardContent>
<CardDescription
className={`${
isMobile ? 'w-full p-3' : 'p-6'
} py-2 pt-0 text-base text-neutral-50/90 dark:text-neutral-900/90 overflow-hidden min-h-[4em] flex items-center max-w-[100%]`}
className={`${isMobile ? 'w-full p-3' : 'p-6'
} py-2 pt-0 text-base text-neutral-50/90 dark:text-neutral-900/90 overflow-hidden min-h-[4em] flex items-center max-w-[100%]`}
style={{
overflow: 'hidden',
display: '-webkit-box',
@ -164,9 +160,8 @@ export function CourseTemplate({ course, showMetaTags = true }) {
</p>
</CardDescription>
<CardFooter
className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${
isMobile ? 'px-3' : ''
}`}
className={`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 border-t border-gray-700 pt-4 ${isMobile ? 'px-3' : ''
}`}
>
<p className="text-sm text-gray-300">
{course?.published_at && course.published_at !== ''

View File

@ -11,8 +11,7 @@ const appConfig = {
],
authorPubkeys: [
'f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741',
'c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345',
'b9f4c34dc25b2ddd785c007bf6e12619bb1c9b8335b8d75d37bf76e97d1a0e31',
'c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345'
],
customLightningAddresses: [
{