Skip to content

Commit

Permalink
feat: try ingread video
Browse files Browse the repository at this point in the history
  • Loading branch information
micksabox committed Jun 18, 2024
1 parent c8ac299 commit d99cf51
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
17 changes: 3 additions & 14 deletions app/routes/blog+/posts+/food-guide/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,9 @@ import { Button } from "src/components/ui/button"
import Autoplay from "embla-carousel-autoplay"
import { ScrollIcon } from 'lucide-react'

<Carousel plugins={[
Autoplay({
delay: 5000,
}),
]}>
<CarouselContent>
<CarouselItem>
<img src='/images/blog/nutritionist-ai-2.png'/>
</CarouselItem>
<CarouselItem>
<img src='/images/blog/nutritionist-ai.png'/>
</CarouselItem>
</CarouselContent>
</Carousel>

{/* <img id="img" src='/images/blog/nutritionist-ai-2.png' className="w-full" /> */}
<video id="video" muted playsinline src="/videos/watermarked_video0c3be294294da4ad89c2509dce30c8bb2.mp4" autoPlay controls loop className="w-full" />

# Project INGREAD
### Intelligent Recommendation Agent for Avoiding Fung in Diet
Expand Down
13 changes: 13 additions & 0 deletions app/routes/blog+/posts+/food-guide/route.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
import Component from './content.mdx'

import type { LinksFunction } from '@remix-run/node'

export const links: LinksFunction = () => {
return [
{
rel: 'preload',
href: '/videos/watermarked_video0c3be294294da4ad89c2509dce30c8bb2.mp4',
as: 'video',
type: 'video/mp4',
},
]
}

export default Component
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pages/tracker/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const Dashboard: React.FC<DashboardProps> = ({ startDate }) => {
<div className="h-8">{/* Padding for bottom */}</div>
<div className="bottom-inset fixed bottom-3 right-3">
<Button asChild variant={'cyan'}>
<Link prefetch="intent" to="/blog/posts/food-guide">
<Link prefetch="render" to="/blog/posts/food-guide">
<BotIcon className="mr-2" /> Food Guide
</Link>
</Button>
Expand Down

0 comments on commit d99cf51

Please sign in to comment.