File size: 7,315 Bytes
5ffb16d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FaceFlick | AI-Powered Face Swapping</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: {
                            500: '#8b5cf6',
                            600: '#7c3aed',
                        },
                        secondary: {
                            500: '#06b6d4',
                            600: '#0891b2',
                        }
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
    <custom-navbar></custom-navbar>

    <main class="container mx-auto px-4 py-8">
        <section class="text-center mb-16">
            <h1 class="text-4xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-primary-500 to-secondary-500 bg-clip-text text-transparent">
                Swap Faces Like Magic
            </h1>
            <p class="text-xl text-gray-400 max-w-3xl mx-auto">
                Upload any video and replace faces with just a few clicks. Our AI does all the hard work for you!
            </p>
        </section>

        <section class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-16">
            <div class="bg-gray-800 rounded-2xl p-6 shadow-xl">
                <div class="flex items-center mb-4">
                    <div class="bg-primary-500 p-3 rounded-lg mr-4">
                        <i data-feather="upload" class="text-white"></i>
                    </div>
                    <h2 class="text-2xl font-semibold">Upload Your Video</h2>
                </div>
                <div class="relative border-2 border-dashed border-gray-600 rounded-xl h-64 flex flex-col items-center justify-center">
                    <i data-feather="video" class="w-12 h-12 mb-4 text-gray-400"></i>
                    <p class="text-gray-400 mb-4">Drag & drop your video here</p>
                    <label for="video-upload" class="bg-primary-600 hover:bg-primary-500 text-white px-6 py-2 rounded-lg cursor-pointer transition">
                        Select Video
                        <input id="video-upload" type="file" accept="video/*" class="hidden">
                    </label>
                </div>
                <div class="mt-4 flex items-center space-x-4">
                    <div class="flex-1">
                        <label class="block text-gray-400 mb-1">Source Face</label>
                        <div class="flex items-center space-x-2">
                            <div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
                                <i data-feather="user" class="text-gray-400"></i>
                            </div>
                            <select class="bg-gray-700 text-white rounded-lg px-3 py-2 w-full">
                                <option>Select face to replace</option>
                            </select>
                        </div>
                    </div>
                    <i data-feather="arrow-right" class="text-gray-400"></i>
                    <div class="flex-1">
                        <label class="block text-gray-400 mb-1">Target Face</label>
                        <div class="flex items-center space-x-2">
                            <div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
                                <i data-feather="user" class="text-gray-400"></i>
                            </div>
                            <select class="bg-gray-700 text-white rounded-lg px-3 py-2 w-full">
                                <option>Select replacement face</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="bg-gray-800 rounded-2xl p-6 shadow-xl">
                <div class="flex items-center mb-4">
                    <div class="bg-secondary-500 p-3 rounded-lg mr-4">
                        <i data-feather="eye" class="text-white"></i>
                    </div>
                    <h2 class="text-2xl font-semibold">Preview</h2>
                </div>
                <div class="bg-gray-900 rounded-xl h-64 flex items-center justify-center">
                    <div class="text-center">
                        <i data-feather="play-circle" class="w-12 h-12 mx-auto mb-2 text-gray-400"></i>
                        <p class="text-gray-400">Your face-swapped video will appear here</p>
                    </div>
                </div>
                <div class="mt-4">
                    <button class="w-full bg-secondary-600 hover:bg-secondary-500 text-white py-3 rounded-lg font-medium flex items-center justify-center transition">
                        <i data-feather="zap" class="mr-2"></i> Generate Face Swap
                    </button>
                </div>
            </div>
        </section>

        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 text-center">How It Works</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-gray-800 p-6 rounded-xl">
                    <div class="bg-primary-500/20 p-4 rounded-lg inline-block mb-4">
                        <i data-feather="upload" class="text-primary-500 w-6 h-6"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Upload Video</h3>
                    <p class="text-gray-400">Upload any video from your device or paste a YouTube URL.</p>
                </div>
                <div class="bg-gray-800 p-6 rounded-xl">
                    <div class="bg-secondary-500/20 p-4 rounded-lg inline-block mb-4">
                        <i data-feather="user" class="text-secondary-500 w-6 h-6"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Select Faces</h3>
                    <p class="text-gray-400">Choose which faces to replace and what to replace them with.</p>
                </div>
                <div class="bg-gray-800 p-6 rounded-xl">
                    <div class="bg-primary-500/20 p-4 rounded-lg inline-block mb-4">
                        <i data-feather="download" class="text-primary-500 w-6 h-6"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Download Result</h3>
                    <p class="text-gray-400">Download your face-swapped video in high quality instantly.</p>
                </div>
            </div>
        </section>
    </main>

    <custom-footer></custom-footer>

    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>