Marv12 commited on
Commit
2066d27
·
verified ·
1 Parent(s): 015ad67

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +160 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Ppp
3
- emoji: 🐨
4
- colorFrom: yellow
5
  colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: ppp
3
+ emoji: 🐳
4
+ colorFrom: gray
5
  colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,160 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Video Effect Templates</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Roboto', sans-serif;
14
+ background-color: #000;
15
+ color: white;
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ .card {
20
+ position: relative;
21
+ overflow: hidden;
22
+ transition: transform 150ms ease-out;
23
+ aspect-ratio: 1.8;
24
+ }
25
+
26
+ .card:hover {
27
+ transform: scale(1.03);
28
+ }
29
+
30
+ .card::after {
31
+ content: '';
32
+ position: absolute;
33
+ bottom: 0;
34
+ left: 0;
35
+ right: 0;
36
+ height: 30%;
37
+ background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
38
+ }
39
+
40
+ .thumbnail {
41
+ width: 100%;
42
+ height: 100%;
43
+ object-fit: cover;
44
+ transition: transform 0.3s ease;
45
+ }
46
+
47
+ .scroll-container:hover .thumbnail {
48
+ transform: translateY(calc(var(--scroll-pos) * -0.1px));
49
+ }
50
+
51
+ .badge-top-choice {
52
+ background-color: rgba(255,255,255,0.3);
53
+ backdrop-filter: blur(4px);
54
+ }
55
+
56
+ .badge-new {
57
+ border: 1px solid rgba(255,255,255,0.7);
58
+ }
59
+ </style>
60
+ </head>
61
+ <body class="min-h-screen p-4">
62
+ <div class="scroll-container">
63
+ <div class="grid grid-cols-2 gap-4">
64
+ <!-- Card 1 -->
65
+ <div class="card rounded-xl shadow-[0_2px_4px_rgba(0,0,0,0.2)]">
66
+ <img src="https://images.unsplash.com/photo-1604537466158-719b1972feb8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
67
+ alt="Thunder God effect" class="thumbnail">
68
+ <span class="absolute top-2 right-2 badge-new rounded px-2 py-1 text-xs font-medium flex items-center gap-1">
69
+ <i class="fas fa-star text-xs"></i>
70
+ New
71
+ </span>
72
+ <span class="absolute bottom-2 left-2 font-bold text-sm z-10">Thunder God</span>
73
+ </div>
74
+
75
+ <!-- Card 2 -->
76
+ <div class="card rounded-xl shadow-[0_2px_4px_rgba(0,0,0,0.2)]">
77
+ <img src="https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
78
+ alt="FPV Drone effect" class="thumbnail">
79
+ <span class="absolute top-2 left-1/2 transform -translate-x-1/2 badge-top-choice rounded-full px-3 py-1 text-xs font-medium">
80
+ Top Choice
81
+ </span>
82
+ <span class="absolute bottom-2 left-2 font-bold text-sm z-10">FPV Drone</span>
83
+ </div>
84
+
85
+ <!-- Card 3 -->
86
+ <div class="card rounded-xl shadow-[0_2px_4px_rgba(0,0,0,0.2)]">
87
+ <img src="https://images.unsplash.com/photo-1519125323398-675f0ddb6308?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
88
+ alt="Time Warp effect" class="thumbnail">
89
+ <span class="absolute bottom-2 left-2 font-bold text-sm z-10">Time Warp</span>
90
+ </div>
91
+
92
+ <!-- Card 4 -->
93
+ <div class="card rounded-xl shadow-[0_2px_4px_rgba(0,0,0,0.2)]">
94
+ <img src="https://images.unsplash.com/photo-1518709268805-4e9042af9f23?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
95
+ alt="Neon Dreams effect" class="thumbnail">
96
+ <span class="absolute top-2 right-2 badge-new rounded px-2 py-1 text-xs font-medium flex items-center gap-1">
97
+ <i class="fas fa-star text-xs"></i>
98
+ New
99
+ </span>
100
+ <span class="absolute bottom-2 left-2 font-bold text-sm z-10">Neon Dreams</span>
101
+ </div>
102
+
103
+ <!-- Card 5 -->
104
+ <div class="card rounded-xl shadow-[0_2px_4px_rgba(0,0,0,0.2)]">
105
+ <img src="https://images.unsplash.com/photo-1518562180175-0c0b7f070809?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
106
+ alt="Cyberpunk effect" class="thumbnail">
107
+ <span class="absolute top-2 left-1/2 transform -translate-x-1/2 badge-top-choice rounded-full px-3 py-1 text-xs font-medium">
108
+ Collection
109
+ </span>
110
+ <span class="absolute bottom-2 left-2 font-bold text-sm z-10">Cyberpunk</span>
111
+ </div>
112
+
113
+ <!-- Card 6 -->
114
+ <div class="card rounded-xl shadow-[0_2px_4px_rgba(0,0,0,0.2)]">
115
+ <img src="https://images.unsplash.com/photo-1505142468610-359eebb587d2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"
116
+ alt="Glitch effect" class="thumbnail">
117
+ <span class="absolute top-2 right-2 badge-top-choice rounded px-2 py-1 text-xs font-medium flex items-center gap-1">
118
+ <i class="fas fa-layer-group text-xs"></i>
119
+ Mixed
120
+ </span>
121
+ <span class="absolute bottom-2 left-2 font-bold text-sm z-10">Glitch</span>
122
+ </div>
123
+ </div>
124
+ </div>
125
+
126
+ <script>
127
+ // Simple parallax effect on scroll
128
+ const scrollContainer = document.querySelector('.scroll-container');
129
+ let lastScrollPosition = 0;
130
+
131
+ scrollContainer.addEventListener('scroll', () => {
132
+ const currentScroll = scrollContainer.scrollTop;
133
+ lastScrollPosition = currentScroll;
134
+
135
+ // Update CSS variable for parallax effect
136
+ document.documentElement.style.setProperty('--scroll-pos', currentScroll);
137
+
138
+ // Apply to all thumbnails
139
+ const thumbnails = document.querySelectorAll('.thumbnail');
140
+ thumbnails.forEach(thumb => {
141
+ thumb.style.transform = `translateY(${currentScroll * -0.1}px)`;
142
+ });
143
+ });
144
+
145
+ // Card click effect
146
+ const cards = document.querySelectorAll('.card');
147
+ cards.forEach(card => {
148
+ card.addEventListener('click', function() {
149
+ // Scale animation
150
+ this.style.transform = 'scale(0.98)';
151
+ setTimeout(() => {
152
+ this.style.transform = 'scale(1.03)';
153
+ // In a real app, you would navigate to the detail view here
154
+ console.log('Navigating to detail view for:', this.querySelector('span:last-child').textContent);
155
+ }, 150);
156
+ });
157
+ });
158
+ </script>
159
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Marv12/ppp" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
160
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Here’s a fully-structured description you can drop straight into an AI prompt to recreate this UI/UX. Feel free to tweak any values to suit your exact needs: --- Prompt > Create a dark-mode mobile app screen for browsing short-video effect templates. The overall layout is a two-column, scrollable grid of “cards,” each showcasing a thumbnail, label text, and optional badge. Screen background Solid pure black (#000000) No visible borders or chrome Grid layout Two columns, equal width, 16 px gutter between cards horizontally and vertically Content inset 16 px from left/right edges Vertical scroll, cards flow top-to-bottom Card container Aspect ratio roughly 1.8 : 1 (wider than tall) Rounded corners radius 12 px Background: full-bleed thumbnail image, clipped to rounded corners Overlay: subtle black gradient at bottom 30% to ensure text readability No explicit border; cast a soft drop shadow (black at 20% opacity, offset 0 × 2 px, blur 4 px) Thumbnail images High-contrast, cinematic stills or 3D renders that illustrate the effect name (e.g. “Thunder God”: lightning and a person; “FPV Drone”: aerial shot of pagoda) Cropped to fill the card, maintain focal point in center Label text Positioned at bottom-left corner, on top of the gradient Font: Sans-serif (e.g. “SF Pro Display” or “Roboto”) Weight: bold (700) Size: 14 px Color: pure white (#FFFFFF) Text shadow: none (rely on the gradient) Badges & Tags Some cards carry a small badge anchored top-center or top-right: “Top Choice”: rounded pill, background semi-opaque white at 30% (rgba(255,255,255,0.3)), border radius 10 px, horizontal padding 8 px, vertical padding 4 px, font size 10 px, weight medium (500), text color white. “New”: white outline star icon + text, white stroke at 70% opacity, no fill, 1 px border, radius 6 px, padding 4 px 6 px, font size 10 px. “Mixed”, “Collection”: small semi-opaque label with icon placeholders, same style as “Top Choice” but different text. Badges sit 8 px from top edge, centered horizontally (or 8 px from right edge for right-aligned badges). Spacing & Alignment Each card’s internal padding only comes from the overlay gradient—no extra padding around thumbnail. Label text has 8 px margin from left and bottom edges of the card. Badge has 8 px margin from top edge, and 8 px margin from side where it’s anchored. Typography & Icons All text in white. Icons (star, collection, mixed) are line icons in white, 12 × 12 px, aligned vertically with text. Interactions & Motion On tap: card scales up to 1.03× with a 150 ms ease-out, then navigates to detail view. On scroll: gentle parallax on thumbnails (they move 10% slower than scrolling). Accessibility Ensure minimum 4.5:1 contrast between text and background (gradient should guarantee this). Touch targets: at least 44 × 44 px tappable area (the whole card). --- Example JSON-Style Spec { "screen": { "mode": "dark", "background": "#000000" }, "layout": { "type": "grid", "columns": 2, "gap": 16, "padding": 16 }, "card": { "aspectRatio": 1.8, "borderRadius": 12, "shadow": { "color": "rgba(0,0,0,0.2)", "offset": [0,2], "blur": 4 }, "thumbnail": { "fillMode": "cover", "gradientOverlay": { "type": "linear", "direction": "vertical", "from": "transparent", "to": "rgba(0,0,0,0.6)", "height": "30%" } }, "label": { "position": ["bottom", "left"], "font": { "family": "Sans-serif", "weight": 700, "size": 14, "color": "#FFFFFF" }, "margin": [0,0,8,8] }, "badge": { "types": { "topChoice": { "background": "rgba(255,255,255,0.3)", "radius": 10, "padding": [4,8], "fontSize": 10, "fontWeight": 500, "textColor": "#FFFFFF" }, "new": { "border": "1px solid rgba(255,255,255,0.7)", "icon": "star", "radius": 6, "padding": [4,6], "fontSize": 10, "textColor": "#FFFFFF" } /* other badges… */ }, "marginTop": 8, "marginSides": 8 }, "interaction": { "tap": { "scale": 1.03, "durationMs": 150, "easing": "ease-out" }, "scrollParallax": 0.1 }, "accessibility": { "minContrast": 4.5, "touchTarget": [44,44] } } } --- Paste that into your favorite AI-UI generator (like Figma-to-code or a design-assistant), and it’ll spin up an exact match of the grid shown in your screenshot.