Compare commits

...

23 Commits

Author SHA1 Message Date
t404owo
f3d4e659df Fix import URL for Supabase client 2025-12-07 20:32:40 +01:00
t404owo
c528c7203f Fix import URL for Supabase client 2025-12-07 20:32:23 +01:00
t404owo
cc95f657ae Update Supabase client import to latest version 2025-12-07 20:31:09 +01:00
t404owo
800ec53291 Change Supabase import to use CDN link 2025-12-07 20:30:48 +01:00
t404owo
c3af2e62c8 Remove Supabase script from index.html 2025-12-07 20:29:55 +01:00
t404owo
e6e37e5ba5 Remove Supabase script from index.html 2025-12-07 20:29:31 +01:00
t404owo
b721d85d6d Include Supabase JS library in index.html
Added Supabase JavaScript library script tag.
2025-12-07 20:23:26 +01:00
t404owo
9f398ccb5d Change Supabase import URL to a package reference 2025-12-07 20:22:31 +01:00
t404owo
bb2f59f974 Add Supabase JavaScript library to index.html 2025-12-07 20:21:57 +01:00
t404owo
4cb191f2e0 Update Supabase JS library version to 2 2025-12-07 20:14:56 +01:00
t404owo
bc83fa4ed8 Update Supabase JS client version to 2 2025-12-07 20:14:41 +01:00
t404owo
a5f838fbd0 Update Supabase JS client import to latest version 2025-12-07 19:44:29 +01:00
t404owo
23210ce689 Update Supabase JS library import to latest version 2025-12-07 19:44:08 +01:00
t404owo
a998ad564b Update Supabase key in index.js
Replaced the Supabase key with a publishable key.
2025-12-07 19:38:44 +01:00
t404owo
1636d189fe Update Supabase key in index.js
Replaced the placeholder Supabase key with a jwt key.
2025-12-07 19:32:47 +01:00
t404owo
5c1b16789b Update Supabase import path to ESM version 2025-12-07 19:29:46 +01:00
t404owo
9001ec9e38 Fix import statement for Supabase client 2025-12-07 19:26:05 +01:00
t404owo
bb23015bc4 Fix import statement for Supabase client 2025-12-07 19:24:29 +01:00
t404owo
892c24b498 Update Supabase key in mail.js 2025-12-07 18:27:33 +01:00
t404owo
d71bbe78a9 Update Supabase anon key to use publishable key
Replaced the Supabase anon key with a publishable key to make the website run normally.
2025-12-07 18:27:13 +01:00
t404owo
efb2966d62 Update font source URL for Nerd Font 2025-10-26 02:46:45 +02:00
t404owo
ddb1501e39 Update font source URL for Nerd Fonts
Update for better icon-loading traffic.
2025-10-26 02:31:48 +02:00
t404owo
5a8bce7125 Syntax fix+button handling
Fixed code syntax.
Added button disable when sending.
2025-10-20 06:44:47 +02:00
4 changed files with 13 additions and 9 deletions

View File

@@ -713,7 +713,7 @@ textfield {
@font-face {
font-family: "NerdFontsSymbols Nerd Font";
src: url("/assets/fonts/nf-symbols.woff2") format("woff2");
src: url("https://www.nerdfonts.com/assets/fonts/Symbols-2048-em Nerd Font Complete.woff2") format("woff2");
}
.nf-icons {

View File

@@ -17,8 +17,7 @@ half_img_cards = document.querySelector(".half-image-cards");
import { createClient } from "https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm";
const supabaseUrl = "https://owbamcqdmqetrgcznxva.supabase.co";
const supabaseKey =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im93YmFtY3FkbXFldHJnY3pueHZhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjI5NDU5NjIsImV4cCI6MjAzODUyMTk2Mn0.xNen7b513ZGwJ-Qu5iZ6K8qrmvy4QVjS10wiYbEEwKc";
const supabaseKey = "sb_publishable_b0fMYw5I1X97gQXJLVBnrA_-0L4qHGv";
//anon key, you cant access private stuffs or add hilarious stuffs w/ this...
//(unless sending me some malicious links but I delete your msg)
//the moment you notice you need an API endpoint.

View File

@@ -2,7 +2,7 @@ import { createClient } from "https://cdn.jsdelivr.net/npm/@supabase/supabase-js
const supabaseUrl = "https://owbamcqdmqetrgcznxva.supabase.co";
const supabaseKey =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im93YmFtY3FkbXFldHJnY3pueHZhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjI5NDU5NjIsImV4cCI6MjAzODUyMTk2Mn0.xNen7b513ZGwJ-Qu5iZ6K8qrmvy4QVjS10wiYbEEwKc";
"sb_publishable_b0fMYw5I1X97gQXJLVBnrA_-0L4qHGv";
//anon key, you cant access private stuffs or add hilarious stuffs w/ this...
//(unless sending me some malicious links but I delete your msg)
//the moment you notice you need an API endpoint.
@@ -13,7 +13,8 @@ const form = document.getElementById("mail-form"),
emailInput = document.getElementById("email"),
subjectInput = document.getElementById("subject"),
messageInput = document.getElementById("message"),
statusMessage = document.querySelector(".box");
statusMessage = document.querySelector(".box"),
submitButton = form.querySelector('button[type="submit"]');;
form.addEventListener("submit", async (e) => {
e.preventDefault();
@@ -23,14 +24,16 @@ form.addEventListener("submit", async (e) => {
const subject = subjectInput.value.trim();
const message = messageInput.value.trim();
try {
[name, email, subject, message].forEach(obj =>
[name, email, subject, message].forEach(obj => {
if (!obj || obj.length===0) {
throw new Error("field_missing");
}
});
if (submitButton) submitButton.disabled = true;
const { data, error } = await supabase
.from("mail")
.insert([{ name, email, subject, message }]);
@@ -38,10 +41,11 @@ form.addEventListener("submit", async (e) => {
if (error) {
throw error;
}
statusMessage.textContent = "Message sent successfully!";
statusMessage.style = "background: #DDF6D2";
form.reset();
if (submitButton) submitButton.disabled = false;
} catch (error) {
console.error("Error sending message:", error);
statusMessage.textContent = (error.message === "field_missing") ?
@@ -50,5 +54,6 @@ form.addEventListener("submit", async (e) => {
/*else*/
"Error sending message. Please try again.";
statusMessage.style = "background: #FFDCDC";
if (submitButton) submitButton.disabled = false;
}
});

View File

@@ -198,4 +198,4 @@ I write/make/produce EDM music(DTM), and for every releases I'll post my music o
</main>
<div class="footer">&copy; t404:null 2021-2025 - All Rights Reserved</div>
</body>
</html>
</html>