From 4fb0192e864b1fb029927c2e51c5041724968171 Mon Sep 17 00:00:00 2001 From: Patryk Nowak Date: Wed, 24 Jul 2024 17:03:12 +0200 Subject: [PATCH] Visual improvements for text --- template.html | 98 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 81 insertions(+), 17 deletions(-) diff --git a/template.html b/template.html index c0b07c2..21b5dbb 100644 --- a/template.html +++ b/template.html @@ -11,15 +11,31 @@ padding: 0; box-sizing: border-box; } + body { - display: flex; - justify-content: center; - align-items: center; min-height: 100vh; margin: 0; font-family: Arial, sans-serif; - background-color: #f0f0f0; + letter-spacing: -0.015em; + overflow-wrap: break-word; + background-color: #FAFAFA; + color: #333; /* Improved readability with a darker text color */ + line-height: 1.6; /* Better line spacing */ + } + + .header { + background-color: #FAFAFA; + padding: 20px; + width: 100%; + box-sizing: border-box; + line-height: 1.5; + border-top: 5px solid #2a6fc3; } + + .header img { + width: auto; + } + .container { display: flex; justify-content: center; @@ -31,21 +47,25 @@ .content { max-width: 800px; width: 100%; - background-color: #fff; + background-color: #FAFAFA; padding: 20px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); - border-radius: 8px; - } - .content img { - width: 100%; - height: auto; - display: block; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for better readability */ + border-radius: 5px; /* Rounded corners for a modern look */ } + + .content img { + width: 100%; + height: auto; + display: block; + margin-bottom: 20px; /* Add space between images and text */ + } + .video-container { width: 100%; height: auto; display: block; } + .content h1, .content h2, .content h3, @@ -54,37 +74,81 @@ .content h6 { margin-top: 1em; margin-bottom: 0.5em; + color: #2a6fc3; /* Consistent heading color */ + } + + .content h1 { + font-size: 36px; + } + + .content h2 { + font-size: 30px; } + + .content h3 { + font-size: 24px; + } + + .content h4 { + font-size: 20px; + } + + .content h5 { + font-size: 18px; + } + + .content h6 { + font-size: 16px; + } + .content p { + font-size: 18px; /* Slightly larger font size for better readability */ margin-bottom: 1em; + line-height: 1.6; /* Ensure consistent line spacing */ } + .pdf-container { display: flex; flex-wrap: wrap; height: 60%; } + .pdf-container-item { height: 50vw; margin: 1%; } + .docs-container { display: flex; flex-wrap: wrap; height: 60%; } - .docs-container iframe { - width: 100%; - height: 90vh; - margin: 1%; - } + + .docs-container iframe { + width: 100%; + height: 90vh; + margin: 1%; + } + @media (max-width: 600px) { .content { padding: 15px; } + + .content p { + font-size: 16px; /* Adjust font size for smaller screens */ + } + + .header { + padding: 10px; + } } +
+ Infostacker Logo +
{markdown}