first commit
This commit is contained in:
39
.gitignore
vendored
Normal file
39
.gitignore
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist
|
||||
dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
*.tsbuildinfo
|
||||
|
||||
.eslintcache
|
||||
|
||||
# Cypress
|
||||
/cypress/videos/
|
||||
/cypress/screenshots/
|
||||
|
||||
# Vitest
|
||||
__screenshots__/
|
||||
|
||||
# Vite
|
||||
*.timestamp-*-*.mjs
|
||||
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar"]
|
||||
}
|
||||
25
index.html
Normal file
25
index.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap">
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Sonoma WebPlayer</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
||||
crossorigin="anonymous">
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
3216
package-lock.json
generated
Normal file
3216
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
31
package.json
Normal file
31
package.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "sonoma-music-site",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "run-p type-check \"build-only {@}\" --",
|
||||
"preview": "vite preview",
|
||||
"build-only": "vite build",
|
||||
"type-check": "vue-tsc --build"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.5.27",
|
||||
"vue-router": "^5.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tsconfig/node24": "^24.0.4",
|
||||
"@types/node": "^24.10.9",
|
||||
"@vitejs/plugin-vue": "^6.0.3",
|
||||
"@vue/tsconfig": "^0.8.1",
|
||||
"npm-run-all2": "^8.0.4",
|
||||
"typescript": "~5.9.3",
|
||||
"vite": "^7.3.1",
|
||||
"vite-plugin-vue-devtools": "^8.0.5",
|
||||
"vue-tsc": "^3.2.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.19.0 || >=22.12.0"
|
||||
}
|
||||
}
|
||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 261 KiB |
BIN
public/icon.png
Normal file
BIN
public/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 173 KiB |
23
src/App.vue
Normal file
23
src/App.vue
Normal file
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<nav>
|
||||
<div class="left-half">
|
||||
<div class="logo"><img src="/public/icon.png" height="40px" width="40px"></div>
|
||||
<div class="home-icon"><i class="fa-solid fa-house"></i></div>
|
||||
<div class="search-bar">
|
||||
<input type="text" class="input-box" placeholder="Search">
|
||||
<div class="search-icon"><i class="fa-solid fa-magnifying-glass"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right-half">
|
||||
<div class="right-half-p1">
|
||||
<p>Settings</p>
|
||||
<p>Support</p>
|
||||
</div>
|
||||
<div class="right-half-p2">
|
||||
<button class="install"><i class="fa-solid fa-circle-down"></i></button>
|
||||
<div class="profile"><i class="fa-regular fa-user-circle"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
128
src/assets/main.css
Normal file
128
src/assets/main.css
Normal file
@ -0,0 +1,128 @@
|
||||
*{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
background-color: #000000;
|
||||
transition: background 0.3s, color 0.3s;
|
||||
}
|
||||
|
||||
nav {
|
||||
background-color: #000000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-self: space-between;
|
||||
height: 4rem;
|
||||
|
||||
}
|
||||
|
||||
.left-half {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
counter-reset: white;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.home-icon {
|
||||
font-size: 1.3rem;
|
||||
padding: 10px;
|
||||
color: rgb(179,179,179);;
|
||||
margin: 0 1rem 0 0;
|
||||
}
|
||||
|
||||
.home-icon:hover {
|
||||
color:white;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
display: flex;
|
||||
height: 3rem;
|
||||
width: 30rem;
|
||||
border-radius: 20rem;
|
||||
background-color: #1f1f1f;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-bar:hover {
|
||||
background-color: #232323;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
font-size: 1.2rem;
|
||||
color: rgb(179,179,179);
|
||||
margin: 0rem 0 0 0;
|
||||
}
|
||||
|
||||
.input-box{
|
||||
width: 88%;
|
||||
height: 60%;
|
||||
background-color: #27272700;
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-size: 1.2rem;
|
||||
border-right: 1px solid rgb(179,179,179);
|
||||
margin-right: 0.5rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.right-half {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: rgb(255, 255, 255);
|
||||
width: 70%;
|
||||
justify-content: flex-end;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.right-half-p1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 1.7rem;
|
||||
margin: 0 1rem;
|
||||
border-right: 1px solid rgb(179,179,179);
|
||||
padding: 0 1rem 0 0;
|
||||
}
|
||||
|
||||
.right-half-p1 p {
|
||||
padding: 0 0.5rem;
|
||||
font-weight: 600;
|
||||
color: rgb(179,179,179);
|
||||
}
|
||||
|
||||
.right-half-p1 p:hover{
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.right-half-p2 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.profile {
|
||||
font-size: 1.7rem;
|
||||
color: rgb(179,179,179);
|
||||
}
|
||||
|
||||
.install {
|
||||
font-size: 1.4rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
color: rgb(179,179,179); ;
|
||||
background-color: transparent;
|
||||
margin: 0 1rem 0 0;
|
||||
}
|
||||
|
||||
.install :hover {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.profile :hover {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
9
src/main.ts
Normal file
9
src/main.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import './assets/main.css'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
|
||||
app.mount('#app')
|
||||
12
tsconfig.app.json
Normal file
12
tsconfig.app.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
||||
"exclude": ["src/**/__tests__/*"],
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
11
tsconfig.json
Normal file
11
tsconfig.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.app.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
19
tsconfig.node.json
Normal file
19
tsconfig.node.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "@tsconfig/node24/tsconfig.json",
|
||||
"include": [
|
||||
"vite.config.*",
|
||||
"vitest.config.*",
|
||||
"cypress.config.*",
|
||||
"nightwatch.conf.*",
|
||||
"playwright.config.*",
|
||||
"eslint.config.*"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"types": ["node"]
|
||||
}
|
||||
}
|
||||
18
vite.config.ts
Normal file
18
vite.config.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
vueDevTools(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user