File size: 1,986 Bytes
e6a705f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { Badge } from '@/components/ui/badge';
import { Card, CardContent } from '@/components/ui/card';
import { ArrowRight, X } from 'lucide-react';

const guideCards = [
  {
    badge: 'System',
    title: 'Setting up your LLM',
  },
  {
    badge: 'Chat app',
    title: 'Configuration guides',
  },
  {
    badge: 'Search app',
    title: 'Prompt setting guides',
  },
];

export default function WelcomeGuide(): JSX.Element {
  return (
    <div className="flex w-full max-w-[1800px] items-center gap-4 px-[60px] py-6 relative bg-[#223d8e0d] rounded-3xl overflow-hidden">
      <div
        className="absolute inset-0 bg-gradient-to-r from-pink-300 via-purple-400 to-blue-500 opacity-75"
        style={{
          backgroundSize: 'cover',
          backgroundPosition: 'center',
        }}
      />

      <h1 className="relative flex-1 text-4xl font-bold text-white">
        Welcome to RAGFlow
      </h1>

      <div className="inline-flex items-center gap-[22px] relative">
        {guideCards.map((card, index) => (
          <Card
            key={index}
            className="w-[265px]  backdrop-blur-md border-colors-outline-neutral-standard"
          >
            <CardContent className="flex items-end justify-between p-[15px]">
              <div className="flex flex-col items-start gap-[9px] flex-1">
                <Badge
                  variant="secondary"
                  className="bg-colors-background-core-weak text-colors-text-neutral-strong"
                >
                  {card.badge}
                </Badge>
                <p className="text-lg text-colors-text-neutral-strong">
                  {card.title}
                </p>
              </div>
              <ArrowRight className="w-6 h-6" />
            </CardContent>
          </Card>
        ))}
      </div>

      <button className="relative p-1 hover:bg-white/10 rounded-full transition-colors">
        <X className="w-6 h-6 text-white" />
      </button>
    </div>
  );
}