Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf2ee3ca65 |
76
assets/css/custom.css
Normal file
76
assets/css/custom.css
Normal file
@ -0,0 +1,76 @@
|
||||
|
||||
:root {
|
||||
--primary-color: #4A90E2;
|
||||
--secondary-color: #50E3C2;
|
||||
--background-color: #F8F9FA;
|
||||
--surface-color: #FFFFFF;
|
||||
--text-color: #333333;
|
||||
--border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
padding: 3rem 0;
|
||||
}
|
||||
|
||||
.hero-section .display-4 {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.content-card {
|
||||
border: none;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.step-circle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 0.8rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
#image-uploader #upload-ui {
|
||||
border: 2px dashed #dee2e6;
|
||||
border-radius: var(--border-radius);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
#image-uploader #upload-ui:hover {
|
||||
background-color: #f1f3f5;
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
#image-preview {
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
#generation-controls {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.generate-btn {
|
||||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
||||
border: none;
|
||||
}
|
||||
|
||||
.form-control:focus, .form-select:focus {
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
|
||||
}
|
||||
78
assets/js/main.js
Normal file
78
assets/js/main.js
Normal file
@ -0,0 +1,78 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
const fileInput = document.getElementById('file-input');
|
||||
const uploadUi = document.getElementById('upload-ui');
|
||||
const imageUploader = document.getElementById('image-uploader');
|
||||
const imagePreviewContainer = document.getElementById('image-preview-container');
|
||||
const imagePreview = document.getElementById('image-preview');
|
||||
const clearImageBtn = document.getElementById('clear-image-btn');
|
||||
const generationControls = document.getElementById('generation-controls');
|
||||
|
||||
// Trigger file input click
|
||||
if(uploadUi) {
|
||||
uploadUi.addEventListener('click', () => fileInput.click());
|
||||
}
|
||||
|
||||
// Handle file selection
|
||||
if(fileInput) {
|
||||
fileInput.addEventListener('change', (event) => {
|
||||
const files = event.target.files;
|
||||
if (files && files.length > 0) {
|
||||
handleFile(files[0]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Handle drag and drop
|
||||
if(imageUploader) {
|
||||
imageUploader.addEventListener('dragover', (event) => {
|
||||
event.preventDefault();
|
||||
uploadUi.style.backgroundColor = '#f1f3f5';
|
||||
uploadUi.style.borderColor = 'var(--primary-color)';
|
||||
});
|
||||
|
||||
imageUploader.addEventListener('dragleave', (event) => {
|
||||
event.preventDefault();
|
||||
uploadUi.style.backgroundColor = 'transparent';
|
||||
uploadUi.style.borderColor = '#dee2e6';
|
||||
});
|
||||
|
||||
imageUploader.addEventListener('drop', (event) => {
|
||||
event.preventDefault();
|
||||
uploadUi.style.backgroundColor = 'transparent';
|
||||
uploadUi.style.borderColor = '#dee2e6';
|
||||
const files = event.dataTransfer.files;
|
||||
if (files && files.length > 0) {
|
||||
fileInput.files = files; // Assign dropped files to input
|
||||
handleFile(files[0]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function handleFile(file) {
|
||||
if (!file.type.startsWith('image/')) {
|
||||
alert('Please select an image file (PNG, JPG).');
|
||||
return;
|
||||
}
|
||||
|
||||
const reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
imagePreview.src = e.target.result;
|
||||
imageUploader.classList.add('d-none');
|
||||
imagePreviewContainer.classList.remove('d-none');
|
||||
// In a future step, we can enable the controls:
|
||||
// generationControls.disabled = false;
|
||||
};
|
||||
reader.readAsDataURL(file);
|
||||
}
|
||||
|
||||
// Handle clear image
|
||||
if(clearImageBtn) {
|
||||
clearImageBtn.addEventListener('click', () => {
|
||||
fileInput.value = ''; // Clear the file input
|
||||
imagePreview.src = '#';
|
||||
imagePreviewContainer.classList.add('d-none');
|
||||
imageUploader.classList.remove('d-none');
|
||||
// generationControls.disabled = true;
|
||||
});
|
||||
}
|
||||
});
|
||||
256
index.php
256
index.php
@ -1,150 +1,114 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@error_reporting(E_ALL);
|
||||
@date_default_timezone_set('UTC');
|
||||
|
||||
$phpVersion = PHP_VERSION;
|
||||
$now = date('Y-m-d H:i:s');
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Style</title>
|
||||
<?php
|
||||
// Read project preview data from environment
|
||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||
?>
|
||||
<?php if ($projectDescription): ?>
|
||||
<!-- Meta description -->
|
||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||
<!-- Open Graph meta tags -->
|
||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<!-- Twitter meta tags -->
|
||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($projectImageUrl): ?>
|
||||
<!-- Open Graph image -->
|
||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<!-- Twitter image -->
|
||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<?php endif; ?>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
@keyframes bg-pan {
|
||||
0% { background-position: 0% 0%; }
|
||||
100% { background-position: 100% 100%; }
|
||||
}
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.loader {
|
||||
margin: 1.25rem auto 1.25rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.hint {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; border: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
code {
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>winQ - 수학 문제 유사성 생성기</title>
|
||||
<meta name="description" content="이미지에서 유사한 수학 문제를 생성하는 AI 기반 도구입니다. Flatlogic 생성기로 제작되었습니다.">
|
||||
<meta name="keywords" content="math problem generator, similar math problems, AI math tool, math OCR, educational technology, teaching resources, math practice, problem variants, winQ, Built with Flatlogic Generator">
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="winQ - 수학 문제 유사성 생성기">
|
||||
<meta property="og:description" content="이미지에서 유사한 수학 문제를 생성하는 AI 기반 도구입니다. Flatlogic 생성기로 제작되었습니다.">
|
||||
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta property="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:title" content="winQ - 수학 문제 유사성 생성기">
|
||||
<meta property="twitter:description" content="이미지에서 유사한 수학 문제를 생성하는 AI 기반 도구입니다. Flatlogic 생성기로 제작되었습니다.">
|
||||
<meta property="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your website…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
</div>
|
||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||
</footer>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
|
||||
<div class="container">
|
||||
<a class="navbar-brand fw-bold" href="#">winQ</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="container my-5">
|
||||
<div class="text-center hero-section">
|
||||
<h1 class="display-4 fw-bold">수학 문제 유사성 생성기</h1>
|
||||
<p class="lead text-muted col-lg-8 mx-auto">수학 문제 이미지를 업로드하면 AI가 다양한 난이도와 맥락의 유사한 문제를 생성합니다.</p>
|
||||
</div>
|
||||
|
||||
<div class="row justify-content-center mt-5">
|
||||
<div class="col-lg-10">
|
||||
<div class="card shadow-sm content-card">
|
||||
<div class="card-body p-lg-5">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<h5 class="fw-semibold"><span class="step-circle">1</span> 문제 이미지 업로드</h5>
|
||||
<p class="text-muted small">PNG 또는 JPG 파일을 선택하거나 드래그 앤 드롭하세요.</p>
|
||||
<div id="image-uploader" class="mt-3">
|
||||
<input type="file" id="file-input" accept="image/png, image/jpeg" class="d-none">
|
||||
<div id="upload-ui" class="text-center p-5">
|
||||
<i data-feather="upload-cloud" class="mb-3" style="width: 48px; height: 48px; color: #4A90E2;"></i>
|
||||
<p class="fw-semibold">클릭하여 탐색하거나 드래그 앤 드롭하세요.</p>
|
||||
<p class="small text-muted">최대 파일 크기: 5MB</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="image-preview-container" class="mt-3 d-none">
|
||||
<p class="fw-semibold small">이미지 미리보기:</p>
|
||||
<div class="position-relative">
|
||||
<img id="image-preview" src="#" alt="이미지 미리보기" class="img-fluid rounded">
|
||||
<button id="clear-image-btn" class="btn btn-sm btn-danger position-absolute top-0 end-0 m-2">×</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 mt-4 mt-lg-0">
|
||||
<h5 class="fw-semibold"><span class="step-circle">2</span> 구성 및 생성</h5>
|
||||
<p class="text-muted small">새 문제에 대한 매개변수를 설정합니다.</p>
|
||||
<fieldset disabled id="generation-controls">
|
||||
<div class="mb-3">
|
||||
<label for="target-lang" class="form-label small fw-semibold">대상 언어</label>
|
||||
<select class="form-select" id="target-lang">
|
||||
<option value="ko" selected>Korean (한국어)</option>
|
||||
<option value="en">English</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="difficulty" class="form-label small fw-semibold">난이도</label>
|
||||
<select class="form-select" id="difficulty">
|
||||
<option value="상">어려움 (상)</option>
|
||||
<option value="중" selected>중간 (중)</option>
|
||||
<option value="하">쉬움 (하)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="num-variants" class="form-label small fw-semibold">변형 수</label>
|
||||
<input type="number" class="form-select" id="num-variants" value="2" min="1" max="5">
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary w-100 py-2 fw-semibold generate-btn">
|
||||
<i data-feather="zap" class="me-2" style="width: 16px;"></i>유사한 문제 생성
|
||||
</button>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="text-center py-4 text-muted small">
|
||||
<p>© <?php echo date("Y"); ?> winQ. 모든 권리 보유. | <a href="/privacy.php" class="text-muted">개인 정보 정책</a></p>
|
||||
<p>Flatlogic으로 제작</p>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
||||
<script>
|
||||
feather.replace();
|
||||
</script>
|
||||
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
45
privacy.php
Normal file
45
privacy.php
Normal file
@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>개인정보 처리방침 - winQ</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body { font-family: 'Inter', sans-serif; background-color: #F8F9FA; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
|
||||
<div class="container">
|
||||
<a class="navbar-brand fw-bold" href="/">winQ</a>
|
||||
</div>
|
||||
</nav>
|
||||
<main class="container my-5">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body p-5">
|
||||
<h1 class="display-5 fw-bold">개인정보 처리방침</h1>
|
||||
<p class="text-muted">최종 업데이트: <?php echo date("Y년 m월 d일"); ?></p>
|
||||
<hr class="my-4">
|
||||
<p>이것은 개인정보 처리방침을 위한 자리 표시자입니다. 이 내용을 자신의 정책으로 교체하십시오.</p>
|
||||
<p>우리는 귀하의 개인 정보를 보호하기 위해 최선을 다하고 있습니다. 이 개인정보 처리방침은 winQ가 귀하의 개인 정보를 수집, 사용 및 공개하는 방법을 설명합니다.</p>
|
||||
<h5 class="mt-4">수집하는 정보</h5>
|
||||
<p>당사는 귀하가 당사에 직접 제공하는 정보를 수집할 수 있습니다. 예를 들어, 귀하가 계정을 만들거나, 구독하거나, 당사 서비스의 대화형 기능에 참여하거나, 양식을 작성하거나, 고객 지원을 요청하거나, 기타 방식으로 당사와 통신할 때 정보를 수집합니다.</p>
|
||||
<h5 class="mt-4">정보 사용 방법</h5>
|
||||
<p>당사는 수집한 정보를 사용하여 서비스를 제공, 유지 및 개선합니다. 예를 들어, 귀하의 서비스 사용을 관리하고, 귀하의 의견과 질문에 응답하고, 고객 서비스를 제공하는 데 사용합니다.</p>
|
||||
<a href="/" class="btn btn-primary mt-4" style="background-color: #4A90E2; border: none;">홈으로 돌아가기</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<footer class="text-center py-4 text-muted small">
|
||||
<p>© <?php echo date("Y"); ?> winQ. 모든 권리 보유.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user