diff --git a/config/supervisord.conf b/config/supervisord.conf index c036691..c7fc992 100644 --- a/config/supervisord.conf +++ b/config/supervisord.conf @@ -8,3 +8,5 @@ autorestart=true [program:apache2] command=/usr/sbin/apache2ctl -D FOREGROUND autorestart=true + +# [program:mysql-server] diff --git a/docker/Dockerfile b/docker/Dockerfile index 67c8ac7..7c8af94 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,6 +10,7 @@ RUN apt update && apt upgrade -y && \ vim \ supervisor \ openssh-server \ + mysql-server \ sudo \ cowsay \ && rm -rf /var/lib/apt/lists/* diff --git a/www/index.html b/www/index.php similarity index 71% rename from www/index.html rename to www/index.php index 23c2033..3b256ed 100644 --- a/www/index.html +++ b/www/index.php @@ -10,21 +10,24 @@

Tux gallery

Tux is awesome ! So I made this extremely secure gallery.

-

You can also add tux pictures to the gallery, first login and then you should be able to upload a new image of tux.

+

You can also add tux pictures to the gallery, first login and then you should be able to upload a new image of tux.

diff --git a/www/login.html b/www/login.html deleted file mode 100644 index e69de29..0000000 diff --git a/www/login.php b/www/login.php new file mode 100644 index 0000000..09747e6 --- /dev/null +++ b/www/login.php @@ -0,0 +1,40 @@ + + + + + + Tux gallery ! + + + + + +
+
+

Login

+

Note : The register feature is not implemented yet !

+ + + + + +
+
+ + + \ No newline at end of file diff --git a/www/static/css/stylesheet.css b/www/static/css/stylesheet.css index 6395e1d..8c79e02 100644 --- a/www/static/css/stylesheet.css +++ b/www/static/css/stylesheet.css @@ -39,9 +39,30 @@ .wrapper { - display:flex; - align-content: center; - justify-content: center; + display:block; + margin-left:15%; + margin-right:15%; } +.info-part{ + margin-left:25%; + margin-right:25%; +} +.gallery img{ + max-width:250px; + max-height:250px; +} +.gallery{ + padding:10px; + background-color:black; + display:grid; + grid-template-columns: auto auto auto auto; +} + +#loginForm{ + display:grid; + margin-right:30%; + margin-left:30%; + gap:5px; +} \ No newline at end of file diff --git a/www/static/img/gallery/08pvtgP-1001622118.jpg b/www/static/img/gallery/08pvtgP-1001622118.jpg new file mode 100644 index 0000000..411b298 Binary files /dev/null and b/www/static/img/gallery/08pvtgP-1001622118.jpg differ diff --git a/www/static/img/gallery/1b37c9e111664f31bb86fba051c40a1d-2533940202.webp b/www/static/img/gallery/1b37c9e111664f31bb86fba051c40a1d-2533940202.webp new file mode 100644 index 0000000..a90eb36 Binary files /dev/null and b/www/static/img/gallery/1b37c9e111664f31bb86fba051c40a1d-2533940202.webp differ diff --git a/www/static/img/gallery/comedic-tux-linux-desktop-graphic-design-du1t7jopnaduzciv-46572337.jpg b/www/static/img/gallery/comedic-tux-linux-desktop-graphic-design-du1t7jopnaduzciv-46572337.jpg new file mode 100644 index 0000000..019b0ba Binary files /dev/null and b/www/static/img/gallery/comedic-tux-linux-desktop-graphic-design-du1t7jopnaduzciv-46572337.jpg differ diff --git a/www/static/img/gallery/linux-mascot-tux-penguin-4avj7qjd6edtxnvw-2403764563.png b/www/static/img/gallery/linux-mascot-tux-penguin-4avj7qjd6edtxnvw-2403764563.png new file mode 100644 index 0000000..42e5767 Binary files /dev/null and b/www/static/img/gallery/linux-mascot-tux-penguin-4avj7qjd6edtxnvw-2403764563.png differ diff --git a/www/static/img/gallery/pinguim-linux-tux-794154107.png b/www/static/img/gallery/pinguim-linux-tux-794154107.png new file mode 100644 index 0000000..07c05b4 Binary files /dev/null and b/www/static/img/gallery/pinguim-linux-tux-794154107.png differ diff --git a/www/static/img/gallery/png-clipart-tuxedo-cisco-systems-tuxguitar-computer-software-linux-computer-vertebrate-2351068778.png b/www/static/img/gallery/png-clipart-tuxedo-cisco-systems-tuxguitar-computer-software-linux-computer-vertebrate-2351068778.png new file mode 100644 index 0000000..218e7a4 Binary files /dev/null and b/www/static/img/gallery/png-clipart-tuxedo-cisco-systems-tuxguitar-computer-software-linux-computer-vertebrate-2351068778.png differ diff --git a/www/static/img/gallery/png-transparent-tuxedo-linux-kernel-pinguin-miscellaneous-vertebrate-bird-1019775320.png b/www/static/img/gallery/png-transparent-tuxedo-linux-kernel-pinguin-miscellaneous-vertebrate-bird-1019775320.png new file mode 100644 index 0000000..b77b4b1 Binary files /dev/null and b/www/static/img/gallery/png-transparent-tuxedo-linux-kernel-pinguin-miscellaneous-vertebrate-bird-1019775320.png differ diff --git a/www/static/img/gallery/smoking-tux-penguin-1-2326610794.jpg b/www/static/img/gallery/smoking-tux-penguin-1-2326610794.jpg new file mode 100644 index 0000000..8d1c43b Binary files /dev/null and b/www/static/img/gallery/smoking-tux-penguin-1-2326610794.jpg differ diff --git a/www/static/img/gallery/tux_linux_by_deiby_ybied-d70w4xk-756237534.png b/www/static/img/gallery/tux_linux_by_deiby_ybied-d70w4xk-756237534.png new file mode 100644 index 0000000..e0a518c Binary files /dev/null and b/www/static/img/gallery/tux_linux_by_deiby_ybied-d70w4xk-756237534.png differ