Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# IDE
.vscode
.idea
*.swp
*.swo
26 changes: 26 additions & 0 deletions src/web/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script setup>
import Header from './components/Header.vue'
</script>

<template>
<Header />
<div id="app">
<router-view />
</div>
</template>

<style>
html, body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Source Sans Pro',
'Helvetica Neue', sans-serif;
background: #0f1729;
}

#app {
margin: 0;
padding: 0;
}
</style>
Binary file added src/web/assets/logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 114 additions & 0 deletions src/web/components/Header.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<script setup>
import logoImage from '../assets/logo/logo.png'
</script>

<template>
<header class="header">
<div class="header-content">
<div class="logo">
<img :src="logoImage" alt="Leaderly logo" class="logo-image" />
<h1 class="logo-title">Leaderly</h1>
</div>

<nav class="nav">
<router-link to="/" class="nav-link">Главная</router-link>
<router-link to="/leaderboard" class="nav-link">Лидерборд</router-link>
<a href="#docs" class="nav-link">Документация</a>
<a href="https://github.com/kaherro/Leaderly/tree/main" target="_blank" class="nav-link">GitHub</a>
</nav>
</div>
</header>
</template>

<style scoped>
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #0f172afa;
color: white;
padding-top: 0;
padding-bottom: 1px;
z-index: 1000;
box-shadow: 0 2px 15px #0000004d;
}

.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
display: flex;
align-items: center;
gap: 0px;
margin-right: auto;
margin-left: -185px;
}

.logo-image {
width: 72px;
height: 72px;
object-fit: contain;
display: block;
}

.logo-title {
margin: 0;
font-size: 2.5rem;
font-weight: 620;
background: linear-gradient(135deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.nav {
display: flex;
gap: 30px;
align-items: center;
}

.nav-link {
color: #ffffffcc;
text-decoration: none;
font-size: 0.9rem;
transition: color 0.3s ease;
font-weight: 500;
}

.nav-link:hover {
color: white;
}

@media (max-width: 768px) {
.header-content {
flex-direction: column;
gap: 15px;
}

.nav {
flex-wrap: wrap;
gap: 15px;
justify-content: center;
}

.nav-link {
font-size: 0.9rem;
}

.logo-image {
width: 64px;
height: 64px;
}

.logo-title {
font-size: 1.4rem;
}
}
</style>
14 changes: 14 additions & 0 deletions src/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" sizes="256x256" href="/favicon.png" />
<link rel="apple-touch-icon" sizes="256x256" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Leaderly</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/main.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/web/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

createApp(App).use(router).mount('#app')
Loading
Loading