Skip to content

Commit

Permalink
Repair the bug of failing to switch the default language on the homep…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
duguankui committed Apr 29, 2024
1 parent 01b4c02 commit 2c55fd3
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 546 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<PackageIconUrl>https://dignite.com/assets/dignite_nupkg.png</PackageIconUrl>
<PackageProjectUrl>https://dignite.com/dignite-cms</PackageProjectUrl>
Expand Down
1 change: 1 addition & 0 deletions host/Dignite.Cms.Web.Host/Dignite.Cms.Web.Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<RootNamespace>Dignite.Cms</RootNamespace>
<PreserveCompilationReferences>true</PreserveCompilationReferences>
<UserSecretsId>Dignite.Cms-c2d31439-b723-48e2-b061-5ebd7aeb6010</UserSecretsId>
<GenerateRuntimeConfigDevFile>true</GenerateRuntimeConfigDevFile>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions host/Dignite.Cms.Web.Host/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
Layout = ThemeManager.CurrentTheme.GetPublicLayout();
}
@section styles {
<script>
document.documentElement.setAttribute('data-bs-theme', 'light');
</script>

<!-- Dignite global css -->
<abp-style-bundle name="website-style">
<abp-style src="/website.css"></abp-style>
Expand Down
233 changes: 1 addition & 232 deletions host/Dignite.Cms.Web.Host/wwwroot/website.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
@font-face {
font-display: swap;
font-family: Albra;
font-style: normal;
font-weight: 400;
src: url(fonts/albra.woff2) format('woff2'),url(fonts/albra.woff) format('woff')
}
@font-face {
font-display: swap;
font-family: SawarabiMincho-Regular;
font-style: normal;
font-weight: 400;
src: url(fonts/SawarabiMincho-Regular.woff2) format('woff2'),url(fonts/SawarabiMincho-Regular.woff) format('woff')
}

body.abp-public-layout > .container-fluid {
padding-left: 0rem;
padding-right: 0rem;
Expand Down Expand Up @@ -58,16 +45,6 @@ body.abp-public-layout > .container-fluid {
--bs-nav-link-color: rgba(0,50,200,1);
--bs-nav-link-hover-color: rgba(0,50,200,1);
}
.text-font-light-en {
font-family: 'Albra','sans-serif';
}
.text-font-light-ja {
font-family: 'SawarabiMincho-Regular','sans-serif';
}
.text-font-light-zh {
font-family: 'Times New Roman', Times, serif,'sans-serif';
font-weight:600;
}

#main-navbar-container .navbar-nav .nav-link {
color: rgba(0,0,0,.8);
Expand All @@ -77,168 +54,6 @@ body.abp-public-layout > .container-fluid {
#main-navbar-container .navbar-nav .nav-link.active {
color: rgba(0,50,200,1);
}
.jumbotron {
padding: 2.5rem 0.5rem;
}

@media (min-width: 992px) {
.jumbotron {
padding: 5rem 20% 5rem;
}
}
/* 全屏区域 */
.full-screen-container {
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
top: calc(-1 * var(--body-padding-top));
left: 0rem;
width: 100%;
height: 100vh;
}

/* 动画 */
.animate__supper__slow {
--animate-duration: 30s;
}

/* site keywords */
.site-keywords {
position:relative;
margin-top:3rem;
margin-bottom:3rem;
}

/** 带有品牌LOGO的背景 */
.brand-bg {
background-image: url(images/logo-use-for-bg.png);
background-repeat: no-repeat;
background-position: center;
}

.site-keyword-item {
position: relative;
font-size: clamp(2rem, 5.41667vw, 7.375rem);
letter-spacing: 0em;
line-height: 1.25;
text-transform: uppercase;
}
/* 图形背景,滚动页面时配合JS实现动画效果 */
.shape-background-area {
/* 放置图形背景的区域,它是一个点位元素,没有样式效果 */
}
.shape-bg {
width: 0px;
height: 0px;
border-radius: 50%;
position: fixed;
bottom: -75%;
left: 50%;
transform: translate(-50%, 0);
transition: all 0.5s;
z-index: -1;
}
.shape-brand-bg {
width: 400px;
height: 400px;
background-color: #edf7e6;
top: 50%;
transform: translate(-50%, -50%);
}
.shape-white-bg {
background-color: #fff;
}
.shape-black-bg {
background-color: #000;
}
.shape-second-bg {
background-color: #edf7e6;
}
/* OfficialWebSite Card */
.ows-card {
overflow:hidden;
border:none;
}
.ows-card img.card-img-top {
transition: all .5s ease 0s;
}
.ows-card:hover img.card-img-top {
-webkit-transform: scale(1.05);
-moz-transform: scale(1.05);
transform: scale(1.05)
}
.ows-card:hover a.underline-animate.fw-semibold {
background-size: 100% 2px;
}
.ows-card .card-body > .card-title {
padding-top: 0.5rem;
}
/* custom-section */
.custom-section {
margin-top: 4rem;
margin-bottom: 4rem;
}
@media (min-width: 992px) {
.custom-section p.lead {
margin-left:25%;
max-width: 50%;
}
}
.custom-brand-swiper .swiper-slide img{
max-height:100px;
}
/** blog **/
.blog-post-card {
height: 100%;
}
.blog-post-card .card-body{
display: flex;
flex-direction: column;
}

/** dignite-abp-module-item **/
.dignite-abp-module-item-card {
height: 100%;
}
.dignite-abp-module-item-card .card-body {
padding-bottom:1.5rem;
display: flex;
flex-direction: column;
}

/** work-entry */
.work-entry-background {
position: relative;
background-color: #000;
background-attachment: fixed;
background-size: cover;
background-position: center;
color: #fff;
transition: all 0.75s;
}
.work-entry-background-overlay {
position: absolute;
left: 0rem;
top: 0rem;
width: 100%;
height: 100%;
background-color: rgb(0,0,0,.5);
transition: all 0.75s;
-webkit-backdrop-filter: blur(15px);
backdrop-filter: blur(15px);
}
.work-entry-background-overlay-hidden {
display:none;
}
.work-entry-background h1{
font-size: clamp(2rem, 3vw, 4rem);
font-weight:bold;
}
.work-entry-special .img-fluid {
border-radius:2rem;
border:solid 8px #000;
}
/** rich-text */
.rich-text h1,
.rich-text h2,
Expand Down Expand Up @@ -292,49 +107,3 @@ body.abp-public-layout > .container-fluid {
content: '✓';
color: #28a745;
}

/** social icon*/
.social-btn {
display: inline-block;
padding: 0px;
line-height: 3rem;
font-size: 1.5rem;
width: 50px;
height: 50px;
}

/**星空背景*/
.starry-sky-background {
position: absolute;
top: 50%;
left: 50%;
width: 2rem;
height: 2rem;
margin: -1rem 0 0 -1rem;
background: #FFF;
transform: scale(0);
border-radius: 50%;
}

/* abp logo icon */
.abp-icon {
display:block;
width:28px;
height:28px;
background-image:url(images/abp-framework-logo.png);
background-size:cover;
}

/* dignite-support-items */
.dignite-support-items > ul {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.dignite-support-items > ul > * {
flex: 0 0 auto;
width: 50%;
}
.dignite-support-items > ul > li > i {
color: var(--bs-secondary-color);
}
Loading

0 comments on commit 2c55fd3

Please sign in to comment.