Skip to content

Commit

Permalink
feat: new homepage (#3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinie13 authored Sep 6, 2024
1 parent 012e80d commit 0f5b893
Show file tree
Hide file tree
Showing 30 changed files with 1,960 additions and 571 deletions.
2 changes: 1 addition & 1 deletion assets/scss/_case-studies.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ h2 {
}

body footer {
background-color: #585858 !important;
background-color: #F4F4F6 !important;
}

.section1 {
Expand Down
23 changes: 16 additions & 7 deletions assets/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ body.td-404 main .error-details {

.navbar-brand {
// position: absolute;
width: 45px;
width: 96px;
height: 20px;
background-repeat: no-repeat;
background-size: contain;
background-image: url("/imgs/favicon.png");
background-image: url("/imgs/nav_logo2.png");
}

#hamburger {
Expand All @@ -145,7 +145,7 @@ body.td-404 main .error-details {

.td-navbar-nav-scroll {
overflow: visible !important;
display: none;
// display: none;

.navbar-nav {
overflow: visible !important;
Expand All @@ -163,7 +163,7 @@ body.td-404 main .error-details {
.active::after {
position: absolute;
width: 100%;
height: 2px;
height: 0px;
content: "";
bottom: -4px;
left: 0;
Expand All @@ -183,7 +183,7 @@ body.td-404 main .error-details {

// Flip-Nav
.flip-nav .td-navbar {
background-color: #EBECEF !important;
// background-color: #EBECEF !important;
.dropdown {
min-width: 0px;

Expand Down Expand Up @@ -891,15 +891,24 @@ div.alert > em.javascript-required {
#docsearch {
.DocSearch-Button {
background: #DDDEE4;
padding: 0 10px !important;
}
.DocSearch-Button-Container{
width: 15px;
}
.DocSearch-Button-Placeholder{
font-size: 12px;
display: none;
}
.DocSearch-Button-Keys{
display: none;
}
}

#language .btn-language {
width: 120px;
width: 156px;
height: 40px;
margin-right: 12px;
margin-right: 16px;
margin-bottom: 12px;
border-radius: 24px;
}
2 changes: 1 addition & 1 deletion cn_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defaultContentLanguageInSubdir = false
[languages.en]
title = "Apache Dubbo"
description = "Apache Dubbo Official Website"
languageName = "English"
languageName = "EN"
contentDir = "content/en"
# Weight used for sorting.
weight = 1
Expand Down
101 changes: 77 additions & 24 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defaultContentLanguageInSubdir = false
[languages.en]
title = "Apache Dubbo"
description = "Apache Dubbo Official Website"
languageName = "English"
languageName = "EN"
contentDir = "content/en"
# Weight used for sorting.
weight = 1
Expand All @@ -68,6 +68,81 @@ contentDir = "content/zh-cn"
#time_format_default = "02.01.2006"
#time_format_blog = "02.01.2006"

[languages.en.params.community]
navLabel = "COMMUNITY"
weight = 2
[[languages.en.params.community.navOptions.items]]
name = "News"
url = "/en/blog/news/"
[[languages.en.params.community.navOptions.items]]
name = "Vulnerabilities"
url = "/en/overview/notices/"
[[languages.en.params.community.navOptions.items]]
name = "Contributor's Guide"
url = "/zh-cn/contact/"
[[languages.en.params.community.navOptions.items]]
name = "Meet The Team"
url = ""

# Weight used for sorting.
weight = 2
[languages.zh-cn.params.community]
navLabel = "联系社区"
weight = 2
[[languages.zh-cn.params.community.navOptions.items]]
name = "新闻"
url = "/zh-cn/blog/news/"
[[languages.zh-cn.params.community.navOptions.items]]
name = "漏洞"
url = "/zh-cn/overview/notices/"
[[languages.zh-cn.params.community.navOptions.items]]
name = "贡献者指南"
url = "/zh-cn/contact/"
[[languages.zh-cn.params.community.navOptions.items]]
name = "认识团队"
url = ""



[languages.en.params.ecosystem]
navLabel = "ECOSYSTEM"
weight = 2
[[languages.en.params.ecosystem.navOptions.items]]
name = "Launch A Project"
url = "https://start.dubbo.apache.org/"
[[languages.en.params.ecosystem.navOptions.items]]
name = "Visualizable Console"
url = "/en/overview/mannual/control-plane/"
[[languages.en.params.ecosystem.navOptions.items]]
name = "Benchmarking"
url = "http://47.251.95.138:3000/public-dashboards/b75030ae3d0f402ca06b6826de3b590b?orgId=1"
[[languages.en.params.ecosystem.navOptions.items]]
name = "Proxyless Mesh"
url = "/en/overview/what/core-features/service-mesh/"
[[languages.en.params.ecosystem.navOptions.items]]
name = "More Demos"
url = "https://github.com/apache/dubbo-samples"


[languages.zh-cn.params.ecosystem]
navLabel = "生态"
weight = 2
[[languages.zh-cn.params.ecosystem.navOptions.items]]
name = "启动项目"
url = "https://start.dubbo.apache.org/"
[[languages.zh-cn.params.ecosystem.navOptions.items]]
name = "可视化控制台"
url = "/zh-cn/overview/mannual/control-plane/"
[[languages.zh-cn.params.ecosystem.navOptions.items]]
name = "商城系统"
url = "http://47.251.95.138:3000/public-dashboards/b75030ae3d0f402ca06b6826de3b590b?orgId=1"
[[languages.zh-cn.params.ecosystem.navOptions.items]]
name = "无代理网格"
url = "/zh-cn/overview/what/core-features/service-mesh/"
[[languages.zh-cn.params.ecosystem.navOptions.items]]
name = "更多样例"
url = "https://github.com/apache/dubbo-samples"

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand Down Expand Up @@ -97,11 +172,7 @@ algolia_docsearch = true
offlineSearch = false


[[menu.main]]
name = "Initializer"
weight = 50
url = "https://start.dubbo.apache.org/bootstrap.html"
post = "<i class='fas fa-external-link-alt'></i>"

#[[menu.main]]
# name = "Admin"
# weight = 60
Expand Down Expand Up @@ -205,24 +276,6 @@ url = "mailto:[email protected]"
icon = "fa fa-envelope"
desc = "Discuss development issues around the project"

[params.ecosystem]
navLabel = "Ecosystem"
[params.ecosystem.navOptions]
[[params.ecosystem.navOptions.items]]
name = "Launch A Project"
url = "/en/blog"
[[params.ecosystem.navOptions.items]]
name = "Admin"
url = "/en/download"
[[params.ecosystem.navOptions.items]]
name = "System"
url = "/option-3"
[[params.ecosystem.navOptions.items]]
name = "Benchmark"
url = "/option-3"
[[params.ecosystem.navOptions.items]]
name = "Proxyless Mesh"
url = "/option-3"


[sitemap]
Expand Down
Loading

0 comments on commit 0f5b893

Please sign in to comment.