Skip to content

Commit

Permalink
Chatbot Addition (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ojas-Arora authored Aug 1, 2024
1 parent 5665a20 commit bf03470
Show file tree
Hide file tree
Showing 9 changed files with 178 additions and 162 deletions.
146 changes: 99 additions & 47 deletions css/feedback.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
0% {
background-position: 0% 0%;
}

50% {
background-position: 100% 100%;
}

100% {
background-position: 0% 0%;
}
Expand Down Expand Up @@ -40,27 +42,31 @@
2% {
transform: translateX(1);
}

25% {
transform: translateX(-25%);
}

50% {
transform: translateX(-50%);
}

75% {
transform: translateX(-25%);
}

100% {
transform: translateX(1);
}
}

body {
font-family: 'Lato', serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
min-height: 100vh;
background: linear-gradient(45deg, #0d0d0d, #1e1e1e);
animation: blinkGradient 10s infinite;
Expand All @@ -83,11 +89,10 @@ body {
100% {
background: linear-gradient(45deg, #1e3c72, #2a5298);
}
}

}
.container {
background: #2c2c2c;
padding: 2rem 1.875rem 2rem;
padding: 0.5rem 1.875rem 2rem; /* Adjust the bottom padding as needed */
border-radius: 8px;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
width: 100%;
Expand All @@ -99,6 +104,10 @@ body {
padding: 30px;
}

.container h1, .container form {
margin-top: 8px; /* Adjust this value as needed to move content upward */
}

.container:hover {
box-shadow: 0 16px 48px rgba(0, 128, 255, 0.5);
}
Expand All @@ -109,7 +118,7 @@ h1 {
text-align: center;
color: #f0f0f0;
animation: fadeInDown 1s ease;
font-family: 'Baskerville', serif;
font-family: 'Baskervviller', serif;
}

@keyframes fadeInDown {
Expand All @@ -123,6 +132,25 @@ h1 {
}
}

h1 .highlight {
background: linear-gradient(90deg, #007bff, #00aaff);
-webkit-background-clip: text;
color: transparent;
animation: gradientMove 3s infinite;
}

@keyframes gradientMove {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

.form-group {
margin-bottom: 15px;
display: flex;
Expand Down Expand Up @@ -164,31 +192,55 @@ input[type="file"] {
animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
border-color: #0080ff;
box-shadow: 0 0 15px rgba(0, 128, 255, 0.5);
border-color: #007bff;
box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

textarea {
height: 100px;
resize: vertical;
min-height: 100px;
}

button[type="submit"] {
display: block;
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
transition: background-color 0.3s ease, transform 0.2s ease;
animation: fadeInUp 1s ease;
font-family: 'Montserrat', sans-serif;
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

button[type="submit"]:hover {
Expand All @@ -198,56 +250,45 @@ button[type="submit"]:hover {
}

.back-button {
margin-left: -15px;
display: inline-flex;
align-items: center;
display: inline-block;
margin-bottom: 20px;
padding: 8px 16px;
color: #fff;
background-color: #007bff;
border-radius: 4px;
text-decoration: none;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.back-button i {
margin-right: 8px; /* Space between the icon and the text */
.back-button:hover {
background-color: #0056b3;
transform: scale(1.05);
}

.checkbox {
width: 75px;
height: 75px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background: #23abff;
margin: 2rem auto;
#success-message {
text-align: center;
padding: 20px;
background-color: #2a2a2a;
color: #007bff;
}

.main-container {
width: 60px;
height: 60px;
border-radius: 50%;
background: white;
display: flex;
justify-content: center;
align-items: center;
.hidden {
display: none;
}

.check-container {
width: 45px;
height: 45px;
border-radius: 50%;
background: #23abff;
.checkbox {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}

.check-background {
width: 35px;
height: 35px;
background-color: #28a745;
border-radius: 50%;
padding: 10px;
animation: animateShadow 0.5s ease-in-out;
background: white;
display: flex;
justify-content: center;
Expand Down Expand Up @@ -301,18 +342,29 @@ button[type="submit"]:hover {
box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

span {
color: red;
svg {
width: 40px;
height: 40px;
}

@keyframes animateContainer {
from {
transform: scale(0.9);
opacity: 0.8;
0% {
opacity: 0;
transform: scale(0.8);
}
to {
transform: scale(1);
100% {
opacity: 1;
transform: scale(1);
}
}


@keyframes animateShadow {
0% {
box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}
100% {
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
}

Expand Down Expand Up @@ -380,4 +432,4 @@ span {
.rating-container button:hover {
transform: scale(1.2); /* Adjust scaling for smaller screens */
}
}
}
23 changes: 0 additions & 23 deletions css/gamerules.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,6 @@
font-family: "Fantasy";
}

.random-button {
border: solid 0.1rem var(--border-color1);
border-radius: 0.6rem;
height: calc((100%) / 1.8);
width: auto;
text-align: center;
padding: 0.5rem;
font-family: "Roboto Mono", monospace;
font-weight: bold;
font-size: 1.1rem;
color: var(--primary-color);
background-color: var(--theme-color3);
transition: box-shadow 0.3s ease, transform 0.2s ease;
margin: 0 0.5rem; /* Add margin to separate buttons */
}
.random-button:hover {
box-shadow: 0.1rem 0.1rem 0.2rem var(--shadow-color2);
}
.random-button:active {
box-shadow: 0.1rem 0.1rem 0.2rem var(--shadow-color2);
transform: translateY(0.1rem);
}

body {
line-height: 1.6;
padding: 20px;
Expand Down
13 changes: 13 additions & 0 deletions error.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@
<h1>Oops! Something went wrong.</h1>
<p>We can't seem to find the page you're looking for.</p>
<a href="index.html" class="redirect-button">Go to Game of Life</a>
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/66891af8eaf3bd8d4d18ca2d/1i24gr9s5';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
<script src="js/error.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,19 @@ <h1>FAQ</h1>
window.scrollTo({ top: 0, behavior: 'smooth' });
});
</script>
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/66891af8eaf3bd8d4d18ca2d/1i24gr9s5';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/js/all.min.js" integrity="sha512-jYByi51d2A2YvZq8h7CEyghZ+DrDRzzU2sDCQK4ldAFffMJZbCQrVxQuUkZ7V58gHsKyp0S0EaHPUA39RgG1zw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>
14 changes: 13 additions & 1 deletion feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,19 @@
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
</div>
</div><!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/66891af8eaf3bd8d4d18ca2d/1i24gr9s5';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
<script src="./js/feedback.js"></script>
</body>
</html>
14 changes: 13 additions & 1 deletion gamerules.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,18 @@ <h2>Summary</h2>
});

</script>

<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/66891af8eaf3bd8d4d18ca2d/1i24gr9s5';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>
</html>
Loading

0 comments on commit bf03470

Please sign in to comment.