Skip to content

Commit

Permalink
optimize index
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Apr 2, 2024
1 parent 67c51e5 commit 1fa0364
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 132 deletions.
21 changes: 4 additions & 17 deletions maixpy/en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,43 +74,41 @@ <h2>MaixPy</h2>
<script src="/maixpy/static/css/tailwind.css"></script>
</div>
<style>

.md_page #page_content
{
padding: 1em;
}
.md_page #page_content > div
{
width: 100%;
max-width: 100%;
text-align: left;
}

@media (min-width: 1280px) {
.md_page #page_content > div
{
width: 1440px;
max-width: 1440px;
}
}

h1 {
font-size: 3em;
font-weight: 600;
margin-top: 0.67em;
margin-bottom: 0.67em;
}

h2 {
font-size: 1.6em;
font-weight: 600;
margin-top: 1em;
margin-bottom: 0.67em;
}

h3 {
font-size: 1.5em;
font-weight: 400;
margin-top: 0.5em;
margin-bottom: 0.5em;
}

#tags > p {
display: flex;
justify-content: center;
Expand All @@ -119,11 +117,9 @@ <h2>MaixPy</h2>
#tags > p a {
margin: 0 0.2em;
}

#feature video, #feature img {
height: 15em;
}

.feature_item {
display: flex;
flex-direction: column;
Expand All @@ -135,46 +131,37 @@ <h2>MaixPy</h2>
overflow: hidden;
max-width: 20em;
}

.feature_item .feature {
font-size: 1.2em;
font-weight: 600;
}

.feature_item .description {
font-size: 0.8em;
font-weight: 400;
}

.feature_item video, .feature_item img {
width: 100%;
object-fit: cover;
}

.feature_item .img_video {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}


.feature_item > div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}

.feature_item p {
padding: 0.5em;
}

#page_content li {
margin: 0.5em;
list-style-type: disc;
}

</style>
<div class="w-full flex flex-col justify-center text-center">
<div class="flex justify-center">
Expand Down
21 changes: 4 additions & 17 deletions maixpy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,43 +74,41 @@ <h2>MaixPy</h2>
<script src="/maixpy/static/css/tailwind.css"></script>
</div>
<style>

.md_page #page_content
{
padding: 1em;
}
.md_page #page_content > div
{
width: 100%;
max-width: 100%;
text-align: left;
}

@media (min-width: 1280px) {
.md_page #page_content > div
{
width: 1440px;
max-width: 1440px;
}
}

h1 {
font-size: 3em;
font-weight: 600;
margin-top: 0.67em;
margin-bottom: 0.67em;
}

h2 {
font-size: 1.6em;
font-weight: 600;
margin-top: 1em;
margin-bottom: 0.67em;
}

h3 {
font-size: 1.5em;
font-weight: 400;
margin-top: 0.5em;
margin-bottom: 0.5em;
}

#tags > p {
display: flex;
justify-content: center;
Expand All @@ -119,11 +117,9 @@ <h2>MaixPy</h2>
#tags > p a {
margin: 0 0.2em;
}

#feature video, #feature img {
height: 15em;
}

.feature_item {
display: flex;
flex-direction: column;
Expand All @@ -135,46 +131,37 @@ <h2>MaixPy</h2>
overflow: hidden;
max-width: 20em;
}

.feature_item .feature {
font-size: 1.2em;
font-weight: 600;
}

.feature_item .description {
font-size: 0.8em;
font-weight: 400;
}

.feature_item video, .feature_item img {
width: 100%;
object-fit: cover;
}

.feature_item .img_video {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}


.feature_item > div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}

.feature_item p {
padding: 0.5em;
}

#page_content li {
margin: 0.5em;
list-style-type: disc;
}

</style>
<div class="w-full flex flex-col justify-center text-center">
<div class="flex justify-center">
Expand Down
Loading

0 comments on commit 1fa0364

Please sign in to comment.