api_2 / index.html
123Sabrina's picture
Update index.html
26d2b4d verified
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hugging Face System</title>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-color: #007bff;
--secondary-color: #6c757d;
--background-color: #f8f9fa;
--card-background: #ffffff;
--text-color: #343a40;
--border-color: #e9ecef;
--header-height: 80px;
--nav-height: 50px;
}
body {
font-family: 'Noto Sans TC', sans-serif;
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
}
header {
background-color: var(--card-background);
padding: 20px 40px;
text-align: center;
border-bottom: 3px solid var(--primary-color);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: var(--header-height);
}
h1 {
color: var(--primary-color);
margin: 0;
font-size: 2.8em;
font-weight: 700;
letter-spacing: 1.5px;
}
h2 {
color: var(--secondary-color);
margin: 8px 0 0;
font-size: 1.2em;
font-weight: 300;
}
nav {
background-color: var(--primary-color);
padding: 0 20px;
text-align: right; /* 將內容靠右對齊 */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
height: var(--nav-height);
display: flex;
justify-content: flex-end; /* 將項目靠右排列 */
align-items: center;
}
nav a {
color: #ffffff;
text-decoration: none;
padding: 15px 30px;
display: inline-block;
font-weight: 400;
font-size: 1.1em;
transition: background-color 0.3s ease, transform 0.2s ease;
border-radius: 5px;
}
nav a:hover {
background-color: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.container {
padding: 30px;
text-align: center;
max-width: 1200px;
margin: 20px auto;
background-color: var(--card-background);
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
border: 1px solid var(--border-color);
}
h3 {
color: var(--primary-color);
font-size: 2.2em;
margin-bottom: 25px;
font-weight: 700;
position: relative;
display: inline-block;
padding-bottom: 10px;
}
h3::after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: 80px;
height: 3px;
background-color: var(--primary-color);
border-radius: 2px;
}
iframe {
width: 95%;
height: 800px;
border: 1px solid var(--border-color);
border-radius: 10px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
margin-top: 20px;
}
iframe:hover {
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
transform: translateY(-3px);
}
/* 響應式設計 */
@media (max-width: 768px) {
header {
padding: 15px 20px;
height: auto;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1em;
}
nav {
justify-content: center; /* 在小螢幕上置中導覽列 */
}
nav a {
padding: 10px 15px;
font-size: 1em;
}
.container {
padding: 15px;
margin: 10px auto;
}
h3 {
font-size: 1.8em;
margin-bottom: 20px;
}
iframe {
width: 100%;
height: 600px;
}
}
</style>
</head>
<body>
<header>
<h1>Hugging Face System</h1>
<h2>123Sabrina@2025copyright</h2>
</header>
<nav>
<a href="#tool">多圖片文字辨識工具(Groq API|CSV/DOCX)</a>
</nav>
<div class="container">
<h3 id="tool">多圖片文字辨識工具(Groq API|CSV/DOCX)</h3>
<iframe
src="https://123sabrina-mmml-2025.hf.space"
frameborder="0"
width="850"
height="450">
</iframe>
</div>
</body>
</html>