295 lines
4.5 KiB
CSS
295 lines
4.5 KiB
CSS
.height-container {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
z-index: 10;
|
|
}
|
|
|
|
.article-container {
|
|
z-index: 1;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 50%, rgb(0, 0, 0) 100%);
|
|
padding: 30px;
|
|
justify-items: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.content-container {
|
|
display: inline-grid;
|
|
text-align: left;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
background: linear-gradient(to top, #a0eddb 0%, #ffffff 100%);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
margin-top: 120px;
|
|
margin-bottom: 40px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.article-content {
|
|
font-size: 1.2rem;
|
|
color: #ffffff;
|
|
line-height: 1.8;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 {
|
|
color:white;
|
|
margin: 0;
|
|
}
|
|
|
|
.article-content p {
|
|
margin: 0.7rem 0;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.article-meta {
|
|
font-size: 1rem;
|
|
color: #D6DAEFBD;
|
|
text-align: left;
|
|
margin: 25px 0;
|
|
}
|
|
|
|
.article-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.article-buttons button {
|
|
background-color: #444893FF;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
border-radius: 25px;
|
|
transition: background-color 0.3s;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.article-buttons button:hover {
|
|
background-color: #707ec5;
|
|
}
|
|
|
|
#shareBtn {
|
|
background-color: transparent;
|
|
font-size: 1.5rem;
|
|
margin: 0;
|
|
transition: all ease-in-out 0.2s;
|
|
}
|
|
|
|
#shareBtn:hover {
|
|
color: #cfd7f8;
|
|
}
|
|
|
|
#shareBtn.copied {
|
|
color: #8798dc;
|
|
}
|
|
|
|
.back-btn {
|
|
display: flex;
|
|
width: 100%;
|
|
margin-right: 64px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.error-message h1 {
|
|
font-size: 10rem;
|
|
margin: 0;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.error-message p {
|
|
font-size: 1.5rem;
|
|
margin: 20px 0;
|
|
font-weight: 400;
|
|
color: white;
|
|
}
|
|
|
|
.error-message button {
|
|
background-color: #444893FF;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
border-radius: 25px;
|
|
transition: background-color 0.3s;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.error-message button:hover {
|
|
background-color: #bf9bae;
|
|
}
|
|
|
|
.loading-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
text-align: center;
|
|
color: #fff;
|
|
}
|
|
|
|
.spinner {
|
|
width: 48px;
|
|
height: 48px;
|
|
border: 6px solid transparent;
|
|
border-top: 6px solid #d13d71;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.article-content img {
|
|
max-width: 90%;
|
|
padding: 15px;
|
|
border-radius: 35px;
|
|
height: auto;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.article-content .gallery {
|
|
display: grid;
|
|
max-width: 90vw;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 15px;
|
|
margin: auto;
|
|
padding: 15px;
|
|
}
|
|
|
|
.article-content .gallery img {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 20px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.article-content .centered-text {
|
|
text-align: center;
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.7);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal img {
|
|
max-width: 80%;
|
|
max-height: 80%;
|
|
border-radius: 20px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.modal-enter {
|
|
animation: modalFadeIn 0.25s ease forwards;
|
|
}
|
|
|
|
.modal-leave {
|
|
animation: modalFadeOut 0.25s ease forwards;
|
|
}
|
|
|
|
.modal-image-enter {
|
|
animation: modalImageIn 0.25s ease forwards;
|
|
}
|
|
|
|
.modal-image-leave {
|
|
animation: modalImageOut 0.25s ease forwards;
|
|
}
|
|
|
|
@keyframes modalFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes modalFadeOut {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes modalImageIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes modalImageOut {
|
|
from {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.article-content .gallery img {
|
|
flex: 1 1 calc(50% - 15px);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.article-content .gallery img {
|
|
gap: 0;
|
|
padding: 0;
|
|
flex: 1 1 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.article-content img {
|
|
max-width: 98%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.modal img {
|
|
max-width: 95%;
|
|
max-height: 95%;
|
|
}
|
|
}
|
|
|