-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fauc3t
authored and
Fauc3t
committed
Nov 21, 2023
1 parent
ecbb422
commit 1249091
Showing
8 changed files
with
151 additions
and
45 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@font-face { | ||
font-family: "brush-pixel"; | ||
src: url("../fonts/zpix.ttf"); | ||
} | ||
|
||
body { | ||
font-family: "brush-pixel" !important; | ||
} | ||
|
||
.title { | ||
font-size: 32px !important; | ||
transform: translateY(-40%); | ||
padding: 0 32px !important; | ||
font-weight: bold !important; | ||
} | ||
|
||
.nes-btn:nth-child(2) { | ||
color: white !important; | ||
font-weight: bold !important; | ||
padding: 0 32px; | ||
} | ||
|
||
.board { | ||
width: 50%; | ||
position: absolute; | ||
top: 50vh; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
font-size: 24px; | ||
} | ||
|
||
.buttons-group-container { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-around; | ||
margin-top: 64px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="FrontPage.css"> | ||
<link href="https://unpkg.com/nes.css@latest/css/nes.min.css" rel="stylesheet" /> | ||
<script src="FrontPage.js" defer></script> | ||
</head> | ||
|
||
<body> | ||
<div class="nes-container is-rounded with-title is-centered board"> | ||
<p class="title">腾讯创新俱乐部告示板</p> | ||
<p>这是最新的告示板</p> | ||
<div class="buttons-group-container"> | ||
<button onclick="switchPage(-1)" type="button" class="nes-btn is-error">Last</button> | ||
<button onclick="goVersionPage()" type="button" id="versionBtn" class="nes-btn is-warning">Version | ||
1</button> | ||
<button onclick="switchPage(1)" type="button" class="nes-btn is-success">Next</button> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
var pageList = [ | ||
{ | ||
version: 1, | ||
url: "../FirstVersionPage/index.html", | ||
}, | ||
{ | ||
version: 2, | ||
url: "", | ||
}, | ||
{ | ||
version: 3, | ||
url: "", | ||
}, | ||
]; | ||
|
||
var nowPage = {}; | ||
|
||
function created() { | ||
nowPage = pageList[0]; | ||
} | ||
created(); | ||
|
||
function switchPage(step) { | ||
switch (nowPage.version + step) { | ||
case 0: | ||
break; | ||
case pageList.length + 1: | ||
break; | ||
default: | ||
nowPage = pageList[nowPage.version + step - 1]; | ||
break; | ||
} | ||
document.getElementById("versionBtn").textContent = | ||
"Version " + nowPage.version; | ||
} | ||
|
||
function goVersionPage() { | ||
window.location.href = nowPage.url; | ||
console.log(window.navigator); | ||
} |