master
lion 1 month ago
parent 51ff80a2c8
commit 2226a8f6c4

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Official website of the Inaugural ShanghaiSuzhou Collaborative Emerging Industries Science &amp; Technology Innovation Competition, focused on innovation across the photonics value chain.">
<title>Inaugural ShanghaiSuzhou Collaborative Emerging Industries Science &amp; Technology Innovation Competition</title>
<script src="/frontend/assets/prototype-scale.js?v=20260819-hero"></script>
<style>
:root {
--blue: #0094dc;
@ -65,7 +66,7 @@
.language-switch::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 12px; border-radius: 999px; background: rgba(198,240,255,.32); transform: translateY(-50%); }
.language-switch:hover { color: #8eeaff; text-shadow: 0 0 16px rgba(103,226,255,.72); }
.hero { position: relative; z-index: 6; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; margin: 0; color: #fff; background: #160a66; overflow: hidden; }
.hero { position: relative; z-index: 6; width: 100%; height: 100vh; height: 100dvh; max-height: 100svh; max-height: 100dvh; min-height: 0; margin: 0; color: #fff; background: #160a66; overflow: hidden; }
.hero::before { content: none; }
.hero-banners { position: absolute; z-index: 0; inset: -1px; pointer-events: none; overflow: hidden; }
.hero-banner {

@ -28,6 +28,8 @@ $html = str_replace(
"url('assets/",
'src="assets/',
"src='assets/",
'href="assets/',
"href='assets/",
'href="event-site-en.html"',
"href='event-site-en.html'",
'href="event-site.html"',
@ -58,6 +60,8 @@ $html = str_replace(
"url('".$assetBase.'/',
'src="'.$assetBase.'/',
"src='".$assetBase.'/',
'href="'.$assetBase.'/',
"href='".$assetBase.'/',
'href="'.$homeEnUrl.'"',
"href='".$homeEnUrl."'",
'href="'.$homeUrl.'"',

@ -0,0 +1,86 @@
/**
* 原型尺寸自适应 MacBook Pro 13" 2020 默认逻辑分辨率 1440×900 1:1
* 字体图标随窗口缩放首屏 banner 始终等于当前可视一屏避免 100vh × zoom 撑出窗口
*/
(function () {
var DESIGN_WIDTH = 1440;
var DESIGN_HEIGHT = 900;
var MOBILE_MAX = 767;
var MIN_SCALE = 0.75;
var MAX_SCALE = 1.5;
var root = document.documentElement;
if (root.getAttribute("data-prototype-scale") === "off") {
return;
}
var style = document.createElement("style");
style.setAttribute("data-prototype-scale", "css");
style.textContent = [
"html.is-prototype-scaled{zoom:var(--prototype-scale)}",
"html.is-prototype-scaled .hero{",
"width:100%!important;",
"height:var(--prototype-hero-height)!important;",
"max-height:var(--prototype-hero-height)!important;",
"min-height:0!important;",
"overflow:hidden;",
"}",
"html.is-prototype-scaled .hero-banners,",
"html.is-prototype-scaled .hero-banner{inset:0;}",
"@supports not (zoom:1){",
"html.is-prototype-scaled{font-size:calc(15px * var(--prototype-scale))}",
"}",
].join("");
(document.head || root).appendChild(style);
function inIframe() {
try {
return window.self !== window.top;
} catch (err) {
return true;
}
}
function viewportSize() {
var visual = window.visualViewport;
return {
width: (visual && visual.width) || window.innerWidth || DESIGN_WIDTH,
height: (visual && visual.height) || window.innerHeight || DESIGN_HEIGHT,
};
}
function shouldFitBothAxes() {
var path = String(location.pathname || "");
return /(?:^|\/)(?:login(?:-en)?|layout)\.html$/.test(path);
}
function apply() {
var size = viewportSize();
var width = size.width;
var height = size.height;
var scale = 1;
var scaled = false;
if (!inIframe() && width > MOBILE_MAX) {
scale = shouldFitBothAxes()
? Math.min(width / DESIGN_WIDTH, height / DESIGN_HEIGHT)
: width / DESIGN_WIDTH;
scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale));
scaled = true;
}
root.style.setProperty("--prototype-scale", String(scale));
root.style.setProperty("--prototype-design-width", DESIGN_WIDTH + "px");
root.style.setProperty("--prototype-design-height", DESIGN_HEIGHT + "px");
// zoom 后再等于一屏:布局高度 = 可视高度 / scale
root.style.setProperty("--prototype-hero-height", height / scale + "px");
root.classList.toggle("is-prototype-scaled", scaled);
}
apply();
window.addEventListener("resize", apply);
window.addEventListener("orientationchange", apply);
if (window.visualViewport) {
window.visualViewport.addEventListener("resize", apply);
}
})();

@ -755,7 +755,14 @@ body.prototype-page .my-registrations-modal-empty-icon {
color: #708998;
}
:root {
--prototype-design-width: 1440;
--prototype-design-height: 900;
--prototype-scale: 1;
}
html, body {
/* 15px = MacBook Pro 13" 20201440×900设计稿基准字号桌面端由 prototype-scale.js 按视口缩放 */
font-size: 15px;
color: var(--text);
max-width: 100%;
@ -3839,6 +3846,11 @@ body.login-page-wls *::after {
transform: translateY(-10px);
}
.login-page-wls__logo svg {
width: 4.8rem;
height: 4.8rem;
}
.login-page-wls__mark {
margin-bottom: 0.9rem;
}

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Official website of the Inaugural ShanghaiSuzhou Collaborative Emerging Industries Science &amp; Technology Innovation Competition, focused on innovation across the photonics value chain.">
<title>Inaugural ShanghaiSuzhou Collaborative Emerging Industries Science &amp; Technology Innovation Competition</title>
<script src="assets/prototype-scale.js?v=20260819-hero"></script>
<style>
:root {
--blue: #0094dc;
@ -65,7 +66,7 @@
.language-switch::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 12px; border-radius: 999px; background: rgba(198,240,255,.32); transform: translateY(-50%); }
.language-switch:hover { color: #8eeaff; text-shadow: 0 0 16px rgba(103,226,255,.72); }
.hero { position: relative; z-index: 6; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; margin: 0; color: #fff; background: #160a66; overflow: hidden; }
.hero { position: relative; z-index: 6; width: 100%; height: 100vh; height: 100dvh; max-height: 100svh; max-height: 100dvh; min-height: 0; margin: 0; color: #fff; background: #160a66; overflow: hidden; }
.hero::before { content: none; }
.hero-banners { position: absolute; z-index: 0; inset: -1px; pointer-events: none; overflow: hidden; }
.hero-banner {

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="首届沪苏协同新兴产业科创大赛官方网站,聚焦光通信全产业链创新。">
<title>首届沪苏协同新兴产业科创大赛</title>
<script src="assets/prototype-scale.js?v=20260819-hero"></script>
<style>
@font-face {
font-family: "Smiley Sans";
@ -72,7 +73,7 @@
.language-switch::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 12px; border-radius: 999px; background: rgba(198,240,255,.32); transform: translateY(-50%); }
.language-switch:hover { color: #8eeaff; text-shadow: 0 0 16px rgba(103,226,255,.72); }
.hero { position: relative; z-index: 6; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; margin: 0; color: #fff; background: #160a66; overflow: hidden; }
.hero { position: relative; z-index: 6; width: 100%; height: 100vh; height: 100dvh; max-height: 100svh; max-height: 100dvh; min-height: 0; margin: 0; color: #fff; background: #160a66; overflow: hidden; }
.hero::before { content: none; }
.hero-banners { position: absolute; z-index: 0; inset: -1px; pointer-events: none; overflow: hidden; }
.hero-banner {

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="./assets/bootstrap.min.css" />
<link rel="stylesheet" href="./assets/prototype.css" />
<script src="./assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page layout-shell">
<header class="navbar navbar-expand-lg layout-header">

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="./assets/prototype.css" />
<script src="./assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="login-page-wls">
<div class="login-page-wls__wrap">

@ -6,6 +6,7 @@
<title>观众与核销</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page admin-desktop-page audience-admin-page">
<div class="container-fluid p-3 p-md-4">

@ -1,5 +1,5 @@
<!doctype html>
<html lang="zh-CN">
<html lang="zh-CN" data-prototype-scale="off">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css?v=20260808-2" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page admin-desktop-page">
<div class="container-fluid p-3 p-md-4">

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page admin-desktop-page">
<div class="container-fluid p-3 p-md-4">

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page admin-desktop-page">
<div class="container-fluid p-3 p-md-4">

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page admin-desktop-page">
<div class="container-fluid p-3 p-md-4">

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page audience-page">
<div class="container-fluid audience-page-shell">

@ -7,6 +7,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page">
<div class="container-fluid p-3 p-md-4">

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page">
<div class="container-fluid p-3 p-md-4">

@ -6,6 +6,7 @@
<title>“光联万物 创芯未来”首届沪苏协同新兴产业科创大赛报名系统</title>
<link rel="stylesheet" href="../assets/bootstrap.min.css" />
<link rel="stylesheet" href="../assets/prototype.css" />
<script src="../assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="prototype-page">
<div class="container-fluid p-3 p-md-4">

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ShanghaiSuzhou Collaborative Emerging Industries Sci-Tech Innovation Competition Registration System</title>
<link rel="stylesheet" href="/frontend/assets/prototype.css" />
<script src="/frontend/assets/prototype-scale.js?v=20260819-hero"></script>
</head>
<body class="login-page-wls login-page-wls--en">
<div class="login-page-wls__wrap">

@ -40,6 +40,8 @@
"url('assets/",
'src="assets/',
"src='assets/",
'href="assets/',
"href='assets/",
'href="event-site-en.html"',
"href='event-site-en.html'",
'href="event-site.html"',
@ -70,6 +72,8 @@
"url('".$assetBase.'/',
'src="'.$assetBase.'/',
"src='".$assetBase.'/',
'href="'.$assetBase.'/',
"href='".$assetBase.'/',
'href="'.$homeEnUrl.'"',
"href='".$homeEnUrl."'",
'href="'.$homeUrl.'"',

Loading…
Cancel
Save