Skip to content

Commit

Permalink
feat: improve home layout (#1670)
Browse files Browse the repository at this point in the history
* feat - align content

* feat - remove auto format by prettier

* fix - add align in footer

* fix - align in mobile

* improve layout

* center text

* improve boxes layout

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
  • Loading branch information
carlosstenzel and bjohansebas authored Nov 21, 2024
1 parent 7961e3d commit 7b74c10
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
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;
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

0 comments on commit 7b74c10

Please sign in to comment.