280 lines
7.6 KiB
CSS
280 lines
7.6 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap");
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
#root,
|
|
#__next {
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* Style each tag in an html */
|
|
/* describe to chatgpt what you want, good at css, or css reference */
|
|
/* font: sans-serif for headers, serif for paragraphs, mono for whatever */
|
|
@keyframes buttonEntry {
|
|
0% {
|
|
opacity: 0; /* Start invisible */
|
|
transform: translateY(30px); /* Start below the viewport */
|
|
}
|
|
100% {
|
|
opacity: 1; /* Fully visible */
|
|
transform: translateY(0); /* End at its normal position */
|
|
}
|
|
}
|
|
body,
|
|
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
background: linear-gradient(to top right, #3b3561, rgb(191.3, 187.1, 217.9));
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
body .container,
|
|
html .container {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
body .container .div1,
|
|
html .container .div1 {
|
|
width: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
/* General button styling */
|
|
}
|
|
body .container .div1 h1,
|
|
html .container .div1 h1 {
|
|
font-size: 60px;
|
|
color: #f7ebec;
|
|
font-family: "Lexend", serif;
|
|
font-weight: 300;
|
|
padding: 80px 0px 0px 45px;
|
|
}
|
|
body .container .div1 p,
|
|
html .container .div1 p {
|
|
font-family: "Space Grotesk", monospace;
|
|
color: #3b3561;
|
|
font-size: 13px;
|
|
text-align: center;
|
|
max-width: 560px;
|
|
margin-top: 20px;
|
|
padding: 0px 0px 0px 50px;
|
|
}
|
|
body .container .div1 .read-more-btn,
|
|
html .container .div1 .read-more-btn {
|
|
display: inline-flex; /* Flex container for text and icon */
|
|
align-items: center; /* Center text and icon vertically */
|
|
justify-content: center; /* Center content horizontally */
|
|
padding: 10px 20px; /* Button padding */
|
|
font-family: "Space Grotesk", monospace; /* Font style */
|
|
font-size: 16px; /* Font size */
|
|
font-weight: bold; /* Bold text */
|
|
color: #3b3561; /* Text color */
|
|
border: 2px solid #3b3561; /* Button border */
|
|
border-radius: 30px; /* Rounded edges for the button */
|
|
background-color: #f7ebec; /* Transparent background */
|
|
cursor: pointer; /* Pointer cursor on hover */
|
|
transition: all 0.3s ease; /* Smooth transition on hover */
|
|
margin-top: 25px; /* Space between text and next element */
|
|
}
|
|
body .container .div1 .read-more-btn:hover,
|
|
html .container .div1 .read-more-btn:hover {
|
|
background-color: #3b3561; /* Change background color on hover */
|
|
color: #f7ebec; /* Change text color on hover */
|
|
}
|
|
body .container .div1 .read-more-btn .icon,
|
|
html .container .div1 .read-more-btn .icon {
|
|
display: flex; /* Flex for the icon */
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 10px; /* Space between text and icon */
|
|
width: 20px; /* Icon circle width */
|
|
height: 20px; /* Icon circle height */
|
|
background-color: #3b3561; /* Circle background color */
|
|
color: #f7ebec; /* Arrow color */
|
|
border-radius: 50%; /* Make the icon circular */
|
|
transition: all 0.3s ease; /* Smooth transition on hover */
|
|
}
|
|
body .container .div1 .read-more-btn:hover .icon,
|
|
html .container .div1 .read-more-btn:hover .icon {
|
|
background-color: #f7ebec; /* Change circle background on hover */
|
|
color: #3b3561; /* Change arrow color on hover */
|
|
}
|
|
body .container .div1 .buttons,
|
|
html .container .div1 .buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: left;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 20px;
|
|
padding-right: 85px;
|
|
margin-top: 20px;
|
|
}
|
|
body .container .div1 .buttons button,
|
|
html .container .div1 .buttons button {
|
|
padding: 3.5px 23px;
|
|
font-size: 16px;
|
|
font-family: "Space Grotesk", monospace;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease, transform 0.2s ease;
|
|
margin: 0px 0px 0px 70px;
|
|
}
|
|
body .container .div1 .buttons button.psyc-button,
|
|
html .container .div1 .buttons button.psyc-button {
|
|
background-color: #ddbdd5;
|
|
color: #3b3561;
|
|
}
|
|
body .container .div1 .buttons button.psyc-button:hover,
|
|
html .container .div1 .buttons button.psyc-button:hover {
|
|
background-color: rgb(203.66, 155.34, 191.58);
|
|
transform: scale(1.05);
|
|
}
|
|
body .container .div1 .buttons button.imp-button,
|
|
html .container .div1 .buttons button.imp-button {
|
|
background-color: #4b8f8c;
|
|
color: white;
|
|
}
|
|
body .container .div1 .buttons button.imp-button:hover,
|
|
html .container .div1 .buttons button.imp-button:hover {
|
|
background-color: rgb(57.4541284404, 109.5458715596, 107.247706422);
|
|
transform: scale(1.05);
|
|
}
|
|
body .container .div1 .buttons button.spirit-button,
|
|
html .container .div1 .buttons button.spirit-button {
|
|
background-color: #f7ebec;
|
|
color: #3b3561;
|
|
}
|
|
body .container .div1 .buttons button.spirit-button:hover,
|
|
html .container .div1 .buttons button.spirit-button:hover {
|
|
background-color: rgb(222.24, 220.08, 235.92);
|
|
transform: scale(1.05);
|
|
}
|
|
body .container .div1 .buttons button.code-button,
|
|
html .container .div1 .buttons button.code-button {
|
|
background-color: #dd614a;
|
|
color: white;
|
|
}
|
|
body .container .div1 .buttons button.code-button:hover,
|
|
html .container .div1 .buttons button.code-button:hover {
|
|
background-color: rgb(205.4139534884, 64.688372093, 38.5860465116);
|
|
transform: scale(1.05);
|
|
}
|
|
body .container .div2,
|
|
html .container .div2 {
|
|
width: 50%;
|
|
padding-left: 30px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
body .container .div2 a,
|
|
html .container .div2 a {
|
|
text-decoration: none;
|
|
}
|
|
body .container .div2 .entrya,
|
|
html .container .div2 .entrya {
|
|
background-color: #ddbdd5;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
padding: 20px;
|
|
border: none;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
height: 300px;
|
|
width: 300px;
|
|
margin: 32px 0px 0px 35px;
|
|
transition: transform 0.3s ease;
|
|
animation: buttonEntry 1s ease-in-out;
|
|
}
|
|
body .container .div2 .entrya h2,
|
|
html .container .div2 .entrya h2 {
|
|
font-size: 20px;
|
|
color: #3b3561;
|
|
margin-bottom: 10px;
|
|
font-family: "Lexend", serif;
|
|
font-weight: 500;
|
|
overflow: hidden; /* Hide overflowing text */
|
|
text-overflow: ellipsis; /* Add "..." at the end of truncated text */
|
|
max-width: 250px; /* Restrict container width */
|
|
display: -webkit-box; /* Enables multi-line truncation */
|
|
-webkit-line-clamp: 1; /* Limit to 2 lines */
|
|
-webkit-box-orient: vertical; /* Vertical text orientation */
|
|
white-space: normal; /* Allow wrapping within the box */
|
|
}
|
|
body .container .div2 .entrya img,
|
|
html .container .div2 .entrya img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
width: 200px; /* Set desired width */
|
|
border-radius: 10px; /* Optional: Rounded corners */
|
|
display: block; /* Ensures it's treated as a block element */
|
|
margin: 0 auto; /* Centers the image horizontally */
|
|
}
|
|
body .container .div2 .entrya p,
|
|
html .container .div2 .entrya p {
|
|
padding-top: 20px;
|
|
color: #3b3561;
|
|
font-size: 0.9rem;
|
|
overflow: hidden; /* Hide overflowing text */
|
|
text-overflow: ellipsis; /* Add "..." at the end of truncated text */
|
|
max-width: 300px; /* Restrict container width */
|
|
display: -webkit-box; /* Enables multi-line truncation */
|
|
-webkit-line-clamp: 2; /* Limit to 2 lines */
|
|
-webkit-box-orient: vertical; /* Vertical text orientation */
|
|
white-space: normal; /* Allow wrapping within the box */
|
|
font-family: "Space Grotesk", monospace;
|
|
}
|
|
body .container .div2 .entrya:hover,
|
|
html .container .div2 .entrya:hover {
|
|
transform: translate(60px, 0px);
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
/*# sourceMappingURL=index.css.map */
|