Skip to content

Commit 21afc98

Browse files
committed
[ADD] a base desing and the bootstrap dependencies for creating the beginning of the desing
1 parent 45960c6 commit 21afc98

22 files changed

+398
-0
lines changed
Binary file not shown.

bonus/bootstrap/compile.bat

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
color 0A
2+
echo off
3+
cls
4+
5+
REM Create a virtual environment called wenv if it doesn't exist
6+
if not exist wenv (
7+
echo Creating virtual environment...
8+
python -m venv wenv
9+
)
10+
11+
REM Activate the virtual environment
12+
call wenv\Scripts\activate
13+
14+
REM Check if PyInstaller is installed in the virtual environment
15+
pip show pyinstaller >nul 2>&1
16+
if %errorlevel% neq 0 (
17+
echo PyInstaller is not installed. Installing PyInstaller...
18+
pip install pyinstaller
19+
)
20+
21+
REM Compile the Python script to a binary
22+
pyinstaller --onefile post_export.py
23+
24+
REM Move the compiled binary to the same location as this script
25+
if exist dist\post_export.exe (
26+
echo "Moving the compiled binary to %~dp0"
27+
move dist\post_export.exe %~dp0
28+
echo Compilation successful. The binary is located in the same folder as this script.
29+
) else (
30+
echo Compilation failed.
31+
)
32+
33+
REM Remove the build, dist folders and the .spec file
34+
if exist build (
35+
rmdir /s /q build
36+
)
37+
if exist dist (
38+
rmdir /s /q dist
39+
)
40+
if exist post_export.spec (
41+
del post_export.spec
42+
)
43+
44+
REM Deactivate the virtual environment
45+
deactivate

bonus/bootstrap/post_export.exe

7.66 MB
Binary file not shown.

bonus/bootstrap/post_export.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
##
2+
# EPITECH PROJECT, 2024
3+
# undefined
4+
# File description:
5+
# post_export.py
6+
##
7+
8+
import os
9+
import shutil
10+
import sys
11+
12+
13+
def copy_file_up_one_level(file_path):
14+
file_name = os.path.basename(file_path)
15+
destination_path = os.path.join(
16+
os.path.dirname(file_path), '..', file_name)
17+
shutil.copy2(file_path, destination_path)
18+
19+
20+
def main(provided_export_path):
21+
manifest_path = os.path.join(provided_export_path, 'manifest.json')
22+
sitemap_path = os.path.join(provided_export_path, 'sitemap.xml')
23+
24+
copy_file_up_one_level(manifest_path)
25+
copy_file_up_one_level(sitemap_path)
26+
27+
28+
if __name__ == "__main__":
29+
if len(sys.argv) > 1:
30+
export_path = sys.argv[1]
31+
main(export_path)
32+
else:
33+
print('Please provide the export path as the first argument.')

html/.gitkeep

Whitespace-only changes.

html/assets/css/home.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* ** EPITECH PROJECT, 2024
2+
** epickup
3+
** File description:
4+
** home.css */
5+

html/assets/css/website_base.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* ** EPITECH PROJECT, 2024
2+
** epickup
3+
** File description:
4+
** website_base.css */
5+
6+
.title_header {
7+
display: flex;
8+
align-items: center;
9+
}
10+
11+
.header_image {
12+
width: 50px;
13+
height: 50px;
14+
margin-right: 10px;
15+
}
16+
17+
.header_text {
18+
display: flex;
19+
flex-direction: column;
20+
}
21+
22+
.header_line1, .header_line2 {
23+
margin: 0;
24+
}
25+
26+
.header_background {
27+
background-color: #709eac;
28+
}
29+
30+
.header-contacts {
31+
color: black;
32+
}
33+
34+
.footer_background {
35+
background-color: #949191;
36+
}
37+

html/assets/img/AB-logo.png

47.2 KB
Loading

html/assets/js/constants.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
** EPITECH PROJECT, 2024
3+
** epickup
4+
** File description:
5+
** constants.js
6+
*/
7+
8+
function link_checker() {
9+
if (window.location.pathname.startsWith("/html")) {
10+
return "/html";
11+
}
12+
return "/";
13+
}
14+
15+
function img_checker() {
16+
const html = link_checker();
17+
if (html.length > 0) {
18+
return `${html}/assets/img`;
19+
}
20+
return "/";
21+
}
22+
23+
const in_svg = `<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="50" height="50" viewBox="0 0 50 50">
24+
<g fill="#ffffff" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal">
25+
<path d="M 8 3.0117188 C 6.3126093 3.0117188 4.8354789 3.4916328 3.7539062 4.3652344 C 2.6723337 5.238836 2.0117188 6.533218 2.0117188 7.9472656 C 2.0117188 10.690836 4.4687078 12.814467 7.7167969 12.941406 A 0.98809878 0.98809878 0 0 0 8 12.988281 C 9.753566 12.988281 11.246191 12.474267 12.3125 11.564453 C 13.378809 10.654639 13.988281 9.3429353 13.988281 7.9472656 A 0.98809878 0.98809878 0 0 0 13.986328 7.8925781 C 13.832307 5.1316834 11.374781 3.0117187 8 3.0117188 z M 8 4.9882812 C 10.60907 4.9882812 11.895883 6.2693448 12.005859 7.9726562 C 11.998759 8.8049335 11.676559 9.5118991 11.03125 10.0625 C 10.378809 10.619186 9.371434 11.011719 8 11.011719 C 5.3980542 11.011719 3.9882813 9.5991704 3.9882812 7.9472656 C 3.9882812 7.1213132 4.3276663 6.4422421 4.9960938 5.9023438 C 5.6645211 5.3624454 6.6873907 4.9882813 8 4.9882812 z M 3 15 A 1.0001 1.0001 0 0 0 2 16 L 2 45 A 1.0001 1.0001 0 0 0 3 46 L 13 46 A 1.0001 1.0001 0 0 0 14 45 L 14 35.664062 L 14 16 A 1.0001 1.0001 0 0 0 13 15 L 3 15 z M 18 15 A 1.0001 1.0001 0 0 0 17 16 L 17 45 A 1.0001 1.0001 0 0 0 18 46 L 28 46 A 1.0001 1.0001 0 0 0 29 45 L 29 29 L 29 28.75 L 29 28.5 C 29 26.555577 30.555577 25 32.5 25 C 34.444423 25 36 26.555577 36 28.5 L 36 45 A 1.0001 1.0001 0 0 0 37 46 L 47 46 A 1.0001 1.0001 0 0 0 48 45 L 48 28 C 48 23.873476 46.787888 20.604454 44.744141 18.375 C 42.700394 16.145546 39.849212 15 36.787109 15 C 32.882872 15 30.521631 16.426076 29 17.601562 L 29 16 A 1.0001 1.0001 0 0 0 28 15 L 18 15 z M 4 17 L 12 17 L 12 35.664062 L 12 44 L 4 44 L 4 17 z M 19 17 L 27 17 L 27 19.638672 A 1.0001 1.0001 0 0 0 28.744141 20.306641 C 28.744141 20.306641 31.709841 17 36.787109 17 C 39.360007 17 41.615528 17.922268 43.269531 19.726562 C 44.923534 21.530858 46 24.261524 46 28 L 46 44 L 38 44 L 38 28.5 A 1.0001 1.0001 0 0 0 37.916016 28.089844 C 37.694061 25.26411 35.38033 23 32.5 23 C 29.474423 23 27 25.474423 27 28.5 L 27 28.75 L 27 29 L 27 44 L 19 44 L 19 17 z"></path>
26+
</svg>`
27+
const insta_svg = `<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100" height="100" viewBox="0,0,256,256">
28+
<g fill="#ffffff" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><g transform="scale(5.12,5.12)"><path d="M16,3c-7.16752,0 -13,5.83248 -13,13v18c0,7.16752 5.83248,13 13,13h18c7.16752,0 13,-5.83248 13,-13v-18c0,-7.16752 -5.83248,-13 -13,-13zM16,5h18c6.08648,0 11,4.91352 11,11v18c0,6.08648 -4.91352,11 -11,11h-18c-6.08648,0 -11,-4.91352 -11,-11v-18c0,-6.08648 4.91352,-11 11,-11zM37,11c-1.10457,0 -2,0.89543 -2,2c0,1.10457 0.89543,2 2,2c1.10457,0 2,-0.89543 2,-2c0,-1.10457 -0.89543,-2 -2,-2zM25,14c-6.06329,0 -11,4.93671 -11,11c0,6.06329 4.93671,11 11,11c6.06329,0 11,-4.93671 11,-11c0,-6.06329 -4.93671,-11 -11,-11zM25,16c4.98241,0 9,4.01759 9,9c0,4.98241 -4.01759,9 -9,9c-4.98241,0 -9,-4.01759 -9,-9c0,-4.98241 4.01759,-9 9,-9z"></path></g></g>
29+
</svg>`;
30+
31+
32+
const in_link = "https://www.linkedin.com/in/henry-letellier/";
33+
const insta_link = "https://www.instagram.com/hen9341_henry/";
34+
35+
36+
const logo_img = `${window.location.origin}${img_checker()}/AB-logo.png`;

html/assets/js/footer.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
** EPITECH PROJECT, 2024
3+
** epickup
4+
** File description:
5+
** footer.js
6+
*/
7+
8+
function footer() {
9+
let html = "";
10+
html += footer_menu();
11+
// html += footer_bottom();
12+
document.querySelector("footer").innerHTML = html;
13+
}
14+
15+
document.addEventListener('DOMContentLoaded', footer);

0 commit comments

Comments
 (0)