From 3527be6a8912a411c716b59438fb9896d8925e76 Mon Sep 17 00:00:00 2001 From: MonkeyGG2 Date: Thu, 17 Aug 2023 20:08:59 +0530 Subject: [PATCH] added new background and added cards --- css/loading-old.css | 65 +++++++++++ css/loading.css | 70 ----------- css/style.css | 64 +++++++++++ index.html | 96 ++++++++-------- js/bg.js | 160 ++++++++++++++++++++++++++ index.js => js/index.js | 0 js/loading-old.js | 249 ++++++++++++++++++++++++++++++++++++++++ js/loading.js | 232 +++---------------------------------- 8 files changed, 603 insertions(+), 333 deletions(-) create mode 100644 css/loading-old.css create mode 100644 js/bg.js rename index.js => js/index.js (100%) create mode 100644 js/loading-old.js diff --git a/css/loading-old.css b/css/loading-old.css new file mode 100644 index 00000000..7c5d2f9c --- /dev/null +++ b/css/loading-old.css @@ -0,0 +1,65 @@ +.hexagonGrid { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; + z-index: 1; + + /* this makes browser use GPU acceleration for blur */ + will-change: contents; + + filter: blur(2.5px); +} + +.hexagonGrid .row { + display: inline-flex; + margin-top: -32px; + margin-left: -50px; +} + +.hexagonGrid .row:nth-child(even) { + margin-left: 2px; +} + +.hexagonGrid .row .hexagon { + position: relative; + width: 100px; + height: 110px; + margin: 4px 2px; + clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); +} + +.hexagonGrid .row .hexagon::before { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: var(--bg); + opacity: 0.95; + transition: 1s; +} + +.hexagonGrid .row .hexagon::after { + content: ""; + position: absolute; + top: 4px; + right: 4px; + bottom: 4px; + left: 4px; + background: var(--bg); + clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); +} + +.hexagonGrid .row .hexagon:hover::before { + background: #72acb1; + opacity: 1; + transition: 0s; +} + +.hexagonGrid .row .hexagon:hover::after { + background: var(--bg); +} \ No newline at end of file diff --git a/css/loading.css b/css/loading.css index b755fffc..12e55b96 100644 --- a/css/loading.css +++ b/css/loading.css @@ -141,74 +141,4 @@ section { top: 0; left: 0; overflow: hidden; -} - -.particles { - background: var(--bg); -} - -.hexagonGrid { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - overflow: hidden; - z-index: 1; - - /* this makes browser use GPU acceleration for blur */ - will-change: contents; - - filter: blur(2.5px); -} - -.hexagonGrid .row { - display: inline-flex; - margin-top: -32px; - margin-left: -50px; -} - -.hexagonGrid .row:nth-child(even) { - margin-left: 2px; -} - -.hexagonGrid .row .hexagon { - position: relative; - width: 100px; - height: 110px; - margin: 4px 2px; - clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); -} - -.hexagonGrid .row .hexagon::before { - content: ""; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: var(--bg); - opacity: 0.95; - transition: 1s; -} - -.hexagonGrid .row .hexagon::after { - content: ""; - position: absolute; - top: 4px; - right: 4px; - bottom: 4px; - left: 4px; - background: var(--bg); - clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); -} - -.hexagonGrid .row .hexagon:hover::before { - background: #72acb1; - opacity: 1; - transition: 0s; -} - -.hexagonGrid .row .hexagon:hover::after { - background: var(--bg); } \ No newline at end of file diff --git a/css/style.css b/css/style.css index 6abdd38b..cb2f8a65 100644 --- a/css/style.css +++ b/css/style.css @@ -36,4 +36,68 @@ body.noscript { background-color: black; color: white; z-index: 999; +} + +#particles { + position: absolute; + z-index: 0; + background: var(--bg); + margin: 0; + top: 0; + left: 0; + height: 100vh; + width: 100vw; + overflow: hidden; + filter: blur(2px); +} + +.homepage { + position: absolute; + top: 0; + left: 0; + display: flex; + justify-content: center; + align-items: center; + z-index: 10; +} + +h1 { + z-index: 50; + margin-left: 2.5%; + position: absolute; +} + +.card-row { + display: flex; + flex-direction: row; + width: 90%; + margin-top: 12.5%; +} + +.column { + text-align: center; + float: left; + width: 25%; + padding: 0 10px; + cursor: pointer; +} + +button { + text-decoration: none; + background: transparent; + border: none; + color: var(--font-color); + padding: 0; + margin: 0; +} + +.card { + box-shadow: 0 4px 8px 0 hsl(from var(--button-color) h s l); + padding: 16px; + text-align: center; + background-color: var(--bg-second); + border-radius: 50px; + font-size: 150%; + color: var(--font-color); + transition: all 0.2s ease-in; } \ No newline at end of file diff --git a/index.html b/index.html index 5fe54bdf..f20b4d4b 100644 --- a/index.html +++ b/index.html @@ -6,15 +6,14 @@ - - - - - - - + + + + + +