Skip to content

Commit 9cd9f86

Browse files
committed
added privacy message
1 parent 8037b7f commit 9cd9f86

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/ImageConverter.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function ImageConverterForm() {
110110

111111
return (
112112
<>
113-
<form onSubmit={ handleSubmit } id="image-converter-form" className="flex flex-col gap-4 m-auto my-8">
113+
<form onSubmit={ handleSubmit } id="image-converter-form" className="flex flex-col gap-4 m-auto my-8 mb-16">
114114
<fieldset>
115115
<label htmlFor="image-input" className="btn btn-secondary text-center">Select Images (JPEG, PNG, WEBP)</label>
116116
<input className="hidden" type="file" id="image-input" accept="image/*" multiple
@@ -175,8 +175,13 @@ function ImageConverter() {
175175
return (
176176
<div className="flex flex-col items-center justify-center p-4 min-h-[75vh]">
177177
<h1>Image Converter</h1>
178-
<p>Select images to convert and optimize.</p>
178+
<p className="text-lg">Select images to convert and optimize.</p>
179179
<ImageConverterForm />
180+
181+
<p className="text-gray-400">
182+
Your images are not stored on our server.<br/>
183+
This means you can safely upload and convert your images without worrying about privacy or data retention.
184+
</p>
180185
</div>);
181186
}
182187

src/main.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
BrowserRouter, Routes, Route
99
} from "react-router";
1010

11-
const BASE = '/image-optimizer/';
11+
const BASE = process.env.NODE_ENV === 'production' ? '/image-optimizer' : '/';
1212

1313
createRoot(document.getElementById('root')).render(
1414
<StrictMode>
@@ -19,7 +19,7 @@ createRoot(document.getElementById('root')).render(
1919
</Routes>
2020
</BrowserRouter>
2121
</main>
22-
<footer className="footer py-12">
22+
<footer className="footer py-12 text-gray-400">
2323
<p className="mb-4">View on <a href="https://github.com/timbatt/image-optimizer" target="_blank">Github</a></p>
2424
<p><a href="https://www.zoarvalleysoftware.com" target="_blank" rel="noopener noreferrer">© Zoar Valley Software LLC - 2025</a></p>
2525
</footer>

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import tailwindcss from '@tailwindcss/vite'
55
// https://vite.dev/config/
66
export default defineConfig({
77
plugins: [react(), tailwindcss()],
8-
base: '/image-optimizer',
8+
base: process.env.NODE_ENV === 'production' ? '/image-optimizer' : '/',
99
})

0 commit comments

Comments
 (0)