feat: Social-Media-Badges für TikTok und Instagram hinzugefügt
- Neue RPC-Route für Social-Media-URLs aus .env (social.ts) - Social-Media-Badges auf der Startseite mit attraktiven Buttons - Social-Media-Icons im Footer aller Seiten - Social-Media-Links in allen E-Mail-Templates - URLs aus .env: TIKTOK_PROFILE und INSTAGRAM_PROFILE
This commit is contained in:
@@ -7,6 +7,7 @@ import { router as cancellation } from "./cancellation.js";
|
||||
import { router as legal } from "./legal.js";
|
||||
import { router as gallery } from "./gallery.js";
|
||||
import { router as reviews } from "./reviews.js";
|
||||
import { router as social } from "./social.js";
|
||||
|
||||
export const router = {
|
||||
demo,
|
||||
@@ -18,4 +19,5 @@ export const router = {
|
||||
legal,
|
||||
gallery,
|
||||
reviews,
|
||||
social,
|
||||
};
|
||||
|
13
src/server/rpc/social.ts
Normal file
13
src/server/rpc/social.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { os } from "@orpc/server";
|
||||
|
||||
const getSocialMedia = os.handler(async () => {
|
||||
return {
|
||||
tiktokProfile: process.env.TIKTOK_PROFILE,
|
||||
instagramProfile: process.env.INSTAGRAM_PROFILE,
|
||||
};
|
||||
});
|
||||
|
||||
export const router = os.router({
|
||||
getSocialMedia,
|
||||
});
|
||||
|
Reference in New Issue
Block a user