Compare commits
28 Commits
d40a0685bf
...
main
Author | SHA1 | Date | |
---|---|---|---|
7c00f2537d | |||
0daf9fa907 | |||
7f04368035 | |||
85c498584f | |||
3676128a6d | |||
d3b27a5dde | |||
2a9bb0a649 | |||
2714507f91 | |||
de643de6df | |||
84e438511f | |||
ac37b5e869 | |||
cea66409ba | |||
3b23cfe2fe | |||
eaeefdd029 | |||
f7382f70ad | |||
ba511c1676 | |||
8598e8961f | |||
fb7f3a42bc | |||
8101209fe7 | |||
8566e810ae | |||
233f4c8407 | |||
c942782126 | |||
62d9ca5dd0 | |||
3d4d1ee8ea | |||
7f4477a4ff | |||
88ad364a41 | |||
4b684cb858 | |||
e9f49e236e |
49
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: Deploy website
|
||||||
|
run-name: ${{ gitea.actor }} déploie 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: NPM build
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build
|
||||||
|
path: 'build/'
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
environment:
|
||||||
|
name: pls5618.com
|
||||||
|
url: https://pls5618.com
|
||||||
|
steps:
|
||||||
|
- name: Download Artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build
|
||||||
|
path: 'build/'
|
||||||
|
|
||||||
|
- name: FTP Deploy
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
||||||
|
with:
|
||||||
|
server: pls5618.com
|
||||||
|
username: ${{ secrets.ftp_user }}
|
||||||
|
password: ${{ secrets.ftp_password }}
|
||||||
|
local-dir: ./build/
|
||||||
|
|
@ -1,6 +1,7 @@
|
|||||||
default:
|
default:
|
||||||
|
image: node:latest
|
||||||
tags:
|
tags:
|
||||||
- website
|
- node
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
@ -12,14 +13,15 @@ build:
|
|||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
script:
|
script:
|
||||||
- echo "Build"
|
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
deploy-beta:
|
deploy-beta:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install ncftp
|
||||||
script:
|
script:
|
||||||
- echo "Deploy to beta server"
|
|
||||||
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/*
|
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/*
|
||||||
environment:
|
environment:
|
||||||
name: beta
|
name: beta
|
||||||
@ -29,8 +31,10 @@ deploy-beta:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install ncftp
|
||||||
script:
|
script:
|
||||||
- echo "Deploy to server"
|
|
||||||
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com . build/*
|
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com . build/*
|
||||||
environment:
|
environment:
|
||||||
name: website
|
name: website
|
||||||
|
12
src/app.d.ts
vendored
@ -14,10 +14,22 @@ declare global {
|
|||||||
const out: string;
|
const out: string;
|
||||||
export default out;
|
export default out;
|
||||||
}
|
}
|
||||||
|
declare module '*.jpeg?height=600&width=600&fit=contain&background=transparent&webp' {
|
||||||
|
const out: string;
|
||||||
|
export default out;
|
||||||
|
}
|
||||||
|
declare module '*.jpg?height=600&width=600&fit=contain&background=transparent&webp' {
|
||||||
|
const out: string;
|
||||||
|
export default out;
|
||||||
|
}
|
||||||
declare module '*.png?width=1100&fit=contain&background=transparent&webp' {
|
declare module '*.png?width=1100&fit=contain&background=transparent&webp' {
|
||||||
const out: string;
|
const out: string;
|
||||||
export default out;
|
export default out;
|
||||||
}
|
}
|
||||||
|
declare module '*.png?background=transparent&webp' {
|
||||||
|
const out: string;
|
||||||
|
export default out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
--muted-border-color: #c99a2c;
|
--muted-border-color: #c99a2c;
|
||||||
--card-sectionning-background-color: #189ad6;
|
--card-sectionning-background-color: #189ad6;
|
||||||
--card-background-color: hsl(199, 80%, 55%);
|
--card-background-color: hsl(199, 80%, 55%);
|
||||||
|
--partenaires-background: hsl(199, 30.6%, 93.41%);
|
||||||
--color: white;
|
--color: white;
|
||||||
--border-width: 2px;
|
--border-width: 2px;
|
||||||
--active-link-color: #0a1425;
|
--active-link-color: #0a1425;
|
||||||
@ -27,6 +28,7 @@
|
|||||||
--background-color: #0a1425;
|
--background-color: #0a1425;
|
||||||
--card-sectionning-background-color: #243043;
|
--card-sectionning-background-color: #243043;
|
||||||
--card-background-color: #0c192e;
|
--card-background-color: #0c192e;
|
||||||
|
--partenaires-background: hsl(217, 34%, 87%);
|
||||||
--card-border-color: #c99a2c;
|
--card-border-color: #c99a2c;
|
||||||
--active-link-color: #189ad6;
|
--active-link-color: #189ad6;
|
||||||
--primary-focus: rgba(201, 154, 44, 0.3);
|
--primary-focus: rgba(201, 154, 44, 0.3);
|
||||||
|
BIN
src/lib/assets/partenaires/_old/assnat.png
Normal file
After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 151 KiB After Width: | Height: | Size: 151 KiB |
BIN
src/lib/assets/partenaires/_old/belleripe.jpeg
Normal file
After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
BIN
src/lib/assets/partenaires/_old/fermeforestiere.jpeg
Normal file
After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
BIN
src/lib/assets/partenaires/_old/festo.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
src/lib/assets/partenaires/_old/fruitdor.jpeg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
src/lib/assets/partenaires/_old/fusee.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 774 KiB After Width: | Height: | Size: 774 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
BIN
src/lib/assets/partenaires/_old/lumicom.png
Normal file
After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
BIN
src/lib/assets/partenaires/_old/mcwane.jpeg
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
src/lib/assets/partenaires/_old/metalpless.jpg
Normal file
After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 372 KiB After Width: | Height: | Size: 372 KiB |
BIN
src/lib/assets/partenaires/_old/rtaschereau.jpg
Normal file
After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
BIN
src/lib/assets/partenaires/argent-2025.png
Normal file
After Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 38 KiB |
BIN
src/lib/assets/partenaires/bronze-2025.png
Normal file
After Width: | Height: | Size: 198 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
src/lib/assets/partenaires/or-2025.png
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
src/lib/assets/resultats/2024.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
src/lib/assets/resultats/2025.jpg
Normal file
After Width: | Height: | Size: 993 KiB |
@ -1,103 +1,22 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import primewood from '$lib/assets/partenaires/primewood.png?height=600&width=600&fit=contain&background=transparent&webp';
|
import or from '$lib/assets/partenaires/or-2025.png?background=transparent&webp';
|
||||||
import machinex from '$lib/assets/partenaires/machinex.png?height=600&width=600&fit=contain&background=transparent&webp';
|
import argent from '$lib/assets/partenaires/argent-2025.png?background=transparent&webp';
|
||||||
import atocas from '$lib/assets/partenaires/atocas.png?height=600&width=600&fit=contain&background=transparent&webp';
|
import bronze from '$lib/assets/partenaires/bronze-2025.png?background=transparent&webp';
|
||||||
import usnr from '$lib/assets/partenaires/usnr.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import boisdaction from '$lib/assets/partenaires/boisdaction.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import jit from '$lib/assets/partenaires/jit.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import batteriesexpert from '$lib/assets/partenaires/batteriesexpert.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import carbotech from '$lib/assets/partenaires/carbotech.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import festivalduboeuf from '$lib/assets/partenaires/festivalduboeuf.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import mrc from '$lib/assets/partenaires/mrc.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import robovic from '$lib/assets/partenaires/robovic.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import ville from '$lib/assets/partenaires/ville.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import homedepot from '$lib/assets/partenaires/homedepot.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import manoir from '$lib/assets/partenaires/manoir.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import bombardier from '$lib/assets/partenaires/bombardier.png?width=1100&fit=contain&background=transparent&webp';
|
|
||||||
import hydroquebec from '$lib/assets/partenaires/hydroquebec.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
import vexco from '$lib/assets/partenaires/vexco.png?height=600&width=600&fit=contain&background=transparent&webp';
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<article>
|
<img src={or} alt="Partenaires Or" />
|
||||||
<header>Platine</header>
|
<img src={argent} alt="Partenaires Argent" />
|
||||||
<div class="partenaires" id="platine">
|
<img src={bronze} alt="Partenaires Bronze" />
|
||||||
<img src={bombardier} alt="Fondation J Armand Bombardier" />
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
<article>
|
|
||||||
<header>Or</header>
|
|
||||||
<div class="partenaires" id="or">
|
|
||||||
<img src={atocas} alt="Atocas de l'érable" />
|
|
||||||
<img src={hydroquebec} alt="Hydro Québec" />
|
|
||||||
<img src={jit} alt="Jit Laser" />
|
|
||||||
<img src={machinex} alt="Machinex" />
|
|
||||||
<img src={usnr} alt="USNR" />
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
<article>
|
|
||||||
<header>Argent</header>
|
|
||||||
<div class="partenaires" id="argent">
|
|
||||||
<img src={primewood} alt="Primewood" />
|
|
||||||
<img src={batteriesexpert} alt="Batteries Expert" />
|
|
||||||
<img src={boisdaction} alt="Boisdaction" />
|
|
||||||
<img src={carbotech} alt="Carbotech" />
|
|
||||||
<img src={festivalduboeuf} alt="Festival du boeuf" />
|
|
||||||
<img src={mrc} alt="MRC de l'érable" />
|
|
||||||
<img src={robovic} alt="Robovic" />
|
|
||||||
<img src={ville} alt="Ville de Plessisville" />
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
<article>
|
|
||||||
<header>Bronze</header>
|
|
||||||
<div class="partenaires" id="bronze">
|
|
||||||
<img src={homedepot} alt="Home Dépot" />
|
|
||||||
<img src={manoir} alt="Manoir du Lac William" />
|
|
||||||
<img src={vexco} alt="Vexco" />
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.partenaires {
|
.container {
|
||||||
display: grid;
|
margin-top: 2rem;
|
||||||
column-gap: 20px;
|
display: flex;
|
||||||
row-gap: 20px;
|
flex-flow: column nowrap;
|
||||||
align-items: stretch;
|
width: fit-content;
|
||||||
justify-items: stretch;
|
align-items: center;
|
||||||
|
gap: 2rem;
|
||||||
img {
|
|
||||||
object-fit: contain;
|
|
||||||
filter: drop-shadow(1px 1px 1px white) drop-shadow(-1px 1px 1px white)
|
|
||||||
drop-shadow(1px -1px 1px white) drop-shadow(-1px -1px 1px white);
|
|
||||||
}
|
|
||||||
|
|
||||||
&#platine {
|
|
||||||
grid-template-columns: repeat(1, 1fr);
|
|
||||||
}
|
|
||||||
&#or {
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
}
|
|
||||||
&#argent {
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
&#bronze {
|
|
||||||
grid-template-columns: repeat(4, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
|
||||||
&#platine {
|
|
||||||
grid-template-columns: repeat(1, 1fr);
|
|
||||||
}
|
|
||||||
&#or {
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
&#argent {
|
|
||||||
grid-template-columns: repeat(4, 1fr);
|
|
||||||
}
|
|
||||||
&#bronze {
|
|
||||||
grid-template-columns: repeat(5, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import img2025 from '$lib/assets/resultats/2025.jpg?width=600&webp';
|
||||||
|
import img2024 from '$lib/assets/resultats/2024.jpg?width=600&webp';
|
||||||
import img2023 from '$lib/assets/resultats/2023.jpg?width=600&webp';
|
import img2023 from '$lib/assets/resultats/2023.jpg?width=600&webp';
|
||||||
import img2022 from '$lib/assets/resultats/2022.jpg?width=600&webp';
|
import img2022 from '$lib/assets/resultats/2022.jpg?width=600&webp';
|
||||||
import img2020 from '$lib/assets/resultats/2020.jpg?width=600&webp';
|
import img2020 from '$lib/assets/resultats/2020.jpg?width=600&webp';
|
||||||
@ -11,6 +13,26 @@
|
|||||||
import Resultat from './Resultat.svelte';
|
import Resultat from './Resultat.svelte';
|
||||||
|
|
||||||
const resultats: Res[] = [
|
const resultats: Res[] = [
|
||||||
|
{
|
||||||
|
saison: '2025',
|
||||||
|
image: img2025,
|
||||||
|
events: [
|
||||||
|
{
|
||||||
|
nom: 'Festival de Robotique Regional',
|
||||||
|
resultats: ['16e en qualification', 'Alliance finaliste']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
saison: '2024',
|
||||||
|
image: img2024,
|
||||||
|
events: [
|
||||||
|
{
|
||||||
|
nom: 'Festival de Robotique Regional',
|
||||||
|
resultats: ['6e en qualification', 'Prix de la durabilité']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
saison: '2023',
|
saison: '2023',
|
||||||
image: img2023,
|
image: img2023,
|
||||||
|