From 9be4f6ec7ec168ecdd6569ed3fb875f48818d4a2 Mon Sep 17 00:00:00 2001 From: Ojas Arora <127867874+Ojas-Arora@users.noreply.github.com> Date: Wed, 10 Jul 2024 23:42:44 +0530 Subject: [PATCH 1/5] Adding a FAQ Page --- .vscode/settings.json | 3 + css/faq.css | 106 +++++++++++++++++++++++++++ faq.html | 162 ++++++++++++++++++++++++++++++++++++++++++ index.html | 12 ++++ 4 files changed, 283 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 css/faq.css create mode 100644 faq.html diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/css/faq.css b/css/faq.css new file mode 100644 index 0000000..d7483b6 --- /dev/null +++ b/css/faq.css @@ -0,0 +1,106 @@ +@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap'); + +:root { + --primary-color: #0f045a; + --theme-color1: #7582b2; + --theme-color2: #036c96; + --theme-color3: #ebf2ff; + --shadow-color1: #352a7e; + --shadow-color2: #101536; + --border-color1: #080126; + --background-col: #c6cede; + --container-bg-color: #b0b8c4; +} + +body { + font-family: 'Montserrat', sans-serif; + background-color: var(--background-col); + color: var(--primary-color); +} + +.container { + max-width: 1200px; + width: 90%; + margin: auto; + padding: 30px; + background-color: var(--container-bg-color); + border-radius: 10px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +h1 { + text-align: center; + font-size: 3rem; + color: var(--primary-color); + font-weight: bold; + margin-bottom: 10px; + animation: blink 3s linear infinite; +} +@keyframes blink { + 0%, 100% { + opacity: 1; + } + 50% { + opacity: 0; + } +} +.faq-item { + margin-bottom: 20px; +} + +.faq-toggle { + display: none; +} + +.faq-question { + font-size: 1.5rem; + cursor: pointer; + display: block; + padding: 10px; + background-color: var(--theme-color1); + color: white; + border-radius: 5px; + transition: background-color 0.3s ease; + box-shadow: 7px 7px 20px 0 darkblue; +} + +.faq-question:hover { + background-color: var(--theme-color2); +} + +.faq-answer { + padding: 10px 20px; + display: none; + background-color: white; + border: 1px solid var(--theme-color1); + border-top: none; + border-radius: 0 0 5px 5px; + box-shadow: 7px 7px 20px 0 darkblue; +} + +.faq-toggle:checked + .faq-question + .faq-answer { + display: block; +} + +.faq-toggle + .faq-question::after { + content: '\f0d7'; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; + float: right; +} + +.faq-toggle:checked + .faq-question::after { + content: '\f0d8'; +} + +.home-icon { + width: 50px; + margin: 10px; +} + +@media screen and (max-width: 768px) { + .home-icon { + width: 30px; + margin: 10px; + } +} diff --git a/faq.html b/faq.html new file mode 100644 index 0000000..e872045 --- /dev/null +++ b/faq.html @@ -0,0 +1,162 @@ + + +
+ + + + + + + + ++ Conway's Game of Life, or simply "Life," is a cellular automaton devised by British mathematician John Horton Conway in 1970. + It is a zero-player game, meaning its evolution is determined by its initial state, requiring no further input. +
++ The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells. + Each cell is in one of two possible states: ALIVE or DEAD. Every cell interacts with its eight neighbors. +
++ The Game of Life has four simple rules: +
+ Conway's Game of Life was created by the British mathematician John Horton Conway in 1970. It is one of the best-known examples of a cellular automaton. +
++ Some famous patterns in the Game of Life include the Glider, the LWSS (Lightweight Spaceship), and the Pulsar. These patterns exhibit interesting behaviors and are often studied by enthusiasts. +
++ Yes, the Game of Life is Turing complete. This means it can simulate a universal Turing machine and, therefore, perform any computation that can be done by a computer. +
++ While the Game of Life is a mathematical abstraction, it has been used to explore concepts in computation, complexity theory, and even theoretical biology. It provides insights but is not directly used to solve practical real-world problems. +
++ Yes, there are many other cellular automata with different rulesets and behaviors. Some examples include the Brian's Brain, Highlife, and Wireworld. Each has its unique set of rules and interesting properties. +
++ You can experiment with the Game of Life using various online simulators and software programs. Many programming languages also have libraries and frameworks for creating and exploring cellular automata. +
+