add showcase videos
This commit is contained in:
		
							parent
							
								
									fc0eb74824
								
							
						
					
					
						commit
						57f3c5f3f0
					
				
					 4 changed files with 33 additions and 15 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								public/assets/showcase/flicko.mp4
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/assets/showcase/flicko.mp4
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								public/assets/showcase/outfoxxed.mp4
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/assets/showcase/outfoxxed.mp4
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								public/assets/showcase/vaxry.mp4
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/assets/showcase/vaxry.mp4
									 (Stored with Git LFS)
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -1,18 +1,24 @@
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
import { Icon } from "astro-icon/components";
 | 
					import { Icon } from "astro-icon/components";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function placeholders() {
 | 
					const videos = [
 | 
				
			||||||
  const word = "placeholder";
 | 
					  {
 | 
				
			||||||
  let str: string;
 | 
					    author: "outfoxxed",
 | 
				
			||||||
  const arr: string[] = [];
 | 
					    authorlink: "https://outfoxxed.me",
 | 
				
			||||||
  for (let i = 0; i < 10; i++) {
 | 
					    path: "/assets/showcase/outfoxxed.mp4",
 | 
				
			||||||
    str = `${word}-${i}`;
 | 
					  },
 | 
				
			||||||
    arr.push(str);
 | 
					  {
 | 
				
			||||||
  }
 | 
					    author: "flicko",
 | 
				
			||||||
  return arr;
 | 
					    authorlink: "https://github.com/flick0",
 | 
				
			||||||
}
 | 
					    path: "/assets/showcase/flicko.mp4",
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    author: "vaxry",
 | 
				
			||||||
 | 
					    authorlink: "https://vaxry.net",
 | 
				
			||||||
 | 
					    path: "/assets/showcase/vaxry.mp4",
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const ph = placeholders();
 | 
					 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
<div class="marquee">
 | 
					<div class="marquee">
 | 
				
			||||||
  <div class="marquee-scroll">
 | 
					  <div class="marquee-scroll">
 | 
				
			||||||
| 
						 | 
					@ -25,10 +31,13 @@ const ph = placeholders();
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  <div id="marquee-content" class="marquee-content" data-scroll="0">
 | 
					  <div id="marquee-content" class="marquee-content" data-scroll="0">
 | 
				
			||||||
    {ph.map(_ => <div class="marquee-item">
 | 
					    {videos.map(({ author, authorlink, path }, index) => <div class="marquee-item">
 | 
				
			||||||
      <video class="marquee-item-spacing marquee-item-content" controls>
 | 
					      <div>
 | 
				
			||||||
        <source src="/assets/simple-shell-livereload.mp4" type="video/mp4"/>
 | 
					        <video class="marquee-item-spacing marquee-item-content" muted controls {...(index == 0 ? {autoplay: ""} : {})}>
 | 
				
			||||||
 | 
					          <source src={path} type="video/mp4"/>
 | 
				
			||||||
        </video>
 | 
					        </video>
 | 
				
			||||||
 | 
					        <p>Configuration by <a href={authorlink}>{author}</a></p>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
    </div>)}
 | 
					    </div>)}
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue