This commit is contained in:
Dari Chernyh 2023-03-30 22:46:32 +07:00
commit 0a35ac6390
21 changed files with 12156 additions and 0 deletions

23
.gitignore vendored Normal file
View file

@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

24
README.md Normal file
View file

@ -0,0 +1,24 @@
# hac
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

5
babel.config.js Normal file
View file

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

19
jsconfig.json Normal file
View file

@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}

11574
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

45
package.json Normal file
View file

@ -0,0 +1,45 @@
{
"name": "hac",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.8.3",
"git": "^0.1.5",
"vue": "^3.2.13",
"vue-router": "^4.1.6"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
]
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

17
public/index.html Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

116
src/App.vue Normal file
View file

@ -0,0 +1,116 @@
<template>
<div class="wrapper">
<Header class="heads">
</Header>
<div class="content">
<div class="container">
<div class="description">
<RouterView/>
</div>
</div>
</div>
<!--<footer class="footer">
<div class="container">
<div class="footer__text">
</div>
</div>
</footer>-->
</div>
</template>
<script>
import Header from './components/Header-comp.vue'
export default {
name: 'App',
components: {
Header,
}
}
</script>
<style>
html{
height: 100%;
}
body{
margin: 0px;
font-family: 'Inter';
height: 100%;
}
#app{
height: 100%;
}
.wrapper{
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
}
.heads{
background: #171717;
height: 90px;
}
.content{
flex: 1 1 auto;
background: #2D2D2D;
height: 100%;
}
.footer{
height: 100px;
background: #171717;
}
.container{
max-width: 1180px;
margin: 0px auto;
height: 100%;
}
.description{
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.description__img{
width: 330px;
height: 307px;
border: #FFFFFF;
background: #b12929;
}
.description__text h1{
width: 670px;
height: 234px;
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-size: 20px;
line-height: 24px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #FFFFFF;
}
.description__btn{
width: 330px;
height: 55.66px;
background: #D9D9D9;
border-radius: 15px;
}
.description__lr{
height: 400px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
}
</style>

BIN
src/assets/Iconmen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -0,0 +1,55 @@
<template>
<div class="header">
<div class="header__blok">
<div class="header__name">
<h1>
HUACU
</h1>
</div>
<div class="header__img"><img src="../img/Icon.png" alt="icon"></div>
</div>
</div>
</template>
<script>
export default{
}
</script>
<style>
header{
width:100%;
}
.header__blok{
display: flex;
justify-content: space-between;
align-items: center;
margin: 0px auto;
height: 100%;
max-width: 1200px;
border: 2px solid #a2b2d5;
}
.header__name h1{
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-size: 40px;
line-height: 48px;
/*background-image: linear-gradient(90deg, #564ED5 0%, #784FD2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;*/
color:#564ED5 ;
}
.header__img{
width: 40px;
height: 40px;
border: 2px solid #a2b2d5;
}
</style>

View file

@ -0,0 +1,90 @@
<template>
<div class="description__lr">
<div class="description__img">
<img src="../img/game.png" alt="game">
</div>
<div class="description__btn">Мобильная версия</div>
</div>
<div class="description__lr">
<div class="description__text">
<h1>
Hues and Cues это яркая игра, в которой перед игроками стоит задача объяснить цвета словами.
Используя только подсказки из одного и двух слов, игроки пытаются заставить других угадать определенный оттенок из ХХХ цветов на игровом поле. Чем ближе догадки к цели, тем больше очков заработает и загадывающий, и угадывающий. Поскольку все воображают цвета по-разному, соединять цвета и подсказки никогда не было так весело!
</h1>
</div>
<div class="description__btn">Играть</div>
</div>
</template>
<script>
export default {
name: 'App',
components: {
}
}
</script>
<style>
.content{
flex: 1 1 auto;
background: #2D2D2D;
height: 100%;
}
.footer{
height: 100px;
background: #171717;
}
.container{
max-width: 1180px;
margin: 0px auto;
height: 100%;
}
.description{
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.description__img{
width: 330px;
height: 307px;
border: #FFFFFF;
background: #b12929;
}
.description__text h1{
width: 670px;
height: 234px;
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-size: 20px;
line-height: 24px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #FFFFFF;
}
.description__btn{
width: 330px;
height: 55.66px;
background: #D9D9D9;
border-radius: 15px;
}
.description__lr{
height: 400px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
}
</style>

View file

@ -0,0 +1,127 @@
<template>
<div class="cese">
<div class="cese__struct">
<div class="left">
<div class="logname">
<img src="../img/user.jpg" alt="">
<h1>логиннаме</h1>
</div>
<div class="statistic">
<h1>статистика </h1>
<li>всего игр сыграно:<div class="statistic__all">44</div></li>
<li>к-во побед:<div class="statistic__win"></div>44</li>
<li>к-во поражений:<div class="statistic__defeat">44</div></li>
</div>
</div>
<div class="right">
<div class="right__chat">
</div>
</div>
</div>
<div class="btn">
<div class="btn_rl">Create</div>
<div class="btn_rl">Create</div>
</div>
</div>
</template>
<script>
export default{
}
</script>
<style>
.cese{
width: 100%;
display:flex;
flex-direction: column;
align-items: center;
}
.cese__struct{
display: flex;
width: 100%;
flex-direction: row;
justify-content: space-evenly;
}
.left{
width: 50%;
}
h1{
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-size: 30px;
line-height: 44px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #8472C8;
}
li{
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-size: 20px;
line-height: 29px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #FFFFFF;
}
.logname{
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.logname img{
width: 150px;
}
.logname h1{
margin-left: 50px;
}
.statistic{
}
.statistic li{
display: flex;
justify-content: space-between;
align-items: center;
}
/*right*/
.right{
display: flex;
flex-direction: column;
align-items: center;
}
.right__chat{
width: 300px;
height: 400px;
background: #171717;
border-radius: 15px;
}
.btn{
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.btn_rl{
margin: 20px;
width: 250px;
height: 50px;
background: #D9D9D9;
border-radius: 15px;
}
</style>

BIN
src/img/Icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

BIN
src/img/Icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
src/img/game.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
src/img/user.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

27
src/main.js Normal file
View file

@ -0,0 +1,27 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createApp } from 'vue'
import App from './App.vue'
import Home from './components/Home-comp'
import My from './components/Myprofile-comp'
const router = createRouter( {
history: createWebHistory(),
routes:[{
path:'/',
name:'Home',
component: Home
},
{
path:'/my',
name:'my',
component: My
},
]
});
createApp(App)
.use(router)
.mount('#app')

30
src/router/index.js Normal file
View file

@ -0,0 +1,30 @@
/*import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
import Myprofile from '../components/Myprofile-comp'
const Foo = { template: '<div>foo</div>' }
/*let router = new VueRouter({
routes:[
{
path:'/',
name:'home',
component: Myprofile
}
]
})
export default router;
const routes = [
{ path: '/foo', component: Foo }
]
const router = new VueRouter({
routes // сокращённая запись для `routes: routes`
})
const app = new Vue({
router
}).$mount('#app')*/

4
vue.config.js Normal file
View file

@ -0,0 +1,4 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})