Skip to content

Commit

Permalink
feat: AoC page (#387)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency nodemon to v3.1.7 (#353)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Bump rollup from 2.79.1 to 2.79.2 in /client (#362)

Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](rollup/rollup@v2.79.1...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4.2.0 (#360)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency react-bootstrap to v2.10.5 (#361)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update NEIIST website information (#363)

* chore: Update SINFO logo and edition number
* chore: Update NEIIST contacts page (new room)

* fix(deps): update dependency react-router-dom to v6.27.0 (#368)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency express to v4.21.1 (#367)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4.2.1 (#366)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update appleboy/ssh-action action to v1.1.0 (#365)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency html-react-parser to v5.1.18 (#364)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update mantine monorepo to v7.13.2 (#359)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump http-proxy-middleware from 2.0.6 to 2.0.7 in /client (#375)

Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md)
- [Commits](chimurai/http-proxy-middleware@v2.0.6...v2.0.7)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(deps): update dependency pg to v8.13.1 (#374)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/setup-node action to v4.1.0 (#373)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4.2.2 (#372)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @testing-library/jest-dom to v6.6.3 (#370)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): bump cookie and express in /client (#379)

Bumps [cookie](https://github.com/jshttp/cookie) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](jshttp/cookie@v0.6.0...v0.7.1)

Updates `express` from 4.21.0 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](expressjs/express@4.21.0...4.21.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(aoc): add AoC page and styles (#380)

Add landing page for Advent of Code 2024 event in collaboration with Cloudflare

This PR implements a standalone landing page for the Advent of Code 2024 competition, featuring:
- Event description and rules
- NEIIST x Cloudflare collaboration announcement
- Prize information for top 3 participants
- Leaderboard code with copy functionality
- Participant instructions
- Custom styling matching AoC theme (dark mode, monospace font)
- Isolated route without default layout

Technical details:
- Standalone route without shared layout
- CSS isolation to prevent style conflicts
- Full viewport design
- Custom animations for interactive elements

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 25, 2024
1 parent 9f90305 commit 751b315
Show file tree
Hide file tree
Showing 8 changed files with 368 additions and 93 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].0
uses: actions/[email protected].2

- name: Setup Node
uses: actions/setup-node@v4.0.4
uses: actions/setup-node@v4.1.0
with:
node-version: 21.4.0

Expand All @@ -44,7 +44,7 @@ jobs:
needs: build_test
steps:
- name: Deploy to Production
uses: appleboy/ssh-action@v1.0.3
uses: appleboy/ssh-action@v1.1.0
with:
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.SSH_HOST }}
Expand Down
111 changes: 61 additions & 50 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-dom": "18.3.1",
"react-icons": "^5.0.0",
"react-multi-carousel": "^2.8.2",
"react-router-dom": "6.26.2",
"react-router-dom": "6.27.0",
"react-scripts": "^5.0.1",
"react-select": "^5.7.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
Expand Down
41 changes: 26 additions & 15 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useContext, Suspense, lazy } from 'react';
import {
BrowserRouter,
BrowserRouter,
Routes,
Route,
Navigate
Expand Down Expand Up @@ -29,11 +29,13 @@ const AdminElectionsPage = lazy(() => import("./pages/AdminElectionsPage.jsx"));
const GacPage = lazy(() => import("./pages/GacPage.jsx"));
const CollabsPage = lazy(() => import("./pages/CollabsPage.jsx"));

const AoCPage = lazy(() => import("./pages/aoc/AoCPage.jsx"));

const Error = ({ error, errorDescription }) => (
<>
<h1>{error}</h1>
<p>{errorDescription}</p>
</>
<>
<h1>{error}</h1>
<p>{errorDescription}</p>
</>
);

const App = () => {
Expand Down Expand Up @@ -67,9 +69,9 @@ const App = () => {
};

const Redirect = (user) => window.location.replace(
user?.isCollab ? '/collab':
user?.isMember ? '/socios':
'/'
user?.isCollab ? '/collab' :
user?.isMember ? '/socios' :
'/'
);

useEffect(() => {
Expand Down Expand Up @@ -104,14 +106,23 @@ const App = () => {
<UserDataContext.Provider value={{ userData, setUserData }}>
<MantineProvider>
<BrowserRouter>
<Layout>
<Suspense fallback={<LoadSpinner />}>
<DefinedRoutes />
</Suspense>
</Layout>
<Routes>
<Route path="/AoC" element={
<Suspense fallback={<LoadSpinner />}>
<AoCPage />
</Suspense>
} />
<Route path="/*" element={
<Layout>
<Suspense fallback={<LoadSpinner />}>
<DefinedRoutes />
</Suspense>
</Layout>
} />
</Routes>
</BrowserRouter>
</MantineProvider>
</UserDataContext.Provider>
</UserDataContext.Provider>
);
};

Expand Down Expand Up @@ -160,7 +171,7 @@ const PrivateRoute = ({ condition, children }) => {
};

const ActiveTecnicoStudentRoute = ({ children }) => (
<PrivateRoute children={children} condition={'isActiveTecnicoStudent'} />
<PrivateRoute children={children} condition={'isActiveTecnicoStudent'} />
);

const ActiveLMeicStudentRoute = ({ children }) => (
Expand Down
Loading

0 comments on commit 751b315

Please sign in to comment.