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",
|
"name": "websostenible",
|
||||||
"version": "0.0.6",
|
"version": "0.1.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "websostenible",
|
"name": "websostenible",
|
||||||
"version": "0.0.6",
|
"version": "0.1.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^3.1.8",
|
"@astrojs/mdx": "^3.1.8",
|
||||||
"astro": "^4.16.3"
|
"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>
|
<body>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<header class="header-bg text-white">
|
<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">
|
<div class="container text-center">
|
||||||
<h1
|
<h1
|
||||||
class="display-1 mb-4 animate__animated animate__fadeInDown londrina-sketch-regular"
|
class="display-1 mb-4 animate__animated animate__fadeInDown londrina-sketch-regular"
|
||||||
@@ -319,4 +325,20 @@ const animateOnScroll = `
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
header {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-bg {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user