Skip to content

Commit

Permalink
春节皮肤
Browse files Browse the repository at this point in the history
  • Loading branch information
sgjsakura committed Jan 21, 2020
1 parent a6ae7e3 commit 9507041
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CC98.Forum/CC98.Forum/Components/UserCenter/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { UserInfo } from '../../States/AppState';
import { connect } from 'react-redux';
import { RootState } from '../../Store';

const themeList = ['系统默认', '冬季', '春季(浅色)', '春季(深色)', '夏季', '秋季(橙色)', '秋季(红色)', '双十一', '中秋(暗)', '中秋(亮)', '小雪(暗)','小雪(亮)'];
const themeList = ['系统默认', '冬季', '春季(浅色)', '春季(深色)', '夏季', '秋季(橙色)', '秋季(红色)', '双十一', '中秋(暗)', '中秋(亮)', '小雪(暗)','小雪(亮)','春节(暗)','春节(亮)'];

interface Props {
userInfo: UserInfo;
Expand Down Expand Up @@ -52,6 +52,8 @@ class Theme extends React.Component<Props> {
<div className="user-theme-config">
<button style={{ backgroundColor: 'rgb(3, 57, 117)' }} key={10} onClick={() => this.handleSubmit(10)} disabled={this.props.userInfo.theme === 10}>小雪(暗)</button>
<button style={{ backgroundColor: 'rgb(122, 146, 194)' }} key={11} onClick={() => this.handleSubmit(11)} disabled={this.props.userInfo.theme === 11}>小雪(亮)</button>
<button style={{ backgroundColor: 'rgb(205,0,0)' }} key={12} onClick={() => this.handleSubmit(12)} disabled={this.props.userInfo.theme === 12}>春节(暗)</button>
<button style={{ backgroundColor: 'rgb(255,50,50)' }} key={13} onClick={() => this.handleSubmit(13)} disabled={this.props.userInfo.theme === 13}>春节(亮)</button>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion CC98.Forum/CC98.Forum/Template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
themeNames.push("<%= htmlWebpackPlugin.files.css[cssFile].split('/').pop() %>");
<% } %>
// themeNames[0]为当前的默认主题
themeNames[0] = themeNames[1];
themeNames[0] = themeNames[13];
try {
(function () {
var time = localStorage.getItem('refresh_token_expirationTime');
Expand Down
9 changes: 9 additions & 0 deletions CC98.Forum/CC98.Forum/Themes/spring_festival_dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$theme_color_main: rgb(205,0,0);
$theme_color_sub: rgb(250,158,0);
$theme_color_topbar: rgba(205,0,0, 0.8);
$background_image: url(/static/images/spring_festival_dark.jpg);
$background_color_page:rgb(30, 30, 30);
$background_color_textarea:#bbbbbb;
$font_color_text:#000000;

@import '../Site.scss';
9 changes: 9 additions & 0 deletions CC98.Forum/CC98.Forum/Themes/spring_festival_light.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$theme_color_main: rgb(255,50,50);
$theme_color_sub: rgb(250,158,0);
$theme_color_topbar: rgba(255,50,50, 0.8);
$background_image: url(/static/images/spring_festival_light.png);
$background_color_page:#e6e7ec;
$background_color_textarea:#ffffff;
$font_color_text:#000000;

@import '../Site.scss';
2 changes: 2 additions & 0 deletions CC98.Forum/CC98.Forum/vscodeConfig/webpack.config.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ module.exports = {
css_mid_autumn_light:'./Themes/mid_autumn_light.scss',
css_light_snow_dark:'./Themes/light_snow_dark.scss',
css_light_snow_light:'./Themes/light_snow_light.scss',
css_spring_festival_dark:'./Themes/spring_festival_dark.scss',
css_spring_festival_light:'./Themes/spring_festival_light.scss'
},

output: {
Expand Down
2 changes: 2 additions & 0 deletions CC98.Forum/CC98.Forum/webpack.config.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ var config = {
css_mid_autumn_light:'./Themes/mid_autumn_light.scss',
css_light_snow_dark:'./Themes/light_snow_dark.scss',
css_light_snow_light:'./Themes/light_snow_light.scss',
css_spring_festival_dark:'./Themes/spring_festival_dark.scss',
css_spring_festival_light:'./Themes/spring_festival_light.scss'
},
output: {
path: path.resolve(__dirname, 'wwwroot/'),
Expand Down
2 changes: 2 additions & 0 deletions CC98.Forum/CC98.Forum/webpack.config.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var config = {
css_mid_autumn_light:'./Themes/mid_autumn_light.scss',
css_light_snow_dark:'./Themes/light_snow_dark.scss',
css_light_snow_light:'./Themes/light_snow_light.scss',
css_spring_festival_dark:'./Themes/spring_festival_dark.scss',
css_spring_festival_light:'./Themes/spring_festival_light.scss'
},
output: {
path: path.resolve(__dirname, 'wwwroot/'),
Expand Down
2 changes: 1 addition & 1 deletion CC98.Forum/CC98.Forum/wwwroot/static/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"apiUrl": "https://apitest.niconi.cc",
"apiUrl": "https://api.cc98.org",
"imageUploadUrl": "http://www.cc98.org"
}
4 changes: 4 additions & 0 deletions CC98.Forum/CC98.Forum/wwwroot/static/config.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"apiUrl": "https://api.cc98.org",
"imageUploadUrl": "http://www.cc98.org"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9507041

Please sign in to comment.