-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add video to homepage hero * Add Layout with video * Update version * Update lockfile * Fix text overlapping with video * Autoplay, loop and mute video * Improve responsive design Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --------- Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
433 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script setup> | ||
import DefaultTheme from "vitepress/theme"; | ||
</script> | ||
|
||
<template> | ||
<DefaultTheme.Layout> | ||
<template #home-hero-image> | ||
<video autoplay loop muted src="/video.mp4" class="video" /> | ||
</template> | ||
</DefaultTheme.Layout> | ||
</template> | ||
|
||
<style scoped> | ||
.video { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
max-height: 192px; | ||
transform: translate(-50%, -50%); | ||
} | ||
@media (min-width: 640px) { | ||
.video { | ||
max-height: unset; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
import Layout from "./Layout.vue"; | ||
import "./custom.css"; | ||
|
||
export default DefaultTheme; | ||
export default { | ||
...DefaultTheme, | ||
Layout: Layout, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.
5fd5206
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
safeql – ./
safeql-safeql.vercel.app
safeql.vercel.app
www.safeql.dev
safeql-git-main-safeql.vercel.app
safeql.dev