Spaces:
Sleeping
Sleeping
UI Tweaks
Browse filesFiles changed (2)
37 unmodified lines383940414142434437 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>`; 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 lines345678950 unmodified lines606162636263646566676864656667686970717273742 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 && ( <a href="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> <a href="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> )} <button className="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