redirecter for ao3 that adds opengraph metadata

minor bugfixes; add sunset theme

Changed files
+17 -2
src
app
generator
series
[seriesId]
lib
+1 -1
src/app/generator/page.js
···
{props.summaryType === 'custom' && (
<div className="input-field">
<label htmlFor="customSummary">Custom Summary</label>
-
<textarea name="customSummary" id="customSummary" onBlurs={e => updateProp(e.target.name, e.target.value)}></textarea>
+
<textarea name="customSummary" id="customSummary" onBlur={e => updateProp(e.target.name, e.target.value)}></textarea>
</div>
)}
</div>
+1 -1
src/app/series/[seriesId]/opengraph-image.jsx
···
import { getSeries } from "@fujocoded/ao3.js"
import sanitizeData from "@/lib/sanitizeData.js"
import OGImage from "@/lib/ogimage.js"
-
import OGImage from "@/lib/ogimagelocked.js"
+
import OGImageLocked from "@/lib/ogimagelocked.js"
import baseFonts from "@/lib/baseFonts.js"
import titleFonts from "@/lib/titleFonts.js"
import defaults from "@/lib/ogdefaults.js"
+15
src/lib/themes.js
···
accent3Color: '#333333',
accent4: '#bca3a3',
accent4Color: '#333333'
+
},
+
sunset: {
+
name: "Sunset",
+
background: '#c757ab',
+
color: '#FFFFFF',
+
descBackground: '#FFFFFF',
+
descColor: '#2a2a2a',
+
accent: '#ff8c00',
+
accentColor: '#FFFFFF',
+
accent2: '#c5b95c',
+
accent2Color: '#FFFFFF',
+
accent3: '#ff69b4',
+
accent3Color: '#FFFFFF',
+
accent4: '#000069',
+
accent4Color: '#FFFFFF'
}
}