Skip to content
Snippets Groups Projects
Commit aad355a5 authored by HouTeng Chan's avatar HouTeng Chan
Browse files

Update file home.html

parent 9d58ba31
No related branches found
No related tags found
No related merge requests found
...@@ -25,12 +25,14 @@ ...@@ -25,12 +25,14 @@
padding: 20px; padding: 20px;
max-width: 1200px; max-width: 1200px;
margin: 60px auto 0; margin: 60px auto 0;
min-height: calc(100vh - 60px);
justify-content: center;
} }
.content-block { .content-block {
background-color: rgba(255, 255, 255, 0.7); background-color: rgba(255, 255, 255, 0.7);
border-radius: 20px; border-radius: 20px;
padding: 20px; padding: 20px;
margin: 40px 0; /* Increased vertical margin */ margin: 40vh 0; /* Increased vertical margin */
width: 66.66%; width: 66.66%;
box-shadow: 0 4px 8px rgba(0,0,0,0.1); box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease; transition: all 0.3s ease;
...@@ -38,7 +40,7 @@ ...@@ -38,7 +40,7 @@
} }
.content-block:first-child { .content-block:first-child {
width: 80%; /* Make the first block wider */ width: 80%; /* Make the first block wider */
margin-top: 0; /* Remove top margin for the first block */ margin: 0; /* Remove margin for the first block */
} }
.content-block:hover { .content-block:hover {
background-color: rgba(255, 255, 255, 0.95); background-color: rgba(255, 255, 255, 0.95);
...@@ -76,16 +78,25 @@ ...@@ -76,16 +78,25 @@
} }
.modal-content { .modal-content {
background-color: #fefefe; background-color: #fefefe;
margin: 15% auto; margin: 5% auto;
padding: 20px; padding: 20px;
border: 1px solid #888; border: 1px solid #888;
width: 80%; width: 80%;
max-width: 800px; max-width: 800px;
border-radius: 10px; border-radius: 10px;
position: relative;
}
.modal-content img {
max-width: 100%;
height: auto;
display: block;
margin: 10px auto;
} }
.close { .close {
color: #aaa; color: #aaa;
float: right; position: absolute;
top: 10px;
right: 20px;
font-size: 28px; font-size: 28px;
font-weight: bold; font-weight: bold;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment