Browse Source

add new waifu

dev
xmcp 6 years ago
parent
commit
1e9ba4eba6
  1. BIN
      public/static/bg/gbp.jpg
  2. BIN
      public/static/splash/1242x2208.png
  3. BIN
      public/static/splash/1668x2388.png
  4. BIN
      public/static/splash/2388x1668.png
  5. BIN
      public/static/splash/750x1334.png
  6. 9
      src/Config.js
  7. 6
      src/Flows.css
  8. 4
      src/color_picker.js
  9. 2
      src/index.css

BIN
public/static/bg/gbp.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

BIN
public/static/splash/1242x2208.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
public/static/splash/1668x2388.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
public/static/splash/2388x1668.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
public/static/splash/750x1334.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

9
src/Config.js

@ -3,15 +3,16 @@ import React, {Component, PureComponent} from 'react';
import './Config.css';
const BUILTIN_IMGS={
'static/bg/eriri.jpg': '平成著名画师(默认)',
'static/bg/gbp.jpg': '追逐繁星(默认)',
'static/bg/eriri.jpg': '平成著名画师',
'static/bg/yurucamp.jpg': '露营天下第一',
'static/bg/minecraft.jpg': '麦恩·库拉夫特',
'static/bg/sif.jpg': '梦开始的地方',
};
const DEFAULT_CONFIG={
background_img: 'static/bg/eriri.jpg',
background_color: '#112244',
background_img: 'static/bg/gbp.jpg',
background_color: '#113366',
pressure: false,
quote: true,
horizontal_scroll: true,
@ -50,7 +51,7 @@ export function bgimg_style(img,color) {
if(color===undefined) color=window.config.background_color;
return {
background: 'transparent center center',
backgroundImage: img===null ? 'unset' : 'url('+encodeURI(img)+')',
backgroundImage: img===null ? 'unset' : 'url("'+encodeURI(img)+'")',
backgroundColor: color,
backgroundSize: 'cover',
};

6
src/Flows.css

@ -3,7 +3,7 @@
border-radius: 5px;
margin: 1em 0;
padding: .5em;
box-shadow: 0 3px 8px rgba(0,0,0,.4);
box-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.box-tip {
@ -144,8 +144,8 @@
height: 10px;
margin-bottom: -10px;
border-radius: 50%;
background-color: #ffbb44;
box-shadow: 0 0 5px rgba(0,0,0,.4);
background-color: #ffcc77;
box-shadow: 1px 1px 5px rgba(0,0,0,.5);
}
.box-content {

4
src/color_picker.js

@ -13,12 +13,12 @@ export class ColorPicker {
if(name==='洞主')
return 'hsl(0,0%,97%)';
if(!window.config.color_picker)
return 'hsl(0,0%,85%)';
return 'hsl(0,0%,87%)';
if(!this.names[name]) {
this.current_h+=golden_ratio_conjugate;
this.current_h%=1;
this.names[name]=`hsl(${this.current_h*360}, 40%, 87%)`;
this.names[name]=`hsl(${this.current_h*360}, 60%, 90%)`;
}
return this.names[name];
}

2
src/index.css

@ -1,7 +1,7 @@
body {
background-size: cover;
user-select: none;
background-color: #124;
background-color: #333;
}
html::-webkit-scrollbar {

Loading…
Cancel
Save