Update index.html
Browse files12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Card Font Display</title><style>body {font-family: Arial, sans-serif;line-height: 1.6;margin: 0;padding: 20px;background-color: #f0f0f0;}.card {background-color: white;border-radius: 10px;box-shadow: 0 2px 5px rgba(0,0,0,0.1);margin-bottom: 20px;padding: 20px;width: 300px;}.title {font-size: 18px;font-weight: bold;margin-bottom: 10px;}.body-text {font-size: 12px;margin-bottom: 10px;}.text-box {background-color: #f9f9f9;border: 1px solid #ddd;font-size: 10px;padding: 5px;}#fontControls {margin-bottom: 20px;}select {margin-right: 10px;}</style></head><body><div id="fontControls"><select id="titleFont"><option value="Futura, sans-serif">Futura</option><option value="Helvetica, sans-serif">Helvetica</option><option value="'Trajan Pro', serif">Trajan Pro</option><option value="Garamond, serif">Garamond</option></select><select id="bodyFont"><option value="'Minion Pro', serif">Minion Pro</option><option value="Palatino, serif">Palatino</option><option value="'Times New Roman', serif">Times New Roman</option><option value="'Myriad Pro', sans-serif">Myriad Pro</option></select><select id="textBoxFont"><option value="Verdana, sans-serif">Verdana</option><option value="Tahoma, sans-serif">Tahoma</option></select></div><div id="cardContainer" class="card"><div id="cardTitle" class="title">Card Title</div><div id="cardBody" class="body-text">This is the main text of the card. It contains important information about the card's effects or abilities.</div><div id="cardTextBox" class="text-box">Flavor text or additional information goes here. It might be slightly condensed to fit more text.</div></div><script>function updateFonts() {document.getElementById('cardTitle').style.fontFamily = document.getElementById('titleFont').value;document.getElementById('cardBody').style.fontFamily = document.getElementById('bodyFont').value;document.getElementById('cardTextBox').style.fontFamily = document.getElementById('textBoxFont').value;}document.getElementById('titleFont').addEventListener('change', updateFonts);document.getElementById('bodyFont').addEventListener('change', updateFonts);document.getElementById('textBoxFont').addEventListener('change', updateFonts);updateFonts();</script></body></html>
index.html+86-19