From 4990d4e8e0e2d69d273ed593620df4de13130664 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Fri, 9 Aug 2024 00:25:49 -0500 Subject: [PATCH 1/2] core: rearrange and create better home page --- .htaccess | 1 + css/home.css | 103 +++++++++++++++++++ css/pong.css | 23 +++++ home.html | 44 ++++++++ index.html | 2 - style.css => js/pong.js | 0 pong.html | 4 +- scripts.js | 223 ---------------------------------------- 8 files changed, 173 insertions(+), 227 deletions(-) create mode 100644 .htaccess create mode 100644 css/home.css create mode 100644 css/pong.css create mode 100644 home.html rename style.css => js/pong.js (100%) delete mode 100644 scripts.js diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..4a6ffb1 --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +DirectoryIndex home.html diff --git a/css/home.css b/css/home.css new file mode 100644 index 0000000..f684bf8 --- /dev/null +++ b/css/home.css @@ -0,0 +1,103 @@ +/* Whole document */ +body { + font-family: Helvetica, Arial, sans-serif; + font-size: 1rem; + color: #4c4f69; + line-height: 1.5; + width: 800px; + margin-inline: auto; + background: white; + padding: 10px 10px 10px 10px; +} + +/* +.title { + display: none; +} +*/ + +/* Title of the resume */ +h1 { + color: #df8e1d; + font-size: 2.1rem; + text-align: center; + margin-top: 0px; + margin-bottom: 0px; +} + +/* Titles of categories */ +h2 { + color: #df8e1d; + font-size: 1.6rem; + margin-top: 0; + margin-bottom: 0.5rem; + border-bottom: 1px solid black; +} + +h3 { + color: #dc8a78; + font-size: 1.3rem; + margin-top: 0; + margin-bottom: 0; +} + +h4 { + color: #8c8fa1; + font-size: 1.1rem; + margin-top: 0; + margin-bottom: 0.5rem; +} + +h6 { + font-size: 0.9rem; + text-align: center; + margin: 0; + padding-bottom: 9px; +} + +/* Definitions */ +dt { + float: left; + clear: left; + width: 17%; + font-weight: bold; +} +dd { + margin-left: 17%; +} +p { + margin-top: 0; + margin-bottom: 4px; +} + +/* Links */ +a { + text-decoration: none; + color: #1e66f5; +} +a:hover, a:active { + background-color: #7287fd; + color: #FFFFFF; + text-decoration: underline; + text-shadow: 1px 1px 1px #333; +} + +/* Horizontal separators */ +hr { + color: #A6A6A6; +} + +/* List spacing */ +ul, ol { + padding-left: 1em; /* Keeping padding relative to the font size of the list */ +} + +li { + margin-top: 0.25em; +} + +p, li { + margin-top: 0; + line-height: 1.6; +} + diff --git a/css/pong.css b/css/pong.css new file mode 100644 index 0000000..2229931 --- /dev/null +++ b/css/pong.css @@ -0,0 +1,23 @@ +html, body { + height: 100%; + margin: 0; +} + +body { + background: black; + display: flex; + align-items: center; + justify-content: center; +} + +.button { + background: blue; + color: white; + padding: 15px 20px; + font-size: 32px; + font-family: Arial, Helvetica, sans-serif; + text-transform: uppercase; + cursor: pointer; + position: relative; +} + diff --git a/home.html b/home.html new file mode 100644 index 0000000..038c252 --- /dev/null +++ b/home.html @@ -0,0 +1,44 @@ + + +
+ + + +Snakeplusplus
+Pong
+ + +