Add banner for open graph embedding, slight configuration changes

This commit is contained in:
Xevion
2022-04-03 20:18:56 -05:00
parent 6f85c1c85d
commit 158e368539
4 changed files with 17 additions and 13 deletions

BIN
Lovely.psd Normal file
View File

Binary file not shown.

BIN
public/banner.jpeg Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

View File

@@ -1,17 +1,23 @@
<!DOCTYPE html>
<html lang="">
<head>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<meta content="lovely" property="og:title"/>
<meta content="Something for my beloved... 💘️" property="og:description"/>
<meta content="<%= BASE_URL %>" property="og:url"/>
<meta content="<%= BASE_URL %>banner.jpeg" property="og:image"/>
<meta content="#F1609D" data-react-helmet="true" name="theme-color"/>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@@ -16,7 +16,7 @@ class Manager {
TIME_PERIOD = 60;
EDGE_BUFFER = 0.15;
MIN_RADIUS = 30;
TIME_SCALE = 2.3;
TIME_SCALE = 2.8;
constructor(app, sectionCount) {
this.app = app;
@@ -90,7 +90,7 @@ class Manager {
generatePoint() {
// Generation initial data on the point
let point = random.pointInCircle(new Point(0, 0), this.MIN_RADIUS, this.MAX_RADIUS);
let sprite = null;
let sprite;
// Acquire sprite object.
if (this.sprite_trash.length < 1) {
@@ -106,8 +106,6 @@ class Manager {
sprite.y = point.y;
// Set scale
// let distanceFromCenter = this.getDistance(commonPositions.center, point);
// sprite.baselineScale = this.uniform(0.45, 0.65);
sprite.baselineScale = random.uniform(0.05, 0.12)
sprite.scale.set(0, 0)