set ramadan 2024 theme - ldc-web/projets/gen-game-web#23

This commit is contained in:
Alexis Gousseau 2024-01-17 17:55:12 +01:00
parent f0ad4d6004
commit f3d767cc38
161 changed files with 17421 additions and 1 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
workspace.code-workspace
.vscode
auth.json

View file

@ -1 +1,5 @@
# Ramadan 2024 thème
# Default Theme
## ! Ce projet ne doit pas être monté directement dans GGW
## Theme par défaut de Gen Game Web

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 369 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
assets/images/arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
assets/images/bg-paper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -0,0 +1 @@
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 58.23 60.92"><defs><style>.cls-1{fill:#005127;}.cls-2{fill:#fff;}.cls-3{fill:#e30613;}</style></defs><path class="cls-1" d="M11.2,20.32A15.24,15.24,0,0,0,26,32.22a13.69,13.69,0,0,0,3.4-.4,15.2,15.2,0,0,0,9.5-6.7,15,15,0,0,0,2-11.5,15.22,15.22,0,1,0-29.7,6.7ZM23.6,6.22a9.86,9.86,0,0,1,2.4-.3,10.9,10.9,0,0,1,5.8,1.7,10.71,10.71,0,0,1,4.8,6.8,11.45,11.45,0,0,1-1.4,8.3,10.71,10.71,0,0,1-6.8,4.8,11,11,0,0,1-13.1-8.3A11.14,11.14,0,0,1,23.6,6.22Z"/><path class="cls-1" d="M0,48.32v10.5a2.11,2.11,0,0,0,2.1,2.1,2.18,2.18,0,0,0,2.1-2.1V48.32a8.81,8.81,0,0,1,8.8-8.8H37.4a2.11,2.11,0,0,0,2.1-2.1,2.18,2.18,0,0,0-2.1-2.1H13.1A12.87,12.87,0,0,0,0,48.32Z"/><path class="cls-1" d="M26.4,47.32a2.12,2.12,0,0,0-3,3L33.1,60a2.18,2.18,0,0,0,3,0L56,40.12a2.12,2.12,0,0,0-3-3L34.6,55.52Z"/><path class="cls-2" d="M12.83,18.56a15.24,15.24,0,0,0,14.8,11.9,13.69,13.69,0,0,0,3.4-.4,15.2,15.2,0,0,0,9.5-6.7,15,15,0,0,0,2-11.5,15.22,15.22,0,1,0-29.7,6.7Zm12.4-14.1a9.86,9.86,0,0,1,2.4-.3,10.9,10.9,0,0,1,5.8,1.7,10.71,10.71,0,0,1,4.8,6.8,11.45,11.45,0,0,1-1.4,8.3,10.71,10.71,0,0,1-6.8,4.8,11,11,0,0,1-13.1-8.3A11.14,11.14,0,0,1,25.23,4.46Z"/><path class="cls-2" d="M1.63,46.56v10.5a2.11,2.11,0,0,0,2.1,2.1,2.18,2.18,0,0,0,2.1-2.1V46.56a8.81,8.81,0,0,1,8.8-8.8H39a2.11,2.11,0,0,0,2.1-2.1,2.18,2.18,0,0,0-2.1-2.1H14.73A12.87,12.87,0,0,0,1.63,46.56Z"/><path class="cls-3" d="M28,45.56a2.12,2.12,0,0,0-3,3l9.7,9.7a2.18,2.18,0,0,0,3,0l19.9-19.9a2.12,2.12,0,0,0-3-3l-18.4,18.4Z"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1 @@
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 120.81 145.05"><defs><style>.cls-1{fill:none;}.cls-2{clip-path:url(#clip-path);}.cls-3{fill:#e30613;}</style><clipPath id="clip-path"><rect class="cls-1" width="120.81" height="145.05"/></clipPath></defs><g class="cls-2"><path class="cls-3" d="M28,125.86c11.2,1.08,26.52-6.58,41.42-20.75C75.86,99,88.37,83.54,88.2,71.51c-.1-7.9-4.15-12-15.48-11-5,.45-4-4.65,4.88-5.29C88.33,54.5,97.27,65,98.42,73.15c1.73,12.24-5.41,30.37-15.17,41.65-12.51,14.45-40.63,39.58-64.11,26.68"/><path class="cls-3" d="M54.46,43.48l.42,4.27Q69.8,37.93,77.59,27.8t7.24-15.65C84.52,9,82.73,7.61,79.45,7.9Q75,8.29,68.56,14A47.62,47.62,0,0,0,57.94,27.7a27.86,27.86,0,0,0-3.48,15.78m-26.93,80.1s20,3.54,35.53-15.06c-3.9-6.79-14.27-21.82-20.32-32.62A94.3,94.3,0,0,0,29.47,88.62a77.2,77.2,0,0,0-8.79,12.79c-10.52,19,6.85,22.17,6.85,22.17m44.57-1.26a162,162,0,0,1-21,16q-9.3,5.76-16.53,6.4a27.84,27.84,0,0,1-15.43-3.26A34,34,0,0,1,6.3,129.82,38,38,0,0,1,.16,112.1q-1.3-13.32,8.29-25.19T37.79,62.59a68,68,0,0,1-2-9.16,43.44,43.44,0,0,1,2.72-20.18A50.79,50.79,0,0,1,49.05,16.41,57.52,57.52,0,0,1,63.83,5,41.06,41.06,0,0,1,79.35.14q8.76-.78,14.5,2.76a12.55,12.55,0,0,1,6.38,9.88,26.1,26.1,0,0,1-3.07,15.48,49.67,49.67,0,0,1-10.42,13A199.7,199.7,0,0,1,70.51,54.08q-9.69,7-11.73,8.75C62,71.37,71.4,89,77,97.75"/><path class="cls-3" d="M74,110.91c.9-2.87,2.27-6.56,5.27-7.59,4.64-1.61,3.13,2.14,3.65,5.06,1.93,10.85,12.1,22.23,22.82,19.55,9.09-2.27,11.15-12.49,6.89-18.33s-10.23-6.07-15-4.79c-5.37,1.45-5.11-3.78.06-4.83a19.31,19.31,0,0,1,17.88,6.18c7.47,8.57,8.11,24.55-6.73,30.2-13.16,5-26.29-2.14-34.75-12.7-3.55-4.43-1.76-7.54-.14-12.75"/></g></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M452,0H60C26.916,0,0,26.916,0,60v392c0,33.084,26.916,60,60,60h392c33.084,0,60-26.916,60-60V60
C512,26.916,485.084,0,452,0z M472,452c0,11.028-8.972,20-20,20H338V309h61.79L410,247h-72v-43c0-16.975,13.025-30,30-30h41v-62
h-41c-50.923,0-91.978,41.25-91.978,92.174V247H216v62h60.022v163H60c-11.028,0-20-8.972-20-20V60c0-11.028,8.972-20,20-20h392
c11.028,0,20,8.972,20,20V452z"/>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 909 B

21
assets/images/frise.svg Normal file
View file

@ -0,0 +1,21 @@
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1919.76 53.99"><defs><style>.cls-1{fill:#05823e;} .cls-2{fill:transparent;}</style></defs><path class="cls-1" d="M1919.76,43V54H0V38l8.67-1.09,0-.54-4.06-.65,0-1.67L21.41,32.8l-9.67,2,.1,1.41,31.28-2-.07-1.29H21.26c3.8-.3,7.58-.81,11.38-.87,9.3-.16,18.61.1,27.91-.21,12.38-.42,24.74-1.33,37.11-1.84,12.61-.51,25.22-.78,37.82-1.16,18.15-.55,36.3-1.2,54.45-1.62,9.57-.22,19.16,0,28.74,0v.61l-49.84,1.52a9.78,9.78,0,0,0,5.42,1q25.47-.61,51-1.28c44-1.1,88-1.88,131.9-3.5,11.32-.42,22.69.7,34.1-2,7.27-1.74,15.37-.06,23.09.14,3.26.09,6.52.32,9.78.48l0-.89-2.66-1c12.26,0,23.86-.14,35.45.07,4.88.08,9.74,1.4,14.6,1.31,17.57-.31,35.13-1.42,52.7-1.42,32,0,63.94,0,95.88,1,46.61,1.49,93.2,3.66,139.78,6,20.11,1,40.16,3.16,60.25,4.58,2.35.17,4.79-1,7.19-1.55l-.11-1.68L704.07,23c0-.46.06-.92.08-1.38l138.24,7.58.08-1.59C790.37,22.25,737.93,22,685.65,19.3l.07-1.34h6.36l.12-1.09-27.28-3.54a48.85,48.85,0,0,1,6.94-.38q68.71-1.3,137.43-2.59c8.9-.16,17.83-.69,26.34,3.28,2.72,1.27,6.18,1.22,9.32,1.32,13,.44,26,.52,39,1.13a189.13,189.13,0,0,1,20.82,2.33c1.55.25,2.64,3.14,4.22,3.47,6.33,1.29,12.75,2.64,19.17,2.83,4.7.14,9.46-1.5,14.19-2.35-.07-.7-.15-1.41-.23-2.12H912.84c20.46-1.16,40.86-1.92,61.27-2,11.28-.06,22.56,1,33.83,1.56,6.82.35,13.64,1,20.46,1,4.25,0,8.56-1.63,12.75-1.3q17.58,1.39,35.18,1.31c9,0,18-.54,27-.36,15.18.3,30.36,1.08,45.54,1.46,6.32.16,12.67-.57,19-.23,16,.84,31.9,4.73,48,2.21,9.66-1.51,18.79,3.38,28.73,1.18,6.46-1.43,13.67.3,20.5,1,5.9.58,11.76,1.65,17.63,2.51l-.15,1.81h-30a4,4,0,0,0,3.2,1.59c30.62,1.2,61.24,2.46,91.86,3.46,3.72.12,7.48-1.19,11.23-1.75a6,6,0,0,1,1.9.37c3.18.63,6.34,1.65,9.54,1.8,9.07.43,18.15.53,27.23.72,8.87.17,17.74.47,26.61.38,10.63-.1,21.26-.74,31.89-.76,7.8,0,15.61.95,23.41.82,18.25-.32,36.49-.91,54.73-1.64,11.09-.45,22.15-1.66,33.23-2,10.13-.29,20.28.47,30.41.26,22.8-.48,45.58-1.36,68.38-1.85,3.69-.07,7.39,1.12,11.1,1.57,1,.13,2.54.1,3.1-.52,1.87-2,3.28-2.58,5,.1.24.36,1.73-.08,2.64-.15L1687,31.23l103.53-5.72c0,.45,0,.91.08,1.37l-31.25,2.61c0,.53.06,1.06.08,1.59l28.72-1.84c0,.39.07.78.1,1.17l-48.63,4.14c0,.48.06,1,.08,1.44,47.37-5.85,95.06.87,141.72-5.89,1.58,2.75,2.24,4.53,3.43,5.82s3.05,2.85,4.11,2.54c5.12-1.52,8.74-.05,12.43,3.69,6.35,6.45,8.32,6.42,16.09,1.87A23.36,23.36,0,0,1,1919.76,43Zm-219.82,2.5c0,.67.07,1.33.11,2l126.13-7.6c0-.5,0-1-.08-1.5ZM599.54,27.3l.07.88,112.49,4c0-.53,0-1.06,0-1.6ZM92.09,35.15v1h44.66l0-1Zm141.6-3.35v.4h49.77v-.4Zm-109.2-.93v.79c4.26,0,8.52-.1,12.77,0,4.08.13,8.15.5,12.23.77l0-1.59ZM1670.91,46.63c0,.3-.07.6-.11.9h18.37c0-.3,0-.6,0-.9ZM565.25,27.92v-.59H531.62v.59Zm269.45-4v1.17h16.06V23.88Zm-614.34,10,.08-.46H193.57v.46ZM884,25.09l14.47-.64C893.34,19,888.71,24.38,884,25.09Zm-358.7,2.79v-.53H501.14v.53Zm-353.66,7-.13-.89c-2.45,0-4.91.07-7.35,0-2.28-.09-4.55-.49-6.82-.49s-4.32.34-6.48.54l.17.86Z"/>
<path class="cls-2" d="M21.42,32.79,4.53,34.05l0,1.67,4.06.65,0,.54L0,38V0H1919.76V12l-18.15,4.56.92.71L1866.66,21c0,.56,0,1.12-.05,1.67,1,.46,2,1.35,2.9,1.31,6.6-.33,13.23-.54,19.77-1.37,10.19-1.29,20.32-3.05,30.48-4.61V43a23.36,23.36,0,0,0-2.28,1c-7.77,4.55-9.74,4.58-16.09-1.87-3.69-3.74-7.31-5.21-12.43-3.69-1.06.31-3-1.36-4.11-2.54s-1.85-3.07-3.43-5.82c-46.66,6.76-94.35,0-141.72,5.89,0-.48,0-1-.08-1.44l48.63-4.14c0-.39-.06-.78-.1-1.17l-28.72,1.84c0-.53,0-1.06-.08-1.59l31.25-2.61c0-.46,0-.92-.08-1.37L1687,31.23l1.07,1.59c-.91.07-2.4.51-2.64.15-1.74-2.68-3.15-2.14-5-.1-.56.62-2.07.65-3.1.52-3.71-.45-7.41-1.64-11.1-1.57-22.8.49-45.58,1.37-68.38,1.85-10.13.21-20.28-.55-30.41-.26-11.08.31-22.14,1.52-33.23,2-18.24.73-36.48,1.32-54.73,1.64-7.8.13-15.61-.84-23.41-.82-10.63,0-21.26.66-31.89.76-8.87.09-17.74-.21-26.61-.38-9.08-.19-18.16-.29-27.23-.72-3.2-.15-6.36-1.17-9.54-1.8a6,6,0,0,0-1.9-.37c-3.75.56-7.51,1.87-11.23,1.75-30.62-1-61.24-2.26-91.86-3.46a4,4,0,0,1-3.2-1.59h30l.15-1.81c-5.87-.86-11.73-1.93-17.63-2.51-6.83-.67-14-2.4-20.5-1-9.94,2.2-19.07-2.69-28.73-1.18-16.12,2.52-32-1.37-48-2.21-6.3-.34-12.65.39-19,.23-15.18-.38-30.36-1.16-45.54-1.46-9-.18-18,.32-27,.36q-17.61.07-35.18-1.31c-4.19-.33-8.5,1.31-12.75,1.3-6.82,0-13.64-.69-20.46-1-11.27-.57-22.55-1.62-33.83-1.56-20.41.1-40.81.86-61.27,2h29.24c.08.71.16,1.42.23,2.12-4.73.85-9.49,2.49-14.19,2.35-6.42-.19-12.84-1.54-19.17-2.83-1.58-.33-2.67-3.22-4.22-3.47a189.13,189.13,0,0,0-20.82-2.33c-13-.61-26-.69-39-1.13-3.14-.1-6.6-.05-9.32-1.32-8.51-4-17.44-3.44-26.34-3.28Q740.58,11.59,671.86,13a48.85,48.85,0,0,0-6.94.38l27.28,3.54L692.08,18h-6.36l-.07,1.34c52.28,2.65,104.72,2.95,156.82,8.34l-.08,1.59L704.15,21.65c0,.46,0,.92-.08,1.38l123.07,7.56.11,1.68c-2.4.55-4.84,1.72-7.19,1.55-20.09-1.42-40.14-3.58-60.25-4.58-46.58-2.32-93.17-4.49-139.78-6-31.94-1-63.92-1-95.88-1-17.57,0-35.13,1.11-52.7,1.42-4.86.09-9.72-1.23-14.6-1.31-11.59-.21-23.19-.07-35.45-.07l2.66,1,0,.89c-3.26-.16-6.52-.39-9.78-.48-7.72-.2-15.82-1.88-23.09-.14-11.41,2.73-22.78,1.61-34.1,2-43.95,1.62-87.93,2.4-131.9,3.5q-25.49.64-51,1.28a9.78,9.78,0,0,1-5.42-1l49.84-1.52v-.61c-9.58,0-19.17-.18-28.74,0-18.15.42-36.3,1.07-54.45,1.62-12.6.38-25.21.65-37.82,1.16-12.37.51-24.73,1.42-37.11,1.84-9.3.31-18.61.05-27.91.21-3.8.06-7.58.57-11.38.87ZM162,25.29l.06.59q120.79-2.55,241.6-5.12C484.09,19,564.55,18.44,645,20.1c-20.39-1.24-40.79-1.84-61.19-2.08s-41-.16-61.47-.11-41,.23-61.46.41q-31,.29-62,.7c-20.48.29-41,.59-61.45,1s-41,1.8-61.43,1.4c-19.89-.39-39.68,1.87-59.55.48h8.15l-.17-1.69-29.83,3.64-.21-1.07,3.65-1.45-.06,1.16H130.58l0,1.91,44.23-1.87L175,24ZM121.54,26c-2-1.5-3.1-3-4.13-3-6.09.16-12.18.61-18.25,1.13-.66,0-1.22,1.17-1.82,1.8.75.43,1.53,1.26,2.27,1.23C106.49,26.93,113.37,26.49,121.54,26Zm1740.63-4.27-25.82,1.84.06.84,7.85.79c6-2.14,12.58.84,18.87.31C1862.8,24.21,1862.44,22.79,1862.17,21.74ZM276.65,26.27l0-.37H228.71l0,.37Zm384.72-5.53-.24.55h32c0-.19,0-.37,0-.55Z"/>
<path class="cls-1" d="M1919.76,18c-10.16,1.56-20.29,3.32-30.48,4.61-6.54.83-13.17,1-19.77,1.37-1,0-1.94-.85-2.9-1.31,0-.55,0-1.11.05-1.67l35.87-3.73-.92-.71L1919.76,12Z"/>
<path class="cls-2" d="M1699.94,45.49l126.16-7.1c0,.5.06,1,.08,1.5l-126.13,7.6C1700,46.82,1700,46.16,1699.94,45.49Z"/>
<path class="cls-2" d="M599.54,27.3l112.6,3.27c0,.54,0,1.07,0,1.6l-112.49-4Z"/>
<path class="cls-2" d="M92.09,35.15h44.64l0,1H92.09Z"/>
<path class="cls-2" d="M233.69,31.8h49.77v.4H233.7Z"/>
<path class="cls-2" d="M21.26,32.89H43.05l.07,1.29-31.28,2-.1-1.41,9.67-2Z"/>
<path class="cls-2" d="M124.49,30.87h25l0,1.59c-4.08-.27-8.15-.64-12.23-.77-4.25-.13-8.51,0-12.77,0Z"/>
<path class="cls-2" d="M1670.91,46.63h18.24c0,.3,0,.6,0,.9H1670.8C1670.84,47.23,1670.87,46.93,1670.91,46.63Z"/>
<ellipse class="cls-2" cx="548.43" cy="27.62" rx="23.78" ry="0.42"/>
<path class="cls-2" d="M834.7,23.88h16.07v1.17H834.7Z"/>
<path class="cls-2" d="M220.36,33.84H193.58v-.46h26.87Z"/>
<path class="cls-2" d="M884,25.09c4.74-.71,9.37-6.09,14.47-.64Z"/>
<ellipse class="cls-2" cx="513.2" cy="27.62" rx="17.06" ry="0.38"/>
<path class="cls-2" d="M171.61,34.9H151l-.17-.86c2.16-.2,4.32-.54,6.48-.54s4.54.4,6.82.49c2.44.09,4.9,0,7.35,0Z"/>
<path class="cls-1" d="M162,25.29,175,24l-.11-1.45-44.23,1.87,0-1.91h67.47l.06-1.16-3.65,1.45.21,1.07,29.83-3.64.17,1.69h-8.15c19.87,1.39,39.66-.87,59.55-.48,20.46.4,40.95-1,61.43-1.4s41-.74,61.45-1q31-.42,62-.7,30.73-.27,61.46-.41c20.49-.05,41-.12,61.47.11s40.8.84,61.19,2.08c-80.48-1.66-160.94-1.1-241.39.66S242.57,24.18,162,25.88Z"/>
<path class="cls-1" d="M121.54,26c-8.17.48-15.05.92-21.93,1.21-.74,0-1.52-.8-2.27-1.23.6-.63,1.16-1.75,1.82-1.8,6.07-.52,12.16-1,18.25-1.13C118.44,23,119.51,24.51,121.54,26Z"/>
<path class="cls-1" d="M1862.17,21.74c.27,1.05.63,2.47,1,3.78-6.29.53-12.83-2.45-18.87-.31l-7.85-.79-.06-.84Z"/>
<path class="cls-1" d="M276.65,26.27H228.74l0-.37h47.91Z"/>
<path class="cls-1" d="M661.37,20.74h31.79c0,.18,0,.36,0,.55h-32Z"/></svg>

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<g>
<path d="M363.273,0H148.728C66.719,0,0,66.719,0,148.728v214.544C0,445.281,66.719,512,148.728,512h214.544
C445.281,512,512,445.281,512,363.273V148.728C512,66.719,445.281,0,363.273,0z M472,363.272C472,423.225,423.225,472,363.273,472
H148.728C88.775,472,40,423.225,40,363.273V148.728C40,88.775,88.775,40,148.728,40h214.544C423.225,40,472,88.775,472,148.728
V363.272z"/>
</g>
</g>
<g>
<g>
<path d="M256,118c-76.094,0-138,61.906-138,138s61.906,138,138,138s138-61.906,138-138S332.094,118,256,118z M256,354
c-54.037,0-98-43.963-98-98s43.963-98,98-98s98,43.963,98,98S310.037,354,256,354z"/>
</g>
</g>
<g>
<g>
<circle cx="396" cy="116" r="20"/>
</g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/large_br.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
assets/images/logo-br.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
assets/images/logo-kart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

BIN
assets/images/logo-tv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
assets/images/lot1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
assets/images/pastille.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 30" x="0px" y="0px"><title>Arrow-Up-Circle</title><path d="M15,12a1,1,0,0,1-.71-.29L12,9.41,9.71,11.71a1,1,0,0,1-1.41-1.41l3-3a1,1,0,0,1,1.41,0l3,3A1,1,0,0,1,15,12Z"/><path d="M12,17a1,1,0,0,1-1-1V8a1,1,0,0,1,2,0v8A1,1,0,0,1,12,17Z"/><path d="M12,22A10,10,0,1,1,22,12,10,10,0,0,1,12,22ZM12,4a8,8,0,1,0,8,8A8,8,0,0,0,12,4Z"/><text x="0" y="39" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">Created by IconSrc</text><text x="0" y="44" fill="#000000" font-size="5px" font-weight="bold" font-family="'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif">from the Noun Project</text></svg>

After

Width:  |  Height:  |  Size: 729 B

BIN
assets/images/view-br.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
assets/images/view-lot1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8 KiB

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#02440b</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
favicon/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

BIN
favicon/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
favicon/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
favicon/mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,22 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="96.000000pt" height="96.000000pt" viewBox="0 0 96.000000 96.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,96.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M40 920 l-40 -40 0 -400 0 -400 40 -40 40 -40 400 0 400 0 40 40 40
40 0 400 0 400 -40 40 -40 40 -400 0 -400 0 -40 -40z m440 -100 c185 -69 220
-99 220 -187 0 -29 -6 -68 -14 -86 -16 -40 -87 -102 -132 -117 l-34 -12 30
-44 c86 -124 190 -181 278 -150 l42 15 0 -27 c-1 -51 -43 -82 -112 -82 -94 1
-176 65 -254 200 -26 44 -52 84 -57 87 -7 4 -7 -32 -2 -103 13 -170 13 -169
-42 -180 l-30 -6 -7 79 c-4 43 -14 151 -22 240 -18 183 -15 210 22 219 34 9
40 -3 48 -90 4 -39 9 -79 12 -88 11 -36 107 -12 156 39 27 28 33 42 33 78 0
62 -38 99 -127 124 -102 28 -138 60 -138 121 0 16 4 18 23 10 12 -5 60 -23
107 -40z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

14
favicon/site.webmanifest Normal file
View file

@ -0,0 +1,14 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

View file

@ -0,0 +1,4 @@
.nav-link.active {
color: $primary;
font-weight: bold;
}

4
sass/base/_common.scss Normal file
View file

@ -0,0 +1,4 @@
.bg-paper {
background-image: url('@Theme/images/bg-paper.jpg');
background-repeat: repeat;
}

73
sass/base/_fonts.scss Normal file
View file

@ -0,0 +1,73 @@
@font-face {
font-family: barlow-medium;
font-style: normal;
font-weight: 400;
src:
url("@Theme/fonts/barlow/Barlow-Medium.ttf")
format('truetype');
}
@font-face {
font-family: barlow-bold;
font-style: normal;
font-weight: 400;
src:
url("@Theme/fonts/barlow/Barlow-Bold.ttf")
format('truetype');
}
@font-face {
font-family: barlow-condensed;
font-style: normal;
font-weight: 400;
src:
url("@Theme/fonts/barlow/BarlowCondensed-Medium.ttf")
format('truetype');
}
@font-face {
font-family: barlow-condensed-semibold;
font-style: normal;
font-weight: 400;
src:
url("@Theme/fonts/barlow/BarlowCondensed-SemiBold.ttf")
format('truetype');
}
@font-face {
font-family: gobold;
font-style: normal;
font-weight: 400;
src:
url("@Theme/fonts/gobold/Gobold.ttf")
format('truetype');
}
@font-face {
font-family: arabdances;
font-style: normal;
font-weight: 400;
src:
url("@Theme/fonts/arab_dances/ArabDancesMediumItalic.ttf")
format('truetype');
}
.f-gobold {
font-family: gobold, serif !important;
}
.f-arabdances {
font-family: arabdances, serif !important;
}
.f-barlow-bold {
font-family: barlow-bold, serif !important;
}
.f-barlow-condensed {
font-family: barlow-condensed, serif !important;
}
.f-barlow-condensed-semibold {
font-family: barlow-condensed-semibold, serif !important;
}

124
sass/base/_layout.scss Normal file
View file

@ -0,0 +1,124 @@
@use "sass:map";
body {
> header {
@include media-breakpoint-up(xl) {
.rest-in-game-banner-container {
overflow: hidden;
}
}
.game-logo {
img {
max-height: 10rem;
}
}
.game-logo-banner {
@include media-breakpoint-up(xl) {
position: absolute;
top: 1.50rem;
left: 2.90rem;
}
}
.rest-in-game-banner {
transform: skew(12deg) translateX(5%);
>span {
transform: skew(-12deg);
}
}
.btn-connect {
position: relative;
padding-left: 2.3rem;
&::before {
position: absolute;
top: 50%;
left: 0.3rem;
width: 1.5rem;
height: 1.5rem;
background-image: url('@Theme/images/connect.svg');
background-size: contain;
content: "";
transform: translateY(-50%);
}
}
}
> footer {
.share {
width: 1.6rem;
}
.list-inline {
.list-inline-item {
&::after {
right: 0;
display: inline-block;
width: 0.2rem;
margin-left: 0.8rem;
background-color: $color-light;
content: '\00A0';
}
&:last-child::after {
display: none;
}
}
}
svg {
fill: $color-light;
}
.downlink {
> a {
display: inline-block;
}
}
@include media-breakpoint-up(md) {
.downlink {
position: relative;
height: 6rem;
> a {
position: absolute;
top: -3rem;
left: 50%;
width: 11rem;
max-height: 8rem;
transform: translateX(-50%);
> span {
position: relative;
top: -3rem;
}
}
}
}
#page-up {
position: fixed;
right: 0;
bottom: 0;
display: none;
padding: 0;
margin-right: 1rem;
&.show {
display: block;
}
svg {
width: 3rem;
fill: $color-dark;
filter: drop-shadow(0 0 2px #{rgba($color-light, $alpha: 0.4)});
}
}
}
}

24
sass/fo.scss Normal file
View file

@ -0,0 +1,24 @@
@charset "UTF-8";
// * UTILITIES
@import "./utilities/variables";
// * VENDOR
@import "@ldc-web/cookie-notice";
@import "glightbox/dist/css/glightbox.css";
@import "./vendor/bootstrap";
// * BASE
@import "./base/bootstrap-overload";
@import "./base/fonts";
@import "./base/common";
@import "./base/layout";
// * PAGES
@import "./pages/connexion";
@import "./pages/teaser";
@import "./pages/home";
@import "./pages/static_page";
@import "./pages/products";
@import "./pages/won";
@import "./pages/participate";

316
sass/mail-theme.scss Normal file
View file

@ -0,0 +1,316 @@
@use "sass:color";
@import "utilities/variables";
// 1. Include new custom variables
@import "utilities/bootstrap-variables";
// 2. Include functions first (so you can manipulate colors, SVGs, calc, etc)
// @import "bootstrap/scss/functions";
// 3. Include remainder of required Bootstrap stylesheets
@import "bootstrap/scss/variables";
// * Laravel mail vendor
/* Base */
body,
body *:not(html, style, br, tr, code) {
position: relative;
box-sizing: border-box;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Helvetica,
Arial,
sans-serif,
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol";
}
body {
width: 100% !important;
height: 100%;
padding: 0;
margin: 0;
background-color: $body-bg;
color: $body-color;
line-height: 1.4;
text-size-adjust: none;
}
p,
ul,
ol,
blockquote {
line-height: 1.4;
text-align: left;
}
img {
max-width: 100%;
}
a {
color: $link-color;
}
a img {
border: 0;
}
/* Typography */
h1 {
margin-top: 0;
color: $color-primary;
color: $color-tertiary;
font-size: 18px;
font-weight: bold;
text-align: left;
}
h2 {
margin-top: 0;
color: $color-tertiary;
font-size: 16px;
font-weight: bold;
text-align: left;
}
h3 {
margin-top: 0;
color: $color-tertiary;
font-size: 14px;
font-weight: bold;
text-align: left;
}
p {
margin-top: 0;
font-size: 16px;
line-height: 1.5em;
text-align: left;
}
.sub {
font-size: 12px;
}
/* Layout */
.wrapper {
-premailer-width: 100%;
width: 100%;
padding: 0;
margin: 0;
background-color: $bg-lightened;
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
.content {
-premailer-width: 100%;
width: 100%;
padding: 0;
margin: 0;
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
/* Header */
.header {
padding: 25px 0;
text-align: center;
}
.header a {
color: $color-primary;
font-size: 19px;
font-weight: bold;
text-decoration: none;
}
/* Logo */
.logo {
width: 75px;
height: 75px;
max-height: 75px;
}
/* Body */
.body {
-premailer-width: 100%;
width: 100%;
padding: 0;
border-top: 1px solid #{$bg-lightened};
border-bottom: 1px solid #{$bg-lightened};
margin: 0;
background-color: $bg-lightened;
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
.inner-body {
-premailer-width: 570px;
width: 570px;
padding: 0;
border-width: 1px;
border-color: color.scale($body-bg, $lightness: -30%);
border-radius: 2px;
margin: 0 auto;
background-color: $body-bg;
box-shadow: 0 2px 0 rgb(0 0 150 / 2.5%), 2px 4px 0 rgb(0 0 150 / 1.5%);
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
/* Subcopy */
.subcopy {
padding-top: 25px;
border-top: 1px solid color.scale($body-bg, $lightness: -30%);
margin-top: 25px;
}
.subcopy p {
font-size: 14px;
}
/* Footer */
.footer {
-premailer-width: 570px;
width: 570px;
padding: 0;
margin: 0 auto;
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
text-align: center;
}
.footer p {
color: #b0adc5;
font-size: 12px;
text-align: center;
}
.footer a {
color: #b0adc5;
text-decoration: underline;
}
/* Tables */
.table table {
-premailer-width: 100%;
width: 100%;
margin: 30px auto;
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
.table th {
padding-bottom: 8px;
border-bottom: 1px solid #edeff2;
margin: 0;
}
.table td {
padding: 10px 0;
margin: 0;
color: #74787e;
font-size: 15px;
line-height: 18px;
}
.content-cell {
max-width: 100vw;
padding: 32px;
}
/* Buttons */
.action {
-premailer-width: 100%;
width: 100%;
padding: 0;
margin: 30px auto;
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
text-align: center;
}
.button {
display: inline-block;
overflow: hidden;
border-radius: 4px;
color: $body-bg;
text-decoration: none;
text-size-adjust: none;
}
.button-blue,
.button-primary {
border-top: 8px solid #{$color-primary};
border-right: 18px solid #{$color-primary};
border-bottom: 8px solid #{$color-primary};
border-left: 18px solid #{$color-primary};
background-color: #{$color-primary};
}
.button-green,
.button-success {
border-top: 8px solid #{$color-success};
border-right: 18px solid #{$color-success};
border-bottom: 8px solid #{$color-success};
border-left: 18px solid #{$color-success};
background-color: #{$color-success};
}
.button-red,
.button-error {
border-top: 8px solid #{$color-danger};
border-right: 18px solid #{$color-danger};
border-bottom: 8px solid #{$color-danger};
border-left: 18px solid #{$color-danger};
background-color: #{$color-danger};
}
/* Panels */
.panel {
border-left: $color-primary solid 4px;
margin: 21px 0;
}
.panel-content {
padding: 16px;
background-color: $bg-lightened;
color: $body-color;
}
.panel-content p {
color: $body-color;
}
.panel-item {
padding: 0;
}
.panel-item p:last-of-type {
padding-bottom: 0;
margin-bottom: 0;
}
/* Utilities */
.break-all {
word-break: break-all;
}

View file

@ -0,0 +1,7 @@
#connexion {
.signin {
border-width: 0.2rem !important;
/* stylelint-disable-next-line color-function-notation */
border-color: rgb(var(--bs-primary-rgb), 50%) !important;
}
}

163
sass/pages/_home.scss Normal file
View file

@ -0,0 +1,163 @@
.home-page,
.teaser-page {
@include media-breakpoint-up(lg) {
.main-rotate {
transform: rotateZ(-5deg);
}
.anti-rotate {
transform: rotateZ(5deg);
}
}
#home,
#teaser {
.home-dates {
top: -2rem;
}
.home-title {
line-height: 5rem;
@include media-breakpoint-up(xxl) {
line-height: 6rem;
}
span {
&:nth-of-type(1) {
font-size: 11rem;
letter-spacing: -22px;
@include media-breakpoint-up(xl) {
font-size: 14rem;
}
@include media-breakpoint-up(xxl) {
font-size: 16rem;
}
@include media-breakpoint-up(xxxl) {
font-size: 18rem;
}
}
&:nth-of-type(2) {
font-size: 6rem;
@include media-breakpoint-up(xl) {
font-size: 7rem;
}
@include media-breakpoint-up(xxl) {
font-size: 9rem;
}
}
&:nth-of-type(3) {
font-size: 8rem;
letter-spacing: -6px;
@include media-breakpoint-up(xl) {
font-size: 10rem;
}
@include media-breakpoint-up(xxl) {
font-size: 11rem;
}
@include media-breakpoint-up(xxxl) {
font-size: 13rem;
}
}
}
}
.picture-100-win {
left: 50%;
transform: translate(-50%,-14%) scale(.6) rotate(5deg);
@include media-breakpoint-up(xl) {
transform: translate(-50%,-12%) scale(.8) rotate(5deg);
}
}
}
#howto {
.howto-bg {
background-image: url('@Theme/images/bg-tortoise-greendeep.jpg');
background-repeat: repeat;
@include media-breakpoint-up(lg) {
bottom: -3rem;
left: -1rem;
}
}
.howto-text {
width: 100%;
@include media-breakpoint-up(lg) {
width: 15rem;
}
}
.badge-vertical {
width: 4rem;
padding: 0.8rem;
@include media-breakpoint-up(md) {
width: 7rem;
padding: 1.3rem;
}
&::after {
display: block;
width: 0.2rem;
height: 200%;
margin: 0 auto;
background-color: $color-white;
content: ' ';
}
&:last-child::after {
display: none;
}
}
}
#gifts {
#carousel-lots {
.carousel-text-pannel {
@include media-breakpoint-up(md) {
max-width: 40rem;
}
}
img {
max-height: 20rem;
@include media-breakpoint-up(md) {
max-height: inherit;
}
}
.main-rotate {
transform: rotateZ(-1deg);
}
.anti-rotate {
transform: rotateZ(1deg);
}
@include media-breakpoint-up(lg) {
.main-rotate {
transform: rotateZ(-5deg);
}
.anti-rotate {
transform: rotateZ(5deg);
}
}
}
}
}

View file

@ -0,0 +1,23 @@
.participate-page {
.br-and-arrow {
position: relative;
text-align: center;
img {
width: 9rem;
}
&::after {
position: relative;
display: inline-block;
width: 3rem;
height: 4rem;
background-image: url('@Theme/images/arrow-code.png');
background-position: center;
background-repeat: no-repeat;
background-size: contain;
content: ' ';
transform: translateY(100%);
}
}
}

15
sass/pages/_products.scss Normal file
View file

@ -0,0 +1,15 @@
.product-page {
.product-list {
.product {
width: 16rem;
@include media-breakpoint-up(sm) {
width: 13rem;
}
@include media-breakpoint-up(lg) {
width: 12rem;
}
}
}
}

View file

@ -0,0 +1,18 @@
.static-page {
h1 {
color: $color-quint;
text-align: center;
text-transform: uppercase;
}
h2,h3,h4,h5,h6 {
color: $color-quad;
text-transform: uppercase;
}
hr {
width: 30%;
border-top: 0.2rem solid #{$color-quad};
margin: 0 auto;
}
}

26
sass/pages/_teaser.scss Normal file
View file

@ -0,0 +1,26 @@
.teaser-page {
@include media-breakpoint-up(xl) {
#teaser {
margin-top: 8rem;
}
}
.container-big {
max-width: 1500px;
}
.picture-100-win {
left: 40%;
transform: translateX(-60%);
}
@include media-breakpoint-up(xl) {
.main-rotate {
transform: rotateZ(-5deg);
}
.anti-rotate {
transform: rotateZ(5deg);
}
}
}

28
sass/pages/_won.scss Normal file
View file

@ -0,0 +1,28 @@
@import "./../partials/spin_wheel";
@import "./../partials/scratch";
.won-page {
#wheel-wrapper {
position: relative;
width: 16rem;
margin: 0 auto;
}
@include media-breakpoint-up(md) {
.prize-rotate {
transform: rotateZ(-3deg);
}
.anti-rotate {
transform: rotateZ(3deg);
}
}
.wide-banner {
position: relative;
@include media-breakpoint-up(md) {
right: -2rem;
}
}
}

View file

@ -0,0 +1,7 @@
#scratch-wrapper {
canvas {
position: absolute;
top: 0;
left: 0;
}
}

View file

@ -0,0 +1,168 @@
#wheel-wrapper {
* {
padding: 0;
margin: 0;
}
.wheel {
position: relative;
overflow: hidden;
width: 16rem;
height: 16rem;
border: 0.4rem solid #{$color-white};
border-radius: 50%;
margin: 0;
box-shadow: rgb(0 0 0 / 20%) 0 0 10px, rgb(0 0 0 / 5%) 0 3px 0;
transform: rotate(0deg);
&::before {
position: absolute;
z-index: 1000;
left: 0;
width: calc(16rem - 0.2rem * 2);
height: calc(16rem - 0.2rem * 2);
border: 0.2rem solid rgb(0 0 0 / 10%);
border-radius: 50%;
content: "";
}
.wheel-inner {
width: 100%;
height: 100%;
transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
}
.wheel-sec {
position: absolute;
top: -.1rem;
left: -.1rem;
width: 16rem;
height: calc(16rem / 2);
background-origin: border-box;
background-position: center;
background-repeat: no-repeat;
background-size: auto;
opacity: 1;
transform-origin: calc(16rem / 2) calc(16rem / 2);
}
.wheel-spin {
position: absolute;
z-index: 1000;
top: 50%;
left: 50%;
width: 4.2rem;
height: 4.2rem;
border-radius: 50%;
margin: -34px 0 0 -34px;
background: #{$color-white};
box-shadow: rgb(0 0 0 / 10%) 0 3px 0;
cursor: pointer;
font-family: "Exo 2", sans-serif;
user-select: none;
&::before {
position: absolute;
top: -12px;
left: 14px;
width: 0;
height: 0;
border-width: 0 20px 28px;
border-style: solid;
border-color: transparent transparent #{$color-white};
content: "";
}
&::after {
position: relative;
z-index: 100000;
display: block;
width: 4.2rem;
height: 4.2rem;
color: $color-dark;
content: "LANCER";
font-size: .7rem;
line-height: 4.2rem;
text-align: center;
text-shadow: 0 2px 0 #{$color-white}, 0 -1px 0 rgb(0 0 0 / 30%);
}
.wheel-spin-inner {
position: absolute;
z-index: 999;
top: 50%;
left: 50%;
width: 54px;
height: 54px;
border-radius: 50%;
margin: -27px 0 0 -27px;
background: $color-white;
/* Old browsers */
/* stylelint-disable-next-line declaration-property-value-no-unknown */
background: radial-gradient(center, ellipse cover, rgb(255 255 255 / 100%) 0%, rgb(234 234 234 / 100%) 100% ); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0, center center, 100%, color-stop(0%, rgb(255 255 255 / 100%)), color-stop(100%, rgb(234 234 234 / 100%)) ); /* Chrome,Safari4+ */
/* stylelint-disable-next-line declaration-property-value-no-unknown */
background: radial-gradient(center, ellipse cover, rgb(255 255 255 / 100%) 0%, rgb(234 234 234 / 100%) 100% ); /* Chrome10+,Safari5.1+ */
/* stylelint-disable-next-line declaration-property-value-no-unknown */
background: radial-gradient(center, ellipse cover, rgb(255 255 255 / 100%) 0%, rgb(234 234 234 / 100%) 100% ); /* Opera 12+ */
/* stylelint-disable-next-line declaration-property-value-no-unknown */
background: radial-gradient(center, ellipse cover, rgb(255 255 255 / 100%) 0%, rgb(234 234 234 / 100%) 100% ); /* IE10+ */
background: radial-gradient(ellipse at center, rgb(255 255 255 / 100%) 0%, rgb(234 234 234 / 100%) 100% ); /* W3C */
box-shadow: rgb(255 255 255 / 100%) 0 -2px 0 inset, rgb(255 255 255 / 100%) 0 2px 0 inset, rgb(0 0 0 / 40%) 0 0 5px;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
&:active,&.active {
&::after {
font-size: .8rem;
}
.wheel-spin-inner {
box-shadow: rgb(0 0 0 / 40%) 0 0 5px inset;
}
}
}
.wheel-shine {
position: absolute;
top: 0;
left: 0;
width: 16rem;
height: 16rem; /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0, center center, 100%, color-stop(0%, rgb(255 255 255 / 100%)), color-stop(1%, rgb(255 255 255 / 99%)), color-stop(9%, rgb(255 255 255 / 91%)), color-stop(100%, rgb(255 255 255 / 0%)) ); /* Chrome,Safari4+ */ /* Chrome10+,Safari5.1+ */ /* Opera 12+ */
/* stylelint-disable-next-line declaration-property-value-no-unknown */
background: radial-gradient(center, ellipse cover, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 99%) 1%, rgb(255 255 255 / 91%) 9%, rgb(255 255 255 / 0%) 100% ); /* IE10+ */
background: radial-gradient(ellipse at center, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 99%) 1%, rgb(255 255 255 / 91%) 9%, rgb(255 255 255 / 0%) 100% ); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
opacity: 0.1;
}
}
/* ANIMATION */
@keyframes hh {
0%,
100% {
transform: rotate(0deg);
}
50% {
transform: rotate(7deg);
}
}
@keyframes hh {
0%,
100% {
transform: rotate(0deg);
}
50% {
transform: rotate(7deg);
}
}
.spin { /* Chrome, Safari, Opera */
animation: hh 0.1s;
}
}

View file

@ -0,0 +1,46 @@
@use "sass:list";
@import "mixins";
@import "bootstrap/scss/functions";
@import "./bs-customs/input";
// SET SOME CLASSES WITH BOOTSTRAP BREAKPOINTS
// * Reponsive borders
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
@include generate-bs-borders($infix, $prefix);
@each $color, $value in $theme-colors {
@include generate-bs-borders($infix, $prefix, $color);
}
}
}
// * Responsive sizings (used in laravel errors layouts)
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
.w#{$infix}-25 {
width: 25% !important;
}
.w#{$infix}-50 {
width: 50% !important;
}
.w#{$infix}-75 {
width: 75% !important;
}
.w#{$infix}-100 {
width: 100% !important;
}
@each $prop, $unit in (width: vw, height: vh) {
@each $size in [25, 50, 75, 100] {
.#{$unit}#{$infix}-#{$size} {
#{$prop}: #{$size}#{$unit} !important;
}
}
}
}
}

View file

@ -0,0 +1,73 @@
@use "sass:map";
@import 'bootstrap/scss/functions';
// Override bootstrap colors
$primary: $color-primary;
$secondary: $color-secondary;
$success: $color-success;
$info: $color-info;
$warning: $color-warning;
$danger: $color-danger;
$light: $color-light;
$white: $color-white;
$dark: $color-dark;
$tertiary: $color-tertiary;
$quad: $color-quad;
$quint: $color-quint;
$theme-colors: (
primary: $primary,
secondary: $secondary,
tertiary: $tertiary,
quad: $quad,
quint: $quint,
success: $success,
info: $info,
warning: $warning,
danger: $danger,
light: $light,
"white": $white,
dark: $dark,
);
$custom-theme-colors: map.merge($theme-colors,
(
'tertiary': $tertiary,
'quad': $quad,
'quint': $quint,
));
$theme-colors: map.merge($theme-colors, $custom-theme-colors);
$theme-colors-rgb: map-loop($theme-colors, to-rgb, '$value');
// Override bootstrap vars
$font-family-base: $font-default-family-base;
$font-size-base: $font-default-size-base;
$line-height-base: $line-default-height-base;
// Add font-size variable
$heading-multiplicator: 1;
$h1-font-size: $font-size-base * $heading-multiplicator * 2.5;
$h2-font-size: $font-size-base * $heading-multiplicator * 2;
$h3-font-size: $font-size-base * $heading-multiplicator * 1.75;
$h4-font-size: $font-size-base * $heading-multiplicator * 1.5;
$h5-font-size: $font-size-base * $heading-multiplicator * 1.25;
$h6-font-size: $font-size-base * $heading-multiplicator;
// Add the new font-size in this map
$font-sizes: (
1: $h1-font-size,
2: $h2-font-size,
3: $h3-font-size,
4: $h4-font-size,
5: $h5-font-size,
6: $h6-font-size,
);
// Breadkpoints
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px,
xxxl: 1600px
);

View file

@ -0,0 +1,54 @@
@mixin generate-bs-borders($infix, $prefix, $color:null) {
$color-var: var(--#{$prefix}border-color);
@if $color {
$color-var: rgba(var(--#{$prefix}#{$color}-rgb));
$color: "-#{$color}";
}
.border#{$infix}#{$color}-top {
border-top: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-end {
border-right: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-bottom {
border-bottom: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-start {
border-left: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-0 { border: 0 !important; }
.border#{$infix}#{$color}-top-0 { border-top: 0 !important; }
.border#{$infix}#{$color}-end-0 { border-right: 0 !important; }
.border#{$infix}#{$color}-bottom-0 { border-bottom: 0 !important; }
.border#{$infix}#{$color}-start-0 { border-left: 0 !important; }
@each $idx, $b-width in $border-widths {
$pidx: list.index(($border-widths), ($idx $b-width));
.border#{$infix}#{$color}-top-#{$idx} {
border-top: $b-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-end-#{$idx} {
border-right: $b-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-bottom-#{$idx} {
border-bottom: $b-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-start-#{$idx} {
border-left: $b-width var(--#{$prefix}border-style) #{$color-var} !important;
}
}
.border#{$infix}#{$color}-x {
border-right: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
border-left: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
}
.border#{$infix}#{$color}-y {
border-top: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
border-bottom: $border-width var(--#{$prefix}border-style) #{$color-var} !important;
}
}

View file

@ -0,0 +1,38 @@
@use "sass:color";
// * COLORS
$color-white: #fff;
$color-light: #eceff3;
$color-dark: #070000;
$color-success: #00ac61;
$color-danger: #f71200;
$color-info: #508fdf;
$color-warning: #e6cd00;
$color-primary: #024d2c;
$color-secondary: #01803b;
$color-tertiary: #e30713;
$color-quad: #00719e;
$color-quint: #fba629;
// * BACKGROUNDS COLORS
$bg-lightened: $color-light;
$bg-darkened: $color-dark;
$bg-action: $color-primary;
// * FONTS COLORS
$color-default-titles: $color-primary;
$color-default-texts: $color-dark;
// * FONTS
$font-default-family-base: barlow-medium, sans-serif; // - The default site font family.
$font-default-size-base: 1rem; // Assumes the browser default, typically `16px`
$line-default-height-base: 1.65;
// * Inputs
$input-bg: color.adjust($color-light, $lightness: -10%);
$input-color: color.adjust($color-primary, $lightness: -4%);
// * Cookie Notice
$ck-primary-color: $color-primary;
$ck-secondary-color: $color-tertiary;
$ck-background-color: $color-light;

View file

@ -0,0 +1,32 @@
@use "sass:color";
// * Input Form floating text
.form-floating {
> label {
color: #{color.adjust($color-primary, $lightness: -4%)};
font-weight: bold;
}
> .form-control,
> .form-control-plaintext {
&::placeholder {
color: transparent;
}
}
> .form-control-plaintext,
> .form-control:focus,
> .form-control:not(:placeholder-shown),
> .form-select {
/* stylelint-disable-next-line no-descending-specificity */
~ label {
color: #{rgba(color.adjust($color-primary, $lightness: -4%), $form-floating-label-opacity)};
}
}
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
// > .form-control:-webkit-autofill {
// ~ label {
// color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
// }
// }
}

47
sass/vendor/_bootstrap.scss vendored Normal file
View file

@ -0,0 +1,47 @@
// 1. Include new custom variables
@import "./../utilities/bootstrap-variables";
// 2. Include functions first (so you can manipulate colors, SVGs, calc, etc)
@import "bootstrap/scss/functions";
// 3. Include remainder of required Bootstrap stylesheets
@import "bootstrap/scss/variables";
@import "bootstrap/scss/variables-dark";
// 4. Include remainder of required parts
@import "bootstrap/scss/maps";
@import "bootstrap/scss/mixins";
@import "bootstrap/scss/root";
// 5. Optionally include any other parts as needed
@import "bootstrap/scss/alert";
@import "bootstrap/scss/buttons";
@import "bootstrap/scss/button-group";
@import "bootstrap/scss/containers";
@import "bootstrap/scss/dropdown";
@import "bootstrap/scss/forms";
@import "bootstrap/scss/grid";
@import "bootstrap/scss/helpers";
@import "bootstrap/scss/images";
@import "bootstrap/scss/list-group";
@import "bootstrap/scss/nav";
@import "bootstrap/scss/navbar";
@import "bootstrap/scss/pagination";
@import "bootstrap/scss/spinners";
@import "bootstrap/scss/reboot";
@import "bootstrap/scss/tables";
@import "bootstrap/scss/tooltip";
@import "bootstrap/scss/transitions";
@import "bootstrap/scss/type";
@import "bootstrap/scss/utilities";
@import "bootstrap/scss/close";
@import "bootstrap/scss/breadcrumb";
@import "bootstrap/scss/carousel";
@import "bootstrap/scss/card";
@import "bootstrap/scss/accordion";
// 6. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
@import "bootstrap/scss/utilities/api";
// 7 Overload bootstrap classes
@import "./../utilities/bootstrap-custom";

72
theme.config.php Normal file
View file

@ -0,0 +1,72 @@
<?php
return [
// * GGW version
'version' => '2.2.4',
// * Theme name
'name' => 'ramadan-2024',
// * Picture BO validation sizes
'models' => [
'prizes' => [
'picture_max_width' => 700,
'picture_max_height' => 560,
],
'products' => [
'picture_max_width' => 550,
'picture_max_height' => 550,
],
'ranges' => [
'picture_max_width' => 476,
'picture_max_height' => 355,
],
],
// * Image resizer config
/**
* Format can specifiy to which format save the image
* JPEG PNG GIF TIF BMP ICO PSD WebP
* GD ✔️ ✔️ ✔️ - - - - ✔️ *
* Imagick ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ *
* For WebP support GD driver must be used with PHP 5 >= 5.5.0 or PHP 7
* in order to use imagewebp(). If Imagick is used, it must be compiled
* with libwebp for WebP support.
* resize => will resize the image (boolean)
* fit => Combine cropping and resizing to format image in a smart way (boolean)
* keepRatio => will keep image ratio wile resizing (boolean)
* trim => boolean to trim the image using border color
* inCanvas => to make sure image boundarie is respected
* format => select tha wantd ouput form, yan can just convert images if you want
* example :
* 'small' => [
* 'height' => 500,
* 'width' => 250,
* 'inCanvas' => true,
* 'trim' => ['transparent', null, 10]
* ],
* 'smallWebp' => [
* 'height' => 500,
* 'width' => 250,
* 'inCanvas' => true,
* 'format' => 'webp'
* ],
* 'justconvertImage' => [
* 'format' => 'webp'
* ]
*/
'resizes' => [
'trimlot1' => [
'width' => 700,
'height' => 560,
'inCanvas' => true,
'fit' => true,
'format' => 'webp'
],
'trimlot2' => [
'width' => 400,
'height' => 400,
'fit' => true,
'inCanvas' => true,
'trim' => ['transparent', null, 10],
'format' => 'png'
]
]
];

93
ts/base/common.ts Normal file
View file

@ -0,0 +1,93 @@
// * Video frames.
document.addEventListener("DOMContentLoaded", function () {
const videoFrameList = document.querySelectorAll(
".video-frame"
) as NodeListOf<HTMLLinkElement>;
for (const videoLink of videoFrameList) {
if (!videoLink.dataset.type) {
throw new Error("Missing dataset type");
}
if (!videoLink.dataset.frame) {
throw new Error("Missing dataset frame");
}
// @ts-ignore
window.__CN_VIDEO = window.__CN_VIDEO ?? {};
const newIframe = document.createElement("iframe");
newIframe.frameBorder = "0";
newIframe.allow = "fullscreen";
newIframe.width = "1920px";
newIframe.height = "1080px";
newIframe.setAttribute("allowfullscreen", "allowfullscreen");
// @ts-ignore
const instance = new FsLightbox();
instance.props.sources = [newIframe];
setTimeout(() => {
videoLink.addEventListener("click", (e) => {
e.preventDefault();
// * This comes fslightbox lib
// @ts-ignore
instance.open();
setTimeout(function () {
// @ts-ignore
newIframe.src = window.__CN_VIDEO[videoLink.dataset.type]
? String(videoLink.href)
: String(videoLink.dataset.frame);
}, 50);
return false;
});
}, 300);
}
const scrollTop = (target: string, offset: number = 0) => {
const targetElement = document.getElementById(target);
if (!targetElement) throw new Error(`scrollTop requires ${target} to exist`);
const top = targetElement.getBoundingClientRect().top,
t = window.scrollY + top - offset;
scrollTo({
top: t,
behavior: "smooth"
});
};
const pageUp = document.getElementById("page-up");
if (pageUp) {
pageUp.addEventListener("click", () => scrollTop("content-container", 250)),
document.addEventListener("scroll", () => {
if (window.scrollY > 250) {
pageUp.classList.add("show");
return;
}
pageUp.classList.remove("show");
});
}
});
// * Input Validation.
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll("input.is-invalid").forEach((input) => {
let timer: NodeJS.Timeout|null = null;
input.addEventListener("change", () => {
const parent = input.parentElement;
input.classList.remove("is-invalid");
if (parent && parent.classList.contains("is-invalid")) {
parent.classList.remove("is-invalid");
}
});
input.addEventListener("input", () => {
if (timer) {
clearTimeout(timer);
}
timer = setTimeout(() => {
const parent = input.parentElement;
input.classList.remove("is-invalid");
if (parent && parent.classList.contains("is-invalid")) {
parent.classList.remove("is-invalid");
}
}, 250);
});
});
});

View file

@ -0,0 +1,104 @@
<template>
<div class="form-floating">
<input
ref="inputDate"
:id="String(ipt_id)"
:class="String(ipt_class)"
:type="ipt_type"
:name="String(ipt_name)"
:placeholder="`${String(ipt_placeholder)} ${ipt_required ? '*' : ''}`"
v-model="ipt_value"
:autocomplete="String(ipt_autocomplete)"
:required="Boolean(ipt_required)"
@focus="startEditing"
@change="changed"
>
<label :for="String(ipt_id)">{{ `${String(ipt_placeholder)} ${ipt_required ? '*' : ''}` }}</label>
</div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import trans from "../../../../ts/modules/trans";
export default defineComponent({
name: "InputBirthDate",
mixins: [trans],
data(): {
ipt_id: string | null;
ipt_class: string;
ipt_name: string;
ipt_placeholder: string;
ipt_autocomplete: string;
ipt_required: boolean;
ipt_value: string | undefined;
ipt_type: string;
cached_value: string | null;
} {
return {
ipt_id: null,
ipt_class: "form-control",
ipt_name: "birthdate",
ipt_placeholder: this.__("Date de naissance"),
ipt_autocomplete: "bday",
ipt_required: true,
ipt_value: undefined,
ipt_type: "text",
cached_value: null,
};
},
computed: {},
mounted() {
const json = String(this.$attrs.json ?? "{}"),
data = JSON.parse(json);
this.ipt_id = data.id ?? this.ipt_id;
this.ipt_class = data.class ?? this.ipt_class;
this.ipt_name = data.name ?? this.ipt_name;
this.ipt_placeholder = data.placeholder ?? this.ipt_placeholder;
this.ipt_autocomplete = data.autocomplete ?? this.ipt_autocomplete;
this.ipt_required = data.required ?? this.ipt_required;
this.ipt_value = data.value;
// * Transform to date type before submit
this.$nextTick(() => {
const inputDate = this.$refs.inputDate as HTMLInputElement;
// * Input already filled.
if (inputDate.value) {
this.startEditing();
} else if (this.ipt_value) {
this.ipt_value = new Date(this.ipt_value).toLocaleDateString();
}
inputDate.closest("form")?.addEventListener("submit", () => {
this.startEditing();
});
});
},
methods: {
beforeSubmit() {},
startEditing(): void {
const inputDate = this.$refs.inputDate as HTMLInputElement;
if (inputDate.value.length) {
this.cached_value = inputDate.value;
}
this.switchIptTypeToDate();
},
/**
* Change the input type to date
*/
switchIptTypeToDate(): void {
this.ipt_type = "date";
if (this.cached_value) {
const date = new Date(Date.parse(this.cached_value));
this.ipt_value = new Date(date.getTime() - (date.getTimezoneOffset() * 60000))
.toISOString()
.split("T")[0] ?? date.toISOString().substring(0,10);
}
},
changed() {
const inputDate = this.$refs.inputDate as HTMLInputElement;
this.cached_value = inputDate.value;
this.switchIptTypeToDate();
}
},
});
</script>

View file

@ -0,0 +1,136 @@
<template>
<button
@click.prevent="toggleVisibility()"
@keydown="keydown"
:class="`btn btn-primary rounded-0 rounded-end password-visibility-${inputId} h-100`"
:aria-pressed="visible"
>
<span
class="text-bg-primary reveal d-flex justify-content-center align-items-center h-100"
type="button"
:title="visible ? __('vue.PasswordVisibility.hide') : __('vue.PasswordVisibility.show')"
data-bs="tooltip"
>
<FontAwesomeIcon
v-if="visible"
icon="fas fa-eye-slash"
:aria-hidden="true"
/>
<FontAwesomeIcon
v-else
icon="fas fa-eye"
:aria-hidden="true"
/>
</span>
</button>
</template>
<script lang="ts">
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { Tooltip } from "bootstrap";
import { defineComponent } from "vue";
import trans from "./../../../../ts/modules/trans";
export default defineComponent({
name: "PasswordVisibility",
mixins: [trans],
components: { FontAwesomeIcon },
data(): {
inputId: string;
input: HTMLInputElement;
visible: boolean;
tooltipList: HTMLButtonElement[];
} {
return {
inputId: "",
input: document.createElement("input"),
visible: false,
tooltipList: [],
};
},
computed: {},
mounted() {
const json = String(this.$attrs.json ?? "{}"),
data = JSON.parse(json);
this.inputId = data.inputId;
this.input = document.getElementById(this.inputId) as HTMLInputElement;
if (!this.input) {
throw new Error(`Cannot find input id '${this.inputId}'`);
}
if (this.input.tagName !== "INPUT") {
throw new Error(`id '${this.inputId}' is not an input`);
}
if ((this.input as HTMLInputElement).type !== "password") {
throw new Error(`id '${this.inputId}' is not an input password`);
}
this.input = this.input as HTMLInputElement;
this.$nextTick(() => {
this.updateBootstrapTooltip();
});
},
methods: {
keydown(e:KeyboardEvent):void {
if (
e.key === " " ||
e.code === "Space" ||
e.keyCode === 32 ||
e.key === "Enter" ||
e.code === "Enter" ||
e.keyCode === 13
) {
this.toggleVisibility();
e.preventDefault();
}
},
/**
* Update password status (visible, hidden).
*/
toggleVisibility(): void {
if (this.input.type === "password") {
this.input.type = "text";
this.visible = true;
} else {
this.input.type = "password";
this.visible = false;
}
this.$nextTick(() => {
this.updateBootstrapTooltip();
});
},
/**
* Update Bootstrap tooltips.
*/
updateBootstrapTooltip() {
let newTooltipList = [].slice.call(
document.querySelectorAll(
".password-visibility-" + this.inputId + " [data-bs=\"tooltip\"]"
)
) as HTMLButtonElement[];
let tmp = newTooltipList.filter((x) => !this.tooltipList.includes(x));
tmp.map((tooltip) => {
return new Tooltip(tooltip);
});
this.closeBootstrapTooltip();
this.tooltipList = newTooltipList;
},
/**
* Close all Bootstrap tooltips.
*/
closeBootstrapTooltip() {
this.tooltipList.forEach((tooltip) => {
tooltip.blur();
Tooltip.getInstance(tooltip)?.hide();
});
},
},
});
</script>
<style lang="scss">
.reveal {
width: 52px;
}
</style>

8
ts/env.d.ts vendored Normal file
View file

@ -0,0 +1,8 @@
/// <reference types="vite/client" />
declare module "*.vue" {
import type { DefineComponent } from "vue";
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>;
export default component;
}

20
ts/fo.ts Normal file
View file

@ -0,0 +1,20 @@
// ASSETS
/// <reference types="vite/client" />
import.meta.glob(["./../assets/images/**"]);
// UTILITIES
import "./utilities/bootstrap";
import "./utilities/fontawesome";
import "./utilities/vue-fo";
// CUSTOM
import "./base/common";
// PAGES
import "./pages/home";
import "./pages/products";
import "./pages/won";
// Cookies
import CookieNotice from "@ldc-web/cookie-notice";
window.CookieNotice = CookieNotice;

12
ts/index.d.ts vendored Normal file
View file

@ -0,0 +1,12 @@
export { };
import type CookieNotice from "@ldc-web/cookie-notice";
import { AxiosStatic } from "axios";
declare global {
interface Window {
CookieNotice: typeof CookieNotice;
axios: AxiosStatic;
}
}

26
ts/modules/bsTooltips.ts Normal file
View file

@ -0,0 +1,26 @@
import type * as bootstrap from "bootstrap";
let tooltips: Array<bootstrap.Tooltip> = [];
export default {
methods: {
initTooltips() {
// Disable tooltips on reboot.
tooltips.forEach((tooltip) => {
tooltip.disable();
tooltip.hide();
});
tooltips = [].slice
.call(document.querySelectorAll("[data-bs-toggle=\"tooltip\"]"))
.map(function (tooltipTriggerEl) {
return new window.bootstrap.Tooltip(tooltipTriggerEl, {
customClass: "large-tooltip",
delay: {
show: 1250,
hide: 0,
},
});
});
},
},
};

48
ts/pages/home.ts Normal file
View file

@ -0,0 +1,48 @@
import { Carousel } from "bootstrap";
document.addEventListener("DOMContentLoaded", function () {
if (!document.querySelector("main.home-page")) {
return;
}
// * BR Carousel (With BS)
const lotsCarousel = document.getElementById("carousel-lots");
if (lotsCarousel) {
const playPauseBtn = document.getElementById("coupons-carousel-play-btn");
const carousel = Carousel.getOrCreateInstance(lotsCarousel, {
// * Start cycle on swipe (or play btn)
ride: true
});
let isRunning = false;
if (playPauseBtn) {
const updatePlayBtnStatus = () => {
// * Toggle once
if (!isRunning) {
playPauseBtn.children.item(0)?.classList.remove("d-none");
playPauseBtn.children.item(1)?.classList.add("d-none");
playPauseBtn.setAttribute("title", String(playPauseBtn.dataset["play"]));
} else {
playPauseBtn.children.item(0)?.classList.add("d-none");
playPauseBtn.children.item(1)?.classList.remove("d-none");
playPauseBtn.setAttribute("title", String(playPauseBtn.dataset["stop"]));
}
};
playPauseBtn.addEventListener("click", () => {
if (isRunning) {
carousel.pause(true);
} else {
carousel.cycle();
}
isRunning = !isRunning;
updatePlayBtnStatus();
});
lotsCarousel.addEventListener("slide.bs.carousel", () => {
isRunning = true;
updatePlayBtnStatus();
});
}
}
});

45
ts/pages/products.ts Normal file
View file

@ -0,0 +1,45 @@
import GLightbox from "glightbox";
document.addEventListener("DOMContentLoaded", function () {
if (!document.querySelector("main.product-page")) {
return;
}
const pictureLinks = document.querySelectorAll(".glightbox") as NodeListOf<HTMLLinkElement>,
pictures = document.querySelectorAll(".glightbox img") as NodeListOf<HTMLImageElement>,
imageCount = pictures.length;
let counter: number = 0,
glightbox: GLightbox|null = null;
function incrementCounter() {
counter++;
if ( counter === imageCount ) {
glightbox = new GLightbox({
selector: ".glightbox",
});
}
}
pictures.forEach((imageElement) => {
if (imageElement.complete) {
incrementCounter();
} else {
imageElement.addEventListener( "load", incrementCounter, false );
}
});
pictureLinks.forEach((linkElement, index) => linkElement.addEventListener("keydown", (kbdEvt:KeyboardEvent) => {
if (
kbdEvt.key == " " ||
kbdEvt.code == "Space" ||
kbdEvt.keyCode == 32 ||
kbdEvt.key == "Enter" ||
kbdEvt.code == "Enter" ||
kbdEvt.keyCode == 13
) {
glightbox.openAt(index);
kbdEvt.preventDefault();
}
}));
});

66
ts/pages/won.ts Normal file
View file

@ -0,0 +1,66 @@
import { SCRATCH_TYPE, ScratchCard } from "scratchcard-js";
import grattageUrl from "./../../assets/images/animations/grattage.png";
document.addEventListener("DOMContentLoaded", function () {
if (!document.querySelector("main.won-page")) {
return;
}
const scratchWrapper = document.getElementById("scratch-wrapper"),
scratchPicture = document.getElementById("scratch-picture") as HTMLPictureElement|null,
animationSection = document.getElementById("scratch-animation"),
prizeSection = document.getElementById("prize-section"),
discountSection = document.getElementById("discount-section"),
winningProofSection = document.getElementById("winning-proof-section");
/** Hide animation and show win sections */
const toggleAnimationPhase = () => {
if (animationSection) {
animationSection.classList.add("d-none");
}
if (prizeSection) {
prizeSection.classList.remove("d-none");
}else if (discountSection) {
discountSection.classList.remove("d-none");
} else {
throw new Error("No section to toggle");
}
if (winningProofSection) {
winningProofSection.classList.remove("d-none");
}
};
if (!animationSection) {
throw Error("section#scratch-animation missing");
}
if (scratchWrapper && scratchPicture) {
scratchPicture.addEventListener("load", () => {
const sc = new ScratchCard(scratchWrapper, {
scratchType: SCRATCH_TYPE.LINE,
containerWidth: scratchWrapper.offsetWidth,
containerHeight: scratchWrapper.offsetHeight,
imageForwardSrc: grattageUrl,
imageBackgroundSrc: "",
htmlBackground: "",
clearZoneRadius: 50,
nPoints: 30,
pointSize: 8,
percentToFinish: 65,
callback: function () {
toggleAnimationPhase();
},
brushSrc: "",
enabledPercentUpdate: true
});
sc.init().catch((e) => {
console.error(e);
toggleAnimationPhase();
});
});
scratchPicture.setAttribute("src", String(scratchPicture.dataset["src"]));
} else {
toggleAnimationPhase();
}
});

0
ts/partials/.gitkeep Normal file
View file

0
ts/types/.gitkeep Normal file
View file

21
ts/utilities/bootstrap.ts Normal file
View file

@ -0,0 +1,21 @@
import axios from "axios";
import * as bootstrap from "bootstrap";
import bsTooltips from "./../modules/bsTooltips";
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
axios.defaults.headers.common = {
Accept: "application/json, text/plain, */*",
"X-Requested-With": "XMLHttpRequest",
"X-CSRF-TOKEN": document
.querySelector("meta[name=\"csrf-token\"]")!
.getAttribute("content"),
};
window.axios = axios;
window.bootstrap = bootstrap;
bsTooltips.methods.initTooltips();

View file

@ -0,0 +1,94 @@
import { config, dom, library } from "@fortawesome/fontawesome-svg-core";
import {
faArrowAltCircleDown,
faArrowAltCircleUp,
faArrowDown,
faArrowLeft,
faArrowLeftLong,
faArrowRight,
faArrowRightFromBracket,
faArrowUp,
faArrowsAltH,
faArrowsAltV,
faBackspace,
faBan,
faCheck,
faChevronLeft,
faChevronRight,
faCircleCheck,
faCircleExclamation,
faCircleInfo,
faCircleNotch,
faCircleXmark,
faCopy,
faCrop,
faEraser,
faEye,
faEyeSlash,
faFolderOpen,
faGift,
faListUl,
faPause,
faPencil,
faPlay,
faPlus,
faQuestionCircle,
faRedoAlt,
faSearch,
faSearchMinus,
faSearchPlus,
faSliders,
faSyncAlt,
faTimes,
faTrash,
faUndoAlt,
faWandMagic
} from "@fortawesome/free-solid-svg-icons";
config.autoReplaceSvg = false;
library.add(faEraser);
library.add(faArrowLeftLong);
library.add(faPlus);
library.add(faTrash);
library.add(faEye);
library.add(faEyeSlash);
library.add(faFolderOpen);
library.add(faCrop);
library.add(faQuestionCircle);
library.add(faCheck);
library.add(faUndoAlt);
library.add(faRedoAlt);
library.add(faSyncAlt);
library.add(faSearchPlus);
library.add(faSearchMinus);
library.add(faArrowLeft);
library.add(faArrowRight);
library.add(faArrowUp);
library.add(faArrowDown);
library.add(faArrowsAltH);
library.add(faArrowsAltV);
library.add(faWandMagic);
library.add(faPencil);
library.add(faTimes);
library.add(faBackspace);
library.add(faSearch);
library.add(faArrowRightFromBracket);
library.add(faArrowAltCircleDown);
library.add(faArrowAltCircleUp);
library.add(faCircleCheck);
library.add(faCircleXmark);
library.add(faCopy);
library.add(faListUl);
library.add(faBan);
library.add(faCircleExclamation);
library.add(faCircleInfo);
library.add(faChevronLeft);
library.add(faChevronRight);
library.add(faCircleXmark);
library.add(faCircleNotch);
library.add(faSliders);
library.add(faPlay);
library.add(faPause);
library.add(faGift);
dom.watch();

56
ts/utilities/vue-fo.ts Normal file
View file

@ -0,0 +1,56 @@
import type { App, Component } from "vue";
import { createApp } from "vue";
document.addEventListener("DOMContentLoaded", () => {
const setupApp = (app: App<Element>) => {
app.config.globalProperties.window = window;
app.config.globalProperties.document = document;
};
// Register components
/// <reference types="vite/client" />
const vues = import.meta.glob("./../components/*.vue") as Record<
string,
() => Promise<{ default: Component }>
>;
for (const vueCptName in vues) {
const vueCptPromise = vues[vueCptName];
let htmlKey = vueCptName.split("/").pop();
if (!htmlKey) {
throw new Error(`Cannot load ${vueCptName}`);
}
htmlKey = htmlKey
.split(".")[0]
.replace(/\.?([A-Z])/g, function (x, y) {
return "-" + y.toLowerCase();
})
.replace(/^-/, "")
.replace("-component", "");
const el = document.getElementById(htmlKey),
elGroup = document.getElementsByClassName(htmlKey);
// * Init using ID
if (el) {
vueCptPromise().then((vueParsedFile) => {
const app = createApp(vueParsedFile.default, {
json: el.dataset.json ?? {},
});
setupApp(app);
app.mount(el);
});
}
// * Init Using class
for (const grpEl of elGroup) {
// * Hack to prevent loop weirdness
vueCptPromise().then((vueParsedFile) => {
setTimeout(() => {
const app = createApp(vueParsedFile.default, {
json: (grpEl as HTMLElement).dataset.json ?? {},
});
setupApp(app);
app.mount(grpEl);
}, 500);
});
}
}
});

104
views/auth/login.blade.php Normal file
View file

@ -0,0 +1,104 @@
@extends('theme::layout')
@section('title', __('Connexion'))
@section('description', __('Connexion'))
@section('no-flash', true)
@section('content')
<section class="container pb-5 pt-5" id="connexion">
@error('email')
<div class="row">
<div class="col">
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<strong>{{ implode(',', $errors->get('email')) }}</strong>
<button class="btn-close" data-bs-dismiss="alert" type="button" aria-label="Close"></button>
</div>
</div>
</div>
@enderror
<div class="row mb-3">
{{-- SIGNIN --}}
<div
class="signin col-12 col-md-6 text-md-end border-primary-bottom border-md-bottom-0 border-md-primary-end g-0 mb-md-0 pb-md-0 mb-4 border-2 border-opacity-50 pb-4 pe-4">
<span class="h1 fw-bold text-uppercase text-primary d-block mb-5">{{ __('Je m\'inscris') }}</span>
<p class="mb-5">{{ __('Pour participer et tenter votre chance, inscrivez-vous !') }}</p>
<a class="btn btn-lg btn-primary" href="{{ route('fo.register') }}">{{ __('Inscription') }}</a>
</div>
{{-- LOGIN --}}
<div class="login col-12 col-md-6 ps-md-4 g-0">
<span class="h1 fw-bold text-uppercase text-primary d-block mb-5">{{ __('Je me connecte') }}</span>
<p class="mb-5">
{{ __('Si vous possédez déjà un compte Club :company, vous pouvez utiliser les mêmes identifiants.', [
'company' => $settingsGlobal->company,
]) }}
</p>
<form class="needs-validation" method="POST" action="{{ route('fo.login') }}">
@csrf
<div class="row justify-content-center mb-3">
<div class="col-xl-8">
<div class="input-group has-validation">
<div class="form-floating @error('email') is-invalid @enderror">
<input class="form-control @error('email') is-invalid @enderror" id="email" name="email"
type="email" value="{{ old('email') }}" placeholder="name@example.com" required autocomplete="email"
autofocus>
<label for="email">{{ __('Email Address') }}</label>
</div>
@error('email')
<div class="invalid-feedback" role="alert">
<strong>{{ implode(',', $errors->get('email')) }}</strong>
</div>
@enderror
</div>
</div>
</div>
<div class="row justify-content-center mb-3">
<div class="col-xl-8">
<div class="input-group has-validation">
<div class="form-floating @error('password') is-invalid @enderror">
<input class="form-control @error('password') is-invalid @enderror" id="password" name="password"
type="password" placeholder="" required autocomplete="current-password">
<label for="password">{{ __('Password') }}</label>
</div>
@error('password')
<div class="invalid-feedback" role="alert">
<strong>{{ implode(',', $errors->get('password')) }}</strong>
</div>
@enderror
</div>
</div>
</div>
<div class="row justify-content-center mb-3">
<div class="col-xl-8">
<div class="form-check text-md-end">
<input class="form-check-input float-md-none" id="remember" name="remember" type="checkbox"
{{ old('remember') ? 'checked' : '' }}>
<label class="form-check-label" for="remember">
{{ __('Remember Me') }}
</label>
</div>
</div>
</div>
<div class="row justify-content-center mb-0">
<div class="col-xl-8">
<button class="btn btn-primary fw-bold text-uppercase" type="submit">
{{ __('Login') }}
</button>
@if (Route::has('fo.password.request'))
<a class="btn btn-link link-primary fw-bold" href="{{ route('fo.password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
</div>
</div>
</form>
</div>
</div>
</section>
@endsection

View file

@ -0,0 +1,38 @@
<fieldset class="mb-3">
<legend class="text-center">{{ __('Vos coordonnées') }}</legend>
{{-- ADDRESS --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.address', ['required' => true])
</div>
</div>
{{-- ADDRESS2 --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.address2')
</div>
</div>
{{-- CITY --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.city', ['required' => true])
</div>
</div>
{{-- POSTCODE --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.postal_code', ['required' => true])
</div>
</div>
{{-- COUNTRY --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.country', ['required' => true])
</div>
</div>
</fieldset>

View file

@ -0,0 +1,26 @@
<fieldset class="mb-3">
<legend class="text-center">{{ __('Votre profil') }}</legend>
<div class="container-fluid">
{{-- FIRST_NAME --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.first_name', ['required' => true])
</div>
</div>
{{-- LAST NAME --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.last_name', ['required' => true])
</div>
</div>
{{-- BIRTH_DATE --}}
<div class="row justify-content-center">
<div class="{{ $colClasses }}">
@include('theme::auth.partials.inputs.birth_date', ['required' => true])
</div>
</div>
</div>
</fieldset>

View file

@ -0,0 +1,28 @@
<fieldset class="mb-3">
<legend class="text-center">{{ __('Vos identifiants') }}</legend>
<div class="container-fluid">
{{-- EMAIL --}}
<div class="row justify-content-center">
<div class="col col-md-10 col-lg-8 py-2">
@include('theme::auth.partials.inputs.email', ['required' => true])
</div>
</div>
{{-- PASSWORD --}}
<div class="row justify-content-center">
<div class="col col-md-10 col-lg-8 input-group d-flex justify-content-center py-2">
@include('theme::auth.partials.inputs.password', ['required' => true])
</div>
</div>
{{-- PASSWORD CONFIRMATION --}}
<div class="row justify-content-center">
<div class="col col-md-10 col-lg-8 input-group d-flex justify-content-center py-2">
@include('theme::auth.partials.inputs.password_confirmation', ['required' => true])
</div>
</div>
@include('theme::auth.password-min-strength')
</div>
</fieldset>

View file

@ -0,0 +1,18 @@
<div class="form-floating mb-3">
<input id="address" name="address" type="text" value="{{ old('address', $crmCustomer->address ?? null) }}"
placeholder="{{ __('Votre :attribute', [
'attribute' => __('validation.attributes.line_address_1'),
]) }}"
@class([
'form-control',
'mx-auto',
'is-invalid' => $errors->has('address'),
]) autocomplete="address-line1" @readonly(!empty($readonly)) @disabled(!empty($disabled)) @required(!empty($required)) />
<label for="address">{{ Str::ucfirst(__('validation.attributes.line_address_1')) }}@if (!empty($required))
*
@endif
</label>
@foreach ($errors->get('address') as $message)
<div class="invalid-feedback">{{ $message }}</div>
@endforeach
</div>

Some files were not shown because too many files have changed in this diff Show more