Skip to content

Commit

Permalink
add: gd / case rework
Browse files Browse the repository at this point in the history
  • Loading branch information
T1Il committed Aug 25, 2023
1 parent 8c70af9 commit ec2b62f
Show file tree
Hide file tree
Showing 10 changed files with 559 additions and 61 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ debug.sh
composer.phar
buildpush.sh
/archive/
html/install-php-extensions
composer.lock
info.php
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ RUN apt-get install -y \
RUN /usr/local/bin/docker-php-ext-install mysqli pdo pdo_mysql
RUN apt-get install libssl-dev -y

ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0"

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions gd

RUN apt-get update && apt-get install -y \
libfreetype-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd

COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini
COPY docker/000-default.conf /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite

Expand Down
91 changes: 89 additions & 2 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ body {
margin-top: 20px;
}

.accept-button, .reject-button, .delete-button {
.accept-button, .reject-button, .delete-button, .neutral-button {
font-size: 16px;
border: none;
border-radius: 5px;
Expand Down Expand Up @@ -223,6 +223,92 @@ body {
color: red;
}

.user-requests {
margin-top: 20px;
}

.request {
background-color: #36393f;
border-radius: 5px;
padding: 10px;
margin-top: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}

.request-info {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.request-date, .request-status {
font-size: 14px;
color: #e3eaf7;
margin-bottom: 5px;
}

.request-title {
font-size: 18px;
font-weight: bold;
color: #e3eaf7;
flex: 1;
margin-left: 10px;
}

.request-status.angenommen {
color: #43b581;
}

.request-status.abgelehnt {
color: #f04747;
}

.request-status.unprocessed {
color: #e7effd;
}

.request {
position: relative;
}

.expand-button {
font-size: 20px;
cursor: pointer;
margin-right: 10px;
transition: transform 0.3s ease;
}

.request-details {
display: none;
padding: 10px;
background-color: #292b2f;
color: #e3eaf7;
border-radius: 5px;
margin-top: 10px;
}

.expanded .expand-button {
transform: rotate(45deg);
}

.expanded .request-details {
display: block;
}

.request-details p {
margin: 0;
margin-top: 10px;
}

.request-details a {
color: #0e53dd;
text-decoration: none;
display: inline-block;
margin-top: 10px;
}

@media (max-width: 600px) {
.container {
padding: 10px;
Expand Down Expand Up @@ -250,4 +336,5 @@ body {
.accept-button, .reject-button, .delete-button, .submit-button {
margin: 5px 0;
}
}
}

11 changes: 11 additions & 0 deletions case.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ function getContrastColor($hexColor)
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/styles.css">
<meta charset="utf-8"/>
<meta name="description"
content="Interface des Devmarktes für den DevCord-Discord. Hier kannst du Anfragen in den Devmarkt schicken, die vor Veröffentlichung geprüft werden."/>
<meta name="author" content="T1Il"/>
<meta name="copyright" content="T1Il"/>

<meta property="og:title" content="DevCord Devmarkt für Developer und Serverbetreiber"/>
<meta property="og:description"
content="Interface des Devmarktes für den DevCord-Discord. Hier kannst du Anfragen in den Devmarkt schicken, die vor Veröffentlichung geprüft werden."/>
<meta property="og:site_name" content="DevCord Devmarkt"/>
<meta property="og:image" content="assets/img/favicon.png">
<title>Case <?php echo testInput($_GET['req_id']); ?></title>

<?php
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"require": {
"guzzlehttp/guzzle": "^7.3",
"wohali/oauth2-discord-new": "^1.1",
"ext-pdo": "*"
"ext-pdo": "*",
"monolog/monolog": "^3.4",
"ext-gd": "*"
},
"authors": [
{
Expand Down
Loading

0 comments on commit ec2b62f

Please sign in to comment.