You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

next-banner.tsx 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { Badge } from '@/components/ui/badge';
  2. import { Card, CardContent } from '@/components/ui/card';
  3. import { ArrowRight, X } from 'lucide-react';
  4. const guideCards = [
  5. {
  6. badge: 'System',
  7. title: 'Setting up your LLM',
  8. },
  9. {
  10. badge: 'Chat app',
  11. title: 'Configuration guides',
  12. },
  13. {
  14. badge: 'Search app',
  15. title: 'Prompt setting guides',
  16. },
  17. ];
  18. export default function WelcomeGuide(): JSX.Element {
  19. return (
  20. <div className="flex w-full max-w-[1800px] items-center gap-4 px-[60px] py-6 relative bg-[#223d8e0d] rounded-3xl overflow-hidden">
  21. <div
  22. className="absolute inset-0 bg-gradient-to-r from-pink-300 via-purple-400 to-blue-500 opacity-75"
  23. style={{
  24. backgroundSize: 'cover',
  25. backgroundPosition: 'center',
  26. }}
  27. />
  28. <h1 className="relative flex-1 text-4xl font-bold text-white">
  29. Welcome to RAGFlow
  30. </h1>
  31. <div className="inline-flex items-center gap-[22px] relative">
  32. {guideCards.map((card, index) => (
  33. <Card
  34. key={index}
  35. className="w-[265px] backdrop-blur-md border-colors-outline-neutral-standard"
  36. >
  37. <CardContent className="flex items-end justify-between p-[15px]">
  38. <div className="flex flex-col items-start gap-[9px] flex-1">
  39. <Badge
  40. variant="secondary"
  41. className="bg-colors-background-core-weak text-colors-text-neutral-strong"
  42. >
  43. {card.badge}
  44. </Badge>
  45. <p className="text-lg text-colors-text-neutral-strong">
  46. {card.title}
  47. </p>
  48. </div>
  49. <ArrowRight className="w-6 h-6" />
  50. </CardContent>
  51. </Card>
  52. ))}
  53. </div>
  54. <button className="relative p-1 hover:bg-white/10 rounded-full transition-colors">
  55. <X className="w-6 h-6 text-white" />
  56. </button>
  57. </div>
  58. );
  59. }