Skip to content

Commit

Permalink
add link video
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie85270 committed Oct 30, 2023
1 parent 11f684b commit 1104a11
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions components/layout/AppLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from 'next/link';
import FooterLight from '../kit/components/navigation/footer/FooterLight';
import Meta from '../site/Meta';
import AppHeader from '../site/header/AppHeader';
Expand Down Expand Up @@ -88,6 +89,51 @@ const AppLayout = ({ title, desc, children, withPub }: Props) => {
<main
className={`mx-auto ${withPub ? 'max-w-6xl' : 'max-w-7xl'} px-4 mt-8 sm:px-6 lg:px-8 h-full`}
>
<div className="relative flex flex-col items-center justify-between w-full mb-5 rounded shadow-lg h-44 overflow-hidden md:flex-row">
<img src="/banner.jpg" className="absolute w-full h-full rounded-lg z-1" />
<div className="flex items-center justify-between px-6 pt-4 my-2 md:pt-0 w-54 md:w-72">
<div className="z-10 flex justify-between w-72 item-center">
<video
autoPlay={true}
loop={true}
className="inline-flex transform scale-130 absolute items-center justify-center text-base font-bold text-white px-1 py-1 bg-gray-900 border-transparent relative z-10 leading-7 transition-all duration-200 rounded-xl origin-left rotate-2"
>
<source src="/pub.mp4" type="video/mp4" />
</video>
</div>
</div>
<div className="flex flex-col w-full items-center pr-4">
<p className="z-10 mb-8 flex items-center font-mono font-bold text-sm text-center text-white md:text-xl">
Visually create and edit Tailwind CSS UIs 10x faster using AI.
</p>

<a
href="https://www.devwares.com/windframe/?ref=charlie"
target="_blank"
rel="noreferrer"
className="z-10 flex cursor-pointer items-center h-10 px-4 py-2 mb-4 text-base font-medium text-black bg-white border rounded md:mb-0 w-28 hover:bg-gray-100"
>
<svg
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
viewBox="0 0 24 24"
className="mr-2"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill="none"
stroke="#000"
strokeWidth="2"
d="M23,1 C23,1 16.471872,0.541707069 14,3 C13.9767216,3.03685748 10,7 10,7 L5,8 L2,10 L10,14 L14,22 L16,19 L17,14 C17,14 20.9631426,10.0232786 21,10 C23.4582929,7.5281282 23,1 23,1 Z M17,8 C16.4475,8 16,7.5525 16,7 C16,6.4475 16.4475,6 17,6 C17.5525,6 18,6.4475 18,7 C18,7.5525 17.5525,8 17,8 Z M7,17 C6,16 4,16 3,17 C2,18 2,22 2,22 C2,22 6,22 7,21 C8,20 8,18 7,17 Z"
></path>
</svg>
Create
</a>
</div>
</div>
{children}
</main>
</div>
Expand Down
Binary file added public/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/pub.mp4
Binary file not shown.

0 comments on commit 1104a11

Please sign in to comment.