-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ae3d10
commit 7d1e992
Showing
17 changed files
with
254 additions
and
37 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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ services: | |
networks: | ||
- traefik | ||
ports: | ||
- 3000:3000 | ||
- 3001:3001 | ||
environment: | ||
- TZ=Europe/Madrid | ||
labels: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -16,3 +16,5 @@ | |
width: 110%; | ||
} | ||
} | ||
|
||
|
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,35 +1,35 @@ | ||
import React, { useState, useEffect } from "react"; | ||
import { Navigation } from "./components/navigation"; | ||
import { Header } from "./components/header"; | ||
import { Features } from "./components/features"; | ||
import { Testimonials } from "./components/testimonials"; | ||
import { Team } from "./components/Team"; | ||
import { Contact } from "./components/contact"; | ||
import { BrowserRouter, Route, Routes } from "react-router-dom"; | ||
import {Bases} from "./components/Bases"; | ||
import {Home} from "./components/Home"; | ||
import JsonData from "./data/data.json"; | ||
import SmoothScroll from "smooth-scroll"; | ||
import "./App.css"; | ||
|
||
|
||
|
||
export const scroll = new SmoothScroll('a[href*="#"]', { | ||
speed: 1000, | ||
speedAsDuration: true, | ||
}); | ||
|
||
|
||
|
||
const App = () => { | ||
const [landingPageData, setLandingPageData] = useState({}); | ||
useEffect(() => { | ||
setLandingPageData(JsonData); | ||
}, []); | ||
|
||
return ( | ||
<div> | ||
<Navigation /> | ||
<Header data={landingPageData.Header} /> | ||
<Features data={landingPageData.Features} /> | ||
{/*<Testimonials data={landingPageData.Testimonials} /> */} | ||
<Team data={landingPageData.Team} /> | ||
<Contact data={landingPageData.Contact} /> | ||
</div> | ||
); | ||
}, []); | ||
return ( | ||
<BrowserRouter> {/* Agrega BrowserRouter como contenedor principal */} | ||
|
||
<Routes> | ||
<Route path="/" element={<Home/>} /> | ||
<Route path="/bases" element={<Bases data={landingPageData.Bases}/>} /> | ||
</Routes> | ||
</BrowserRouter> | ||
); | ||
}; | ||
|
||
export default App; | ||
|
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,34 @@ | ||
import React, { useState, useEffect } from "react"; | ||
import { Features } from "./features"; | ||
import { Navigation } from "./navigation"; | ||
import JsonData from "../data/data.json"; | ||
|
||
export const Bases = (props) => { | ||
|
||
return ( | ||
<div> | ||
<Navigation /> | ||
<div id="bases" className="text-left"> | ||
<div className="container"> | ||
<div className="text-center"> | ||
<div className="col-md-14 section-title"> | ||
<h2>{props.data ? props.data.title : "Undefined"}</h2> | ||
</div> | ||
</div> | ||
<div> | ||
{props.data | ||
? props.data.bases.map((d, i) => ( | ||
<div className="base-container" key={i}> | ||
<h3 className="titulo-base">{d.title}</h3> | ||
<p className="texto-base" dangerouslySetInnerHTML={{ __html: d.base }}></p> | ||
</div> | ||
)) | ||
: "loading"} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
|
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,28 @@ | ||
import React, { useState, useEffect } from "react"; | ||
import { Header } from "./header"; | ||
import { Features } from "./features"; | ||
import { Testimonials } from "./testimonials"; | ||
import { Team } from "./Team"; | ||
import { Contact } from "./contact"; | ||
import {Navigation} from "./navigation"; | ||
import JsonData from "../data/data.json"; | ||
import SmoothScroll from "smooth-scroll"; | ||
|
||
|
||
export const Home = (props) => { | ||
const [landingPageData, setLandingPageData] = useState({}); | ||
useEffect(() => { | ||
setLandingPageData(JsonData); | ||
}, []); | ||
return ( | ||
<div> | ||
<Navigation /> | ||
<Header data={landingPageData.Header} /> | ||
<Features data={landingPageData.Features} /> | ||
{/*<Testimonials data={landingPageData.Testimonials} /> */} | ||
<Team data={landingPageData.Team} /> | ||
<Contact data={landingPageData.Contact} /> | ||
</div> | ||
) | ||
} | ||
|
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 |
---|---|---|
|
@@ -1457,11 +1457,13 @@ M1401.491699,1251.711426 | |
z"/> | ||
</svg> | ||
<p className="description">{props.data ? props.data.paragraph : "Loading"}</p> | ||
<p>{props.data ? props.data.info : "Próximamente"}</p> | ||
<p>{props.data ? props.data.contact : "Más info: [email protected]"}</p> | ||
<a | ||
href="#features" | ||
className="btn btn-custom btn-lg page-scroll" | ||
> | ||
Inscríbete | ||
Inscripciones abiertas próximamente | ||
</a>{" "} | ||
</div> | ||
</div> | ||
|
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
Oops, something went wrong.