UI Tweaks
Browse filesFiles changed (2)
37 unmodified lines3839404142434437 unmodified linesapp.use(express.static(path.join(__dirname, "dist")));const getPTag = (repoId) => {return `<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=${repoId}" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p>`;};app.get("/api/login", (_req, res) => {37 unmodified lines3839404142434437 unmodified linesapp.use(express.static(path.join(__dirname, "dist")));const getPTag = (repoId) => {return `<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=${repoId}" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p>`;};app.get("/api/login", (_req, res) => {
2 unmodified lines34567850 unmodified lines596061626364656667686970712 unmodified linesimport { TbReload } from "react-icons/tb";import { toast } from "react-toastify";import { FaLaptopCode } from "react-icons/fa6";function Preview({html,50 unmodified lines<FaLaptopCode />Back to Editor</button><ahref="https://huggingface.co/spaces/victor/deepsite-gallery"target="_blank"className="bg-gray-200 text-gray-950 text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-200 hover:bg-gray-300 transition-all duration-100 cursor-pointer">🖼️ <span>DeepSite Gallery</span></a><buttonclassName="bg-white lg:bg-gray-950 shadow-md text-gray-950 lg:text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 lg:border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"onClick={handleRefreshIframe}2 unmodified lines345678950 unmodified lines6061626364656667686970717273742 unmodified linesimport { TbReload } from "react-icons/tb";import { toast } from "react-toastify";import { FaLaptopCode } from "react-icons/fa6";import { defaultHTML } from "../../../utils/consts";function Preview({html,50 unmodified lines<FaLaptopCode />Back to Editor</button>{html === defaultHTML && (<ahref="https://huggingface.co/spaces/victor/deepsite-gallery"target="_blank"className="bg-gray-200 text-gray-950 text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-200 hover:bg-gray-300 transition-all duration-100 cursor-pointer">🖼️ <span>DeepSite Gallery</span></a>)}<buttonclassName="bg-white lg:bg-gray-950 shadow-md text-gray-950 lg:text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 lg:border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"onClick={handleRefreshIframe}
server.js+1-1
src/components/preview/preview.tsx+10-7