Skip to content

Commit

Permalink
Update SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
colecrouter committed Nov 12, 2023
1 parent a95c964 commit 06e2d70
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 31 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright ©️ 2023 [Contributors](https://github.com/Mexican-Man/Stardew-Save-Editor/graphs/contributors)
Copyright ©️ 2023 [Contributors](https://github.com/colecrouter/Stardew-Save-Editor/graphs/contributors)

--- ADDITIONAL CLARIFICATION ---

Expand Down
21 changes: 21 additions & 0 deletions src/routes/(upload)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@
</nav>
</div>

<!-- SEO data -->
<main style:display="hidden">
<h1>Stardew Valley Save Editor</h1>
<p>
This is an online editor for the hit game <a href="https://stardewvalley.net/">Stardew Valley</a>. Upload your save file here, modify your it, then download your edited save file. Make sure to make a backup of your save file!
</p>

<nav>
<h2>Inventory</h2>
<h2>Character</h2>
<h2>Appearance</h2>
<h2>Relationships</h2>
<h2>Crafting</h2>
<h2>Cooking</h2>
</nav>

<h3>
<a href="https://github.com/colecrouter/stardew-save-editor">Link to the GitHub project</a>
</h3>
</main>

<style>
.wrapper {
display: flex;
Expand Down
48 changes: 19 additions & 29 deletions src/routes/(upload)/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script lang="ts">
import { goto } from "$app/navigation";
import { base } from "$app/paths";
import { FileName, SaveConverter, SaveGame } from "$lib/SaveFile";
import Container from "../Container.svelte";
import { goto } from '$app/navigation';
import { base } from '$app/paths';
import { FileName, SaveConverter, SaveGame } from '$lib/SaveFile';
import Container from '../Container.svelte';
let submit: HTMLInputElement;
let files: FileList;
const handle = async () => {
const file = files[0];
const formData = new FormData();
formData.append("file", file);
formData.append('file', file);
let json: SaveFile;
try {
Expand All @@ -21,12 +21,12 @@
}
// Save is good, back it up
const { BackupManager: Backups } = await import("$lib/Backups");
const { BackupManager: Backups } = await import('$lib/Backups');
Backups.unshift(file);
SaveGame.set(json);
FileName.set(file.name);
goto(base + "/inventory");
goto(base + '/inventory');
};
</script>

Expand All @@ -46,35 +46,25 @@
Default save locations:
<ul>
<li>
<span class="noselect">Windows: </span><code
>%appdata%\StardewValley\Saves</code>
<span class="noselect">Windows: </span><code>%appdata%\StardewValley\Saves</code>
</li>
<li>
<span class="noselect">Mac: </span><code
>~/Library/Application Support/StardewValley/Saves</code>
<span class="noselect">Mac: </span><code>~/Library/Application Support/StardewValley/Saves</code>
</li>
<li>
<span class="noselect">Linux: </span><code
>~/.config/StardewValley/Saves</code>
<span class="noselect">Linux: </span><code>~/.config/StardewValley/Saves</code>
</li>
</ul>

<div class="warning">
<p>
<strong
>Always backup your save file. Corrupt save files may break the
game.</strong> You take full responsibility by using this tool.
<strong>Always backup your save file. Corrupt save files may break the game.</strong> You take full responsibility by using this tool.
</p>
</div>

<p>You can access temporary backups of your saves by clicking the CD icon.</p>
<p>
You can access temporary backups of your saves by clicking the CD icon.
</p>
<p>
If you find a problem, please report it <a
href="https://github.com/Mexican-Man/stardew-save-editor/issues"
>on GitHub</a
>.
If you find a problem, please report it <a href="https://github.com/colecrouter/stardew-save-editor/issues">on GitHub</a>.
</p>
</small>
</form>
Expand All @@ -88,7 +78,7 @@
}
/* Big striped Drag and Drop File Upload */
input[type="file"] {
input[type='file'] {
position: relative;
border: 2px dashed #8e3d04;
border-radius: 5px;
Expand All @@ -104,20 +94,20 @@
font-size: 0;
}
input[type="file"]:focus {
input[type='file']:focus {
outline: none;
}
input[type="file"]:hover {
input[type='file']:hover {
cursor: pointer;
}
input[type="file"]::file-selector-button {
input[type='file']::file-selector-button {
display: none;
}
input[type="file"]::after {
content: "Drag and Drop or Click";
input[type='file']::after {
content: 'Drag and Drop or Click';
display: flex;
align-items: center;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</svelte:head>

<!-- GITHUB LOGO -->
<a href="https://github.com/Mexican-Man/stardew-save-editor" aria-label="GitHub repository link" target="_blank" rel="noreferrer">
<a href="https://github.com/colecrouter/stardew-save-editor" aria-label="GitHub repository link" target="_blank" rel="noreferrer">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Octicons-mark-github.svg/600px-Octicons-mark-github.svg.png?20180806170715" alt="Github Logo" />
</a>

Expand Down

0 comments on commit 06e2d70

Please sign in to comment.