parent
46af810576
commit
1fc150ea02
@ -1,13 +1,21 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="dark">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="src/index.css">
|
||||
<link rel="stylesheet" href="./src/index.css">
|
||||
<title>Roller-课堂点名</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="main-menu" id="menu-sidebar"></div>
|
||||
|
||||
<script type="module" src="./src/main-menu.js"></script>
|
||||
<div class="main-content">
|
||||
<div class="header">Roller</div>
|
||||
<div class="main-frame" id="main-frame"></div>
|
||||
<script type="module" src="./src/main-frame.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,12 +0,0 @@
|
||||
<script setup>
|
||||
import ScoreBoard from "./score-board.vue";
|
||||
import ResultBoard from "./result-board.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<result-board></result-board>
|
||||
<score-board></score-board>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
Binary file not shown.
@ -0,0 +1,17 @@
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="event-description">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.event-description {
|
||||
width: 20.33%;
|
||||
height: 100%;
|
||||
background-color: #537045A5;
|
||||
}
|
||||
</style>
|
@ -1,3 +1,44 @@
|
||||
@font-face {
|
||||
font-family: "Kalam";
|
||||
src: url("/src/assets/fonts/Kalam-Regular.ttf");
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
html{
|
||||
background-color: #91A3B4;
|
||||
}
|
||||
}
|
||||
|
||||
.container{
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
flex-direction: row;
|
||||
}
|
||||
.header{
|
||||
width: 87vw;
|
||||
height: 16.5vh;
|
||||
text-align: center;
|
||||
display: block;
|
||||
background-color: #3E4B5E;
|
||||
font-size: 104px;
|
||||
font-family: 'Kalam', serif;
|
||||
color: #91A3B4;
|
||||
}
|
||||
.main-content{
|
||||
width: 100vh;
|
||||
flex-direction: column;
|
||||
}
|
||||
.main-menu{
|
||||
display: flex;
|
||||
width: 13vw;
|
||||
height: 100vh;
|
||||
background-color: #616E7F;
|
||||
}
|
||||
.main-frame{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 87vw;
|
||||
height: 83.5vh;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,71 @@
|
||||
<script setup>
|
||||
import ScoreBoard from "./score-board.vue";
|
||||
import ResultBoard from "./result-board.vue";
|
||||
import {ref} from "vue";
|
||||
import EventDescriptionBoard from "./event-description-board.vue";
|
||||
const number=ref(0);
|
||||
const enable=ref(false);
|
||||
const score=ref(0);
|
||||
function changeNumber()
|
||||
{
|
||||
number.value=Math.floor(Math.random()*100)
|
||||
enable.value=(number.value % 2 === 0)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="frame-container">
|
||||
<score-board class="score-board" :current-score="score" @score-changed="(s)=>{score=s}"></score-board>
|
||||
<div class="result-board-container">
|
||||
<result-board class="result-board" :number :enable></result-board>
|
||||
<el-button class="start-button" @click="changeNumber">start</el-button>
|
||||
</div>
|
||||
<event-description-board class="event-description"></event-description-board>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
@font-face {
|
||||
font-family: Itim;
|
||||
src: url("/src/assets/fonts/Itim-Regular.ttf");
|
||||
}
|
||||
@font-face {
|
||||
font-family: Inconsolata;
|
||||
src: url("/src/assets/fonts/Inconsolata.ttf");
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.frame-container {
|
||||
display: grid;
|
||||
grid-template-columns:27.3% 52.37% 20.33%;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
background-color: #7B8795;
|
||||
}
|
||||
.score-board {
|
||||
margin: 11.39vh 0 0 40.26%;
|
||||
}
|
||||
.result-board-container {
|
||||
}
|
||||
.result-board{
|
||||
margin: 11.39vh 0 0 0;
|
||||
}
|
||||
.start-button {
|
||||
margin: 6.53vh 0 0 10.51vw;
|
||||
width: 16.07vw;
|
||||
height: 9.5vh;
|
||||
color: #283C50;
|
||||
text-align: center;
|
||||
font-size: 64px;
|
||||
background-color: #8CA1B8;
|
||||
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
|
||||
border-radius: 20px;
|
||||
font-family: Inconsolata,serif;
|
||||
}
|
||||
.event-description{
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,13 @@
|
||||
import { createApp } from 'vue'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import 'element-plus/theme-chalk/dark/css-vars.css'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import MenuSidebar from './menu-sidebar.vue'
|
||||
|
||||
const app = createApp(MenuSidebar)
|
||||
app.use(ElementPlus)
|
||||
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
app.component(key, component)
|
||||
}
|
||||
app.mount('#menu-sidebar')
|
@ -0,0 +1,10 @@
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -1,59 +1,76 @@
|
||||
<script setup>
|
||||
import {ref} from "vue";
|
||||
const result = ref(0)
|
||||
defineProps(['number', 'enable'])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-container class="result-board-container">
|
||||
<el-header class="special-header">
|
||||
<label class="special-event">special event !</label>
|
||||
</el-header>
|
||||
<el-main class="number-container">
|
||||
<label class="number">13</label>
|
||||
</el-main>
|
||||
</el-container>
|
||||
<div class="result-board-container">
|
||||
<div class="special-event">
|
||||
<span class="special-event-text" v-if="enable">special event !</span>
|
||||
</div>
|
||||
<div class="sno-number">1035034{{number >= 10? number : "0" + number}}</div>
|
||||
<div class="s-name">李华</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
@font-face {
|
||||
font-family: Itim;
|
||||
src: url("src/assets/fonts/Itim-Regular.ttf");
|
||||
src: url("/src/assets/fonts/Itim-Regular.ttf");
|
||||
}
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.result-board-container {
|
||||
width: 456px;
|
||||
height: 338px;
|
||||
width: 750px;
|
||||
height: 440px;
|
||||
background-color: #B4BEC8;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 6px 4px 0 rgba(0, 0, 0, 0.25);
|
||||
flex-direction: column;
|
||||
padding-top: 1px;
|
||||
position: relative;
|
||||
}
|
||||
.special-header {
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.special-event {
|
||||
text-align: center;
|
||||
display: block;
|
||||
font-size: 42px;
|
||||
width: 329px;
|
||||
height: 56px;
|
||||
display: flex;
|
||||
width: 331px;
|
||||
height: 52px;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
justify-content: center;
|
||||
margin:8.8% auto 0 auto;
|
||||
}
|
||||
.special-event-text{
|
||||
width: 331px;
|
||||
height: 52px;
|
||||
background-color: #E3F32880;
|
||||
color: #251515;
|
||||
border-radius: 50px;
|
||||
margin-left: 60px;
|
||||
margin-top: 20px;
|
||||
border-radius: 30px;
|
||||
color: #000000;
|
||||
text-align: center;
|
||||
font-family: Itim,serif;
|
||||
font-size: 40px;
|
||||
}
|
||||
.number-container {
|
||||
padding: 0 0 10px 0;
|
||||
}
|
||||
.number {
|
||||
font-size: 140px;
|
||||
padding: 0 0 30px 0;
|
||||
.sno-number {
|
||||
display: flex;
|
||||
width: 486px;
|
||||
height: 144px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
display: block;
|
||||
font-family: Itim,serif;
|
||||
color: #1D2D5F;
|
||||
color: #1D3D5F;
|
||||
font-size: 96px;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
margin: 0 auto 0 auto;
|
||||
}
|
||||
.s-name {
|
||||
color: #000000;
|
||||
font-size: 64px;
|
||||
width: 341px;
|
||||
height: 51px;
|
||||
margin: 0 auto 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue