From 72ebf7cbefe7715c99fac98b3f72cae8f6351724 Mon Sep 17 00:00:00 2001 From: Emil Njor Date: Tue, 23 Apr 2024 14:42:50 -0400 Subject: [PATCH] fixed view on phones --- index.html | 28 ++++++++++++++-------------- styles.css | 27 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index cb9b74f..c229d33 100644 --- a/index.html +++ b/index.html @@ -14,13 +14,26 @@

Wake Vision

+
+

Access the Dataset

+

Get started using the dataset from your preferred source:

+ +

About

"Wake Vision" is a large, high-quality dataset featuring over 6 million images, significantly exceeding the @@ -59,19 +72,6 @@

Examples

-
-

Access the Dataset

-

Get started using the dataset from your preferred source:

- -

Seeking Sponsors

We are currently seeking sponsors to support the ongoing development and expansion of the Wake Vision diff --git a/styles.css b/styles.css index b5da24a..82f156c 100644 --- a/styles.css +++ b/styles.css @@ -60,6 +60,8 @@ footer { /* Always three columns */ /* Adapts number of columns based on screen width, min 300px */ gap: 20px; + justify-content: center; + /* Centers the grid within the section */ } .image-item { @@ -92,6 +94,31 @@ footer { margin: 0; } +@media (max-width: 768px) { + .image-grid { + grid-template-columns: 1fr; + } + + #about h2, + #about h3 { + font-size: 1.5em; + } + + .image-item { + padding-top: 75%; + /* Adjust aspect ratio padding for smaller screens if necessary */ + } + + body { + font-family: Arial, sans-serif; + background-color: #f4f4f4; + margin-right: 20px; + margin-left: 20px; + margin-top: 10px; + margin-bottom: 10px; + } +} + footer { background-color: #022b30;