Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Landing To GitHub Pages

on:
push:
branches:
- main
paths:
- "landing/**"
- ".github/workflows/pages.yml"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload landing artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./landing

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
21 changes: 21 additions & 0 deletions landing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# QuantLab Landing

Landing estatica preparada para publicarse en GitHub Pages.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (typo): Consider adding the accent in "estatica" to read "estática".

Suggested implementation:

Landing estática preparada para publicarse en GitHub Pages.

Se puede abrir `index.html` directamente o servir la carpeta `landing/` con cualquier servidor estático.


## Estructura

- `index.html`
- `styles.css`
- `app.js`

## Preview local

Se puede abrir `index.html` directamente o servir la carpeta `landing/` con cualquier servidor estatico.

## Deploy

El workflow [pages.yml](../.github/workflows/pages.yml) publica el contenido de `landing/` en GitHub Pages cuando hay cambios en `main`.

Requisito del repositorio:

- GitHub Pages debe estar configurado para desplegar desde **GitHub Actions**.
24 changes: 24 additions & 0 deletions landing/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
document.querySelectorAll(".site-nav a, .button, .header-cta").forEach((link) => {
link.addEventListener("click", () => {
document.body.dataset.lastAction = link.getAttribute("href") || "";
});
});

const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
}
});
},
{
threshold: 0.18,
},
);

document.querySelectorAll(".panel, .timeline-step, .principle, .maturity-step").forEach((node) => {
node.classList.add("reveal");
observer.observe(node);
});
Loading
Loading