From ddfca364e1de94bfb4df774837d495c15b608668 Mon Sep 17 00:00:00 2001 From: Gabriel Logan <96627244+gabriel-logan@users.noreply.github.com> Date: Tue, 29 Aug 2023 03:08:51 -0300 Subject: [PATCH] Corrigi o bug da tela cortada e melhorei o design --- index.php | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/index.php b/index.php index c7c3f34..2168ea7 100644 --- a/index.php +++ b/index.php @@ -60,7 +60,7 @@ margin-top: 20px; } #root .videos .video{ - width: 260px; + width: 280px; height: 280px; display: flex; flex-direction: column; @@ -84,6 +84,17 @@ border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } + /* Ajustar tamanho do vídeo em tela cheia */ + #root .videos .video video:-webkit-full-screen { + object-fit: contain; /* Mantém a proporção do vídeo */ + } + /* Reverter tamanho do vídeo após sair da tela cheia */ + #root .videos .video video:-webkit-full-screen-exit { + object-fit: cover; + } + #root .videos.with-margin { + margin-bottom: 75vh; + } h3{ height: 70px; display: flex; @@ -97,14 +108,15 @@ footer { background-color: #333; color: #fff; - padding: 20px; margin-top: 40px; text-align: center; position: relative; bottom: 0; width: 100%; + height: 120px; } footer p { + line-height: 120px; margin: 0; } @@ -123,18 +135,19 @@ $folderName = basename(__DIR__); echo '

Videos Abaixo

'; echo "

Modulo: $folderName

"; + $dir = "../" . $folderName . "/"; + $videosMp4 = glob($dir . "*.mp4"); + $videoCount = count($videosMp4); // Contar o número de vídeos ?> -
+
'; - echo '

' . $title . '

'; - echo ''; - echo '
'; - } + foreach ($videosMp4 as $video) { + $title = pathinfo($video)['filename']; + echo '
'; + echo '

' . $title . '

'; + echo ''; + echo '
'; + } ?>