Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve home layout #1670

Merged
merged 8 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
</div>
{% endif %}

{{ content }}
<main class="home">
{{ content }}
</main>

{% include footer/footer-{{ page.lang }}.html %}
</body>
Expand Down
49 changes: 25 additions & 24 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ strong, th {
z-index: 1;
}

main.home {
max-width: 75rem;
margin: 40px auto 2%;
padding-inline: 5%;
}

#home-content {
margin: 40px 0 2% 5%;
max-width: 900px;
padding-right: 9%;
display: flex;
}

Expand All @@ -107,8 +110,7 @@ strong, th {
}

#announcements {
margin: 3px 5% 32px;
max-width: 1005px;
margin-top: 40px;
padding: 0 16px;
background: #fdfae6;
border: 1px solid #ebdbb7;
Expand Down Expand Up @@ -223,11 +225,11 @@ li code {
}

*::-webkit-scrollbar-thumb:hover {
background-color: gray
background-color: gray;
}

*::-webkit-scrollbar-thumb:active {
background-color: #616161
background-color: #616161;
}

/* links */
Expand Down Expand Up @@ -305,10 +307,6 @@ a {
margin-left: 5px;
}

#intro {
margin-left: 5%;
}

#doc-langs {
text-align: center;
font-size: 12px;
Expand Down Expand Up @@ -425,6 +423,10 @@ html[xmlns] .clearfix {
/* boxes */

#boxes {
display: grid;
bjohansebas marked this conversation as resolved.
Show resolved Hide resolved
grid-template-columns: repeat(4, 1fr);
row-gap: 20px;
column-gap: 50px;
margin-top: 30px;
}

Expand All @@ -433,18 +435,10 @@ html[xmlns] .clearfix {
}

#boxes div {
width: 215px;
margin-right: 50px;
float: left;
list-style: none;
padding-bottom: 20px;
}

#boxes div:last-child {
margin-right: 0;
text-align: center;
}


#boxes h3 {
background: none;
margin-top: 0;
Expand Down Expand Up @@ -889,6 +883,10 @@ h2 a {
/* responsive */

@media all and (max-width: 1110px) {
#boxes {
grid-template-columns: 1fr 1fr;
}

#home-content {
flex-direction: column;
}
Expand Down Expand Up @@ -963,6 +961,7 @@ h2 a {
#home-content {
margin: 60px 0 0 5%;
padding-right: 5%;
text-align: center;
}

#description {
Expand Down Expand Up @@ -999,10 +998,6 @@ h2 a {
font-weight: bold;
}

#boxes div {
width: 90%;
}

#home-menu {
display: block;
position: absolute;
Expand Down Expand Up @@ -1034,6 +1029,12 @@ h2 a {
}


@media all and (max-width: 540px) {
#boxes {
grid-template-columns: 1fr;
}
}

@media all and (max-width: 420px) {
#app-settings-property {
width: auto;
Expand Down