añadido video de fondo en la parte principal
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "websostenible",
|
||||
"version": "0.0.6",
|
||||
"version": "0.1.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "websostenible",
|
||||
"version": "0.0.6",
|
||||
"version": "0.1.1",
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^3.1.8",
|
||||
"astro": "^4.16.3"
|
||||
|
||||
BIN
public/imgs/bosqueverde.webm
Normal file
BIN
public/imgs/bosqueverde.webm
Normal file
Binary file not shown.
@@ -51,6 +51,12 @@ const animateOnScroll = `
|
||||
<body>
|
||||
<Navbar />
|
||||
<header class="header-bg text-white">
|
||||
|
||||
<video autoplay muted loop class="video-bg">
|
||||
<source src="/imgs/bosqueverde.webm" type="video/webm">
|
||||
Tu navegador no soporta la reproducción de videos.
|
||||
</video>
|
||||
|
||||
<div class="container text-center">
|
||||
<h1
|
||||
class="display-1 mb-4 animate__animated animate__fadeInDown londrina-sketch-regular"
|
||||
@@ -319,4 +325,20 @@ const animateOnScroll = `
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
header {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.video-bg {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user