Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 08eaecb6af | |||
| 4486a48fd8 | |||
| abb300df17 | |||
| fe7f5d1791 | |||
| 42c03b50d8 | |||
| 000d7a9f67 | |||
| 8b911b537a | |||
| a96c3a9400 | |||
| bf17f58884 | |||
| 681580cd60 |
17
streamcore-bootstrap/.eslintrc.json
Normal file
17
streamcore-bootstrap/.eslintrc.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-vars": "warn",
|
||||
"no-console": "warn"
|
||||
}
|
||||
}
|
||||
24
streamcore-bootstrap/.gitignore
vendored
Normal file
24
streamcore-bootstrap/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
7
streamcore-bootstrap/.prettierrc
Normal file
7
streamcore-bootstrap/.prettierrc
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "es5",
|
||||
"printWidth": 100
|
||||
}
|
||||
13
streamcore-bootstrap/index.html
Normal file
13
streamcore-bootstrap/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite App</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
1008
streamcore-bootstrap/package-lock.json
generated
Normal file
1008
streamcore-bootstrap/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
24
streamcore-bootstrap/package.json
Normal file
24
streamcore-bootstrap/package.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "streamcore-bootstrap",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --ext .js,.html --fix",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^7.1.7",
|
||||
"eslint": "^8.0.0",
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"prettier": "^3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "^5.3.0",
|
||||
"bootstrap-icons": "^1.11.0"
|
||||
}
|
||||
}
|
||||
1
streamcore-bootstrap/public/vite.svg
Normal file
1
streamcore-bootstrap/public/vite.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
9
streamcore-bootstrap/src/counter.js
Normal file
9
streamcore-bootstrap/src/counter.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function setupCounter(element) {
|
||||
let counter = 0
|
||||
const setCounter = (count) => {
|
||||
counter = count
|
||||
element.innerHTML = `count is ${counter}`
|
||||
}
|
||||
element.addEventListener('click', () => setCounter(counter + 1))
|
||||
setCounter(0)
|
||||
}
|
||||
502
streamcore-bootstrap/src/css/custom.css
Normal file
502
streamcore-bootstrap/src/css/custom.css
Normal file
@@ -0,0 +1,502 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
background-color: #0d0d0d;
|
||||
color: #ddd;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: #000000;
|
||||
padding: 1rem 2rem;
|
||||
border-bottom: 2px solid #ff00ff;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 1.6rem;
|
||||
color: #00ffff;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.navbar-nav {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link {
|
||||
color: #ff00ff;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: color 0.3s ease;
|
||||
user-select: none;
|
||||
text-shadow: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link:hover,
|
||||
.navbar-nav .nav-link:focus {
|
||||
color: #00ffff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.page {
|
||||
padding: 4rem 2rem;
|
||||
border-bottom: 1px solid #222;
|
||||
}
|
||||
|
||||
.page h1,
|
||||
.page h2 {
|
||||
color: #ff00ff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.page p {
|
||||
max-width: 800px;
|
||||
line-height: 1.6;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 20px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
background: #111;
|
||||
border: 2px solid #ff00ff;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 0 8px #ff00ff;
|
||||
transition: box-shadow 0.3s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.feature-item:hover {
|
||||
box-shadow: 0 0 15px #ff00ff, 0 0 25px #00fff7;
|
||||
}
|
||||
|
||||
.feature-item h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
font-weight: 700;
|
||||
color: #ff00ff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.feature-item p {
|
||||
margin-bottom: 15px;
|
||||
color: #ccc;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.feature-item button {
|
||||
background: #ff00ff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 10px 18px;
|
||||
color: #111;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 10px #ff00ff;
|
||||
transition: all 0.3s ease;
|
||||
width: 100%;
|
||||
margin-top: auto;
|
||||
text-align: center;
|
||||
min-height: 42px;
|
||||
}
|
||||
|
||||
.feature-item button:hover {
|
||||
background: #00ffff;
|
||||
box-shadow: 0 0 15px #00ffff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: #111;
|
||||
border-top: 3px solid #00ffff;
|
||||
padding: 2rem 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
color: #00ffff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.footer-info p {
|
||||
margin: 0.4rem 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.social-icons {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.social-icons a i {
|
||||
color: #ff00ff;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.navbar-nav {
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
right: 0;
|
||||
background: #111;
|
||||
width: 100%;
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
flex-direction: column;
|
||||
padding: 0 2rem;
|
||||
transition: max-height 0.35s ease;
|
||||
box-shadow: 0 10px 30px #ff00ffaa;
|
||||
border-bottom: 2px solid #ff00ff;
|
||||
z-index: 2000;
|
||||
user-select: none;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
|
||||
.navbar-collapse.show .navbar-nav {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link {
|
||||
color: #ff66ff;
|
||||
padding: 1rem 0;
|
||||
border-bottom: 1px solid #ff00ff33;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link:hover,
|
||||
.navbar-nav .nav-link:focus {
|
||||
color: #33ffff;
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.add-form {
|
||||
background: #111;
|
||||
border: 2px solid #ff00ff;
|
||||
border-radius: 10px;
|
||||
padding: 2rem;
|
||||
box-shadow: 0 0 12px #ff00ff88;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.add-form h3 {
|
||||
color: #00ffff;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
background: #222;
|
||||
border: 2px solid #ff00ff;
|
||||
color: #eee;
|
||||
|
||||
box-shadow: 0 0 10px #ff00ff88 inset;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
background: #222;
|
||||
border-color: #00ffff;
|
||||
box-shadow: 0 0 10px #00ffff88 inset;
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
.form-control::placeholder {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.form-select option:first-child {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.catalog-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.catalog-item {
|
||||
width: 100%;
|
||||
background: #111;
|
||||
border: 2px solid #ff00ff;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 0 12px #fdfdfd88;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.catalog-item img {
|
||||
width: 200px;
|
||||
height: 120px;
|
||||
object-fit: cover;
|
||||
border-radius: 5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.catalog-item-content {
|
||||
flex-grow: 1;
|
||||
padding-right: 140px;
|
||||
}
|
||||
|
||||
.catalog-item button {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
background-color: #ff00ff;
|
||||
border: none;
|
||||
padding: 12px 30px;
|
||||
color: #111;
|
||||
font-weight: 600;
|
||||
font-size: 1.1em;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
min-width: 120px;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 12px #ff00ff;
|
||||
}
|
||||
|
||||
.catalog-item button:hover {
|
||||
background-color: #00ffff;
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.streams-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.stream-item {
|
||||
background: #111;
|
||||
border: 2px solid #ff00ff;
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
box-shadow: 0 0 12px #ff00ff88;
|
||||
transition: box-shadow 0.3s ease;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.stream-item:hover {
|
||||
box-shadow: 0 0 20px #00ffffdd;
|
||||
border-color: #00ffff;
|
||||
}
|
||||
|
||||
.stream-item img {
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 1rem;
|
||||
box-shadow: 0 0 8px #ff00ffaa;
|
||||
}
|
||||
|
||||
.stream-item h3 {
|
||||
margin: 0 0 0.5rem;
|
||||
color: #ff00ff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.stream-item p {
|
||||
color: #aaa;
|
||||
font-size: 0.95rem;
|
||||
margin-bottom: 1rem;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.stream-item button {
|
||||
background-color: #ff00ff;
|
||||
border: none;
|
||||
padding: 0.5rem 1.2rem;
|
||||
color: #111;
|
||||
font-weight: 700;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 10px #ff00ff;
|
||||
transition: background-color 0.3s ease;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.stream-item button:hover {
|
||||
background-color: #00ffff;
|
||||
box-shadow: 0 0 14px #00ffff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.profile-container {
|
||||
background: #111;
|
||||
border: 2px solid #ff00ff;
|
||||
border-radius: 10px;
|
||||
padding: 2rem;
|
||||
box-shadow: 0 0 12px #ff00ff88;
|
||||
transition: box-shadow 0.3s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.profile-avatar img {
|
||||
border-radius: 50%;
|
||||
border: 3px solid #00ffff;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
object-fit: cover;
|
||||
box-shadow: 0 0 12px #00ffffaa;
|
||||
}
|
||||
|
||||
.profile-info {
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
.profile-info h2 span {
|
||||
color: #ff00ff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.profile-info p {
|
||||
font-size: 1.1rem;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.btn-edit-profile {
|
||||
margin-top: 1rem;
|
||||
background-color: #ff00ff;
|
||||
border: none;
|
||||
padding: 0.7rem 1.4rem;
|
||||
font-weight: 700;
|
||||
color: #111;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 12px #ff00ff;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.btn-edit-profile:hover {
|
||||
background-color: #00ffff;
|
||||
box-shadow: 0 0 16px #00ffff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.about-page {
|
||||
max-width: 900px;
|
||||
margin: 3rem auto;
|
||||
padding: 0 1rem;
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
.about-page h1 {
|
||||
font-size: 3rem;
|
||||
color: #ff00ff;
|
||||
text-align: center;
|
||||
text-shadow: none;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.about-section {
|
||||
background: #111;
|
||||
border: 2px solid #ff00ff;
|
||||
border-radius: 10px;
|
||||
padding: 2rem;
|
||||
box-shadow: 0 0 12px #ff00ff88;
|
||||
transition: box-shadow 0.3s ease;
|
||||
user-select: none;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.about-section h2 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
color: #00ffff;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.about-section p,
|
||||
.about-section ul {
|
||||
font-size: 1.15rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.about-section ul {
|
||||
padding-left: 1.3rem;
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
.about-section ul li {
|
||||
margin-bottom: 0.7rem;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.catalog-item {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding-bottom: 70px;
|
||||
}
|
||||
|
||||
.catalog-item img {
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.catalog-item-content {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.catalog-item button {
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
width: auto;
|
||||
padding: 14px 30px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.profile-container {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.profile-info {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.about-page {
|
||||
margin: 1.5rem 1rem;
|
||||
}
|
||||
|
||||
.about-page h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.about-section h2 {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
1
streamcore-bootstrap/src/javascript.svg
Normal file
1
streamcore-bootstrap/src/javascript.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="#F7DF1E" d="M0 0h256v256H0V0Z"></path><path d="m67.312 213.932l19.59-11.856c3.78 6.701 7.218 12.371 15.465 12.371c7.905 0 12.89-3.092 12.89-15.12v-81.798h24.057v82.138c0 24.917-14.606 36.259-35.916 36.259c-19.245 0-30.416-9.967-36.087-21.996m85.07-2.576l19.588-11.341c5.157 8.421 11.859 14.607 23.715 14.607c9.969 0 16.325-4.984 16.325-11.858c0-8.248-6.53-11.17-17.528-15.98l-6.013-2.58c-17.357-7.387-28.87-16.667-28.87-36.257c0-18.044 13.747-31.792 35.228-31.792c15.294 0 26.292 5.328 34.196 19.247l-18.732 12.03c-4.125-7.389-8.591-10.31-15.465-10.31c-7.046 0-11.514 4.468-11.514 10.31c0 7.217 4.468 10.14 14.778 14.608l6.014 2.577c20.45 8.765 31.963 17.7 31.963 37.804c0 21.654-17.012 33.51-39.867 33.51c-22.339 0-36.774-10.654-43.819-24.574"></path></svg>
|
||||
|
After Width: | Height: | Size: 995 B |
45
streamcore-bootstrap/src/js/about.js
Normal file
45
streamcore-bootstrap/src/js/about.js
Normal file
@@ -0,0 +1,45 @@
|
||||
function sendContactMessage(name, email, message) {
|
||||
console.log('Отправка сообщения:', { name, email, message });
|
||||
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve(true);
|
||||
}, 1000);
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const form = document.getElementById('contactForm');
|
||||
|
||||
if (form) {
|
||||
form.addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
const name = form.querySelector('input[type="text"]').value;
|
||||
const email = form.querySelector('input[type="email"]').value;
|
||||
const message = form.querySelector('textarea').value;
|
||||
|
||||
if (name && email && message) {
|
||||
const submitButton = form.querySelector('button[type="submit"]');
|
||||
const originalText = submitButton.innerHTML;
|
||||
submitButton.innerHTML = '<i class="bi bi-hourglass-split me-2"></i>Отправка...';
|
||||
submitButton.disabled = true;
|
||||
|
||||
sendContactMessage(name, email, message)
|
||||
.then(() => {
|
||||
alert('Сообщение отправлено! Мы свяжемся с вами в ближайшее время.');
|
||||
form.reset();
|
||||
})
|
||||
.catch(() => {
|
||||
alert('Ошибка при отправке сообщения. Попробуйте еще раз.');
|
||||
})
|
||||
.finally(() => {
|
||||
submitButton.innerHTML = originalText;
|
||||
submitButton.disabled = false;
|
||||
});
|
||||
} else {
|
||||
alert('Пожалуйста, заполните все поля формы!');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
64
streamcore-bootstrap/src/js/catalog.js
Normal file
64
streamcore-bootstrap/src/js/catalog.js
Normal file
@@ -0,0 +1,64 @@
|
||||
function validateTitle(input) {
|
||||
const value = input.value;
|
||||
const minLength = 1;
|
||||
const maxLength = 10;
|
||||
|
||||
if (value.length < minLength) {
|
||||
input.setCustomValidity(`Название должно содержать минимум ${minLength} символ`);
|
||||
} else if (value.length > maxLength) {
|
||||
input.setCustomValidity(`Название должно содержать не более ${maxLength} символов`);
|
||||
} else {
|
||||
input.setCustomValidity('');
|
||||
}
|
||||
}
|
||||
|
||||
function addCatalogItem(title, description, imageUrl, type) {
|
||||
const container = document.getElementById('catalogContainer');
|
||||
|
||||
const newItem = document.createElement('article');
|
||||
newItem.className = 'catalog-item';
|
||||
newItem.innerHTML = `
|
||||
<img src="${imageUrl}" alt="${title}" />
|
||||
<div class="catalog-item-content">
|
||||
<h3>${title}</h3>
|
||||
<p>${description}</p>
|
||||
</div>
|
||||
<button>Узнать больше</button>
|
||||
`;
|
||||
|
||||
container.appendChild(newItem);
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const form = document.getElementById('addCatalogForm');
|
||||
|
||||
const titleInput = form.querySelector('input[type="text"]:nth-of-type(1)');
|
||||
if (titleInput) {
|
||||
titleInput.addEventListener('input', function() {
|
||||
validateTitle(this);
|
||||
});
|
||||
}
|
||||
|
||||
if (form) {
|
||||
form.addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
const inputs = this.querySelectorAll('input, select');
|
||||
const title = inputs[0].value;
|
||||
const description = inputs[1].value;
|
||||
const imageUrl = inputs[2].value;
|
||||
const type = inputs[3].value;
|
||||
|
||||
if (title.length < 1 || title.length > 10) {
|
||||
alert('Название события должно содержать от 1 до 10 символов!');
|
||||
return;
|
||||
}
|
||||
|
||||
if (title && description && imageUrl && type) {
|
||||
addCatalogItem(title, description, imageUrl, type);
|
||||
this.reset();
|
||||
alert('Событие добавлено в каталог!');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
109
streamcore-bootstrap/src/pages/about.html
Normal file
109
streamcore-bootstrap/src/pages/about.html
Normal file
@@ -0,0 +1,109 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>О сервисе | StreamCore</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../css/custom.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="header">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="logo">🎮 StreamCore</div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg p-0">
|
||||
<button class="navbar-toggler d-lg-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="index.html">Главная</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="catalog.html">Каталог</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="streams.html">Трансляции</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="profile.html">Профиль</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="about.html">О нас</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="page about-page">
|
||||
<div class="container-fluid">
|
||||
<h1>О сервисе StreamCore</h1>
|
||||
|
||||
<section class="about-section">
|
||||
<h2><i class="bi bi-rocket-takeoff me-2"></i>Наша миссия</h2>
|
||||
<p>
|
||||
StreamCore — это инновационная платформа для стриминга, которая объединяет лучшие элементы киберпанка и современных технологий.
|
||||
Мы стремимся предоставить уникальный опыт для зрителей и стримеров, создавая атмосферу неона и цифрового будущего.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section class="about-section">
|
||||
<h2><i class="bi bi-gift me-2"></i>Что мы предлагаем</h2>
|
||||
<ul>
|
||||
<li>Множество трансляций в режиме реального времени с профессиональными и начинающими стримерами.</li>
|
||||
<li>Каталог эксклюзивных цифровых товаров и мерча в стиле киберпанк.</li>
|
||||
<li>Интерактивное сообщество с возможностями для общения и обмена опытом.</li>
|
||||
<li>Продвинутые настройки профиля и персонализация интерфейса.</li>
|
||||
<li>Стабильную работу и удобный дизайн на всех устройствах.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="about-section">
|
||||
<h2><i class="bi bi-people me-2"></i>Команда</h2>
|
||||
<p>
|
||||
Наша команда состоит из энтузиастов и профессионалов в области технологий, дизайна и цифрового искусства, объединённых идеей создания лучшего стримингового сервиса в киберпанковской эстетике.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section class="about-section contact-cta">
|
||||
<h2><i class="bi bi-envelope me-2"></i>Связаться с нами</h2>
|
||||
<form id="contactForm" class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" placeholder="Ваше имя" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="email" class="form-control" placeholder="Email" required>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<textarea class="form-control" rows="4" placeholder="Сообщение" required></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-neon">
|
||||
<i class="bi bi-send me-2"></i>Отправить
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="footer-info">
|
||||
<p>Контакты: info@streamcore.com | +7 (999) 123-45-67</p>
|
||||
<p>Часы работы: Пн–Вс, 10:00–22:00</p>
|
||||
<p>Адрес: Неон-сити, ул. Цифровая, д.42</p>
|
||||
</div>
|
||||
<div class="social-icons">
|
||||
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f fa-lg"></i></a>
|
||||
<a href="#" aria-label="ВКонтакте"><i class="fab fa-vk fa-lg"></i></a>
|
||||
<a href="#" aria-label="Telegram"><i class="fab fa-telegram-plane fa-lg"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="../js/about.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
130
streamcore-bootstrap/src/pages/catalog.html
Normal file
130
streamcore-bootstrap/src/pages/catalog.html
Normal file
@@ -0,0 +1,130 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Каталог | StreamCore</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../css/custom.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="logo">🎮 StreamCore</div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg p-0">
|
||||
<button class="navbar-toggler d-lg-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="index.html">Главная</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="catalog.html">Каталог</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="streams.html">Трансляции</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="profile.html">Профиль</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="about.html">О нас</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="page">
|
||||
<div class="container-fluid">
|
||||
<h1>Каталог стримов и событий</h1>
|
||||
<p>Выбирай из нашего ассортимента уникальных стримов, концертов и кибермероприятий.</p>
|
||||
|
||||
<section class="catalog-grid" id="catalogContainer">
|
||||
<article class="catalog-item">
|
||||
<img src="https://media.istockphoto.com/id/1405987908/ru/%D1%84%D0%BE%D1%82%D0%BE/%D0%BC%D0%B5%D1%82%D0%B0%D0%B2%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F-%D0%B3%D0%BE%D1%80%D0%BE%D0%B4-%D0%B2-%D1%81%D1%82%D0%B8%D0%BB%D0%B5-%D0%BA%D0%B8%D0%B1%D0%B5%D1%80%D0%BF%D0%B0%D0%BD%D0%BA-%D1%81-%D1%80%D0%BE%D0%B1%D0%BE%D1%82%D0%B0%D0%BC%D0%B8-%D0%B8%D0%B4%D1%83%D1%89%D0%B8%D0%BC%D0%B8-%D0%BF%D0%BE-%D1%83%D0%BB%D0%B8%D1%86%D0%B5-%D0%BD%D0%B5%D0%BE%D0%BD%D0%BE%D0%B2%D1%8B%D0%BC-%D0%BE%D1%81%D0%B2%D0%B5%D1%89%D0%B5%D0%BD%D0%B8%D0%B5%D0%BC-%D0%BD%D0%B0.jpg?s=612x612&w=0&k=20&c=tuEtPHXniGEmoaJfKy4KHXtUgetTCJpkAEd_rfftuWU=" alt="Стрим 1" />
|
||||
<div class="catalog-item-content">
|
||||
<h3>Neon Beats Live</h3>
|
||||
<p>Погружение в атмосферу неоновых ритмов с лучшими диджеями.</p>
|
||||
</div>
|
||||
<button>Узнать больше</button>
|
||||
</article>
|
||||
|
||||
<article class="catalog-item">
|
||||
<img src="https://bogatyr.club/uploads/posts/2023-03/12827/thumbs/1677966670_bogatyr-club-p-kiberpank-komnata-foni-instagram-8.jpg" alt="Концерт 2" />
|
||||
<div class="catalog-item-content">
|
||||
<h3>Cyberpunk Festival</h3>
|
||||
<p>Грандиозный фестиваль с музыкой и цифровыми шоу.</p>
|
||||
</div>
|
||||
<button>Узнать больше</button>
|
||||
</article>
|
||||
|
||||
<article class="catalog-item">
|
||||
<img src="https://kartinki.pics/uploads/posts/2021-07/thumbs/1625655487_35-kartinkin-com-p-kiberpank-oboi-krasivie-38.jpg" alt="Стрим 3" />
|
||||
<div class="catalog-item-content">
|
||||
<h3>VR Rave Party</h3>
|
||||
<p>Погрузись в виртуальную реальность с нашими эксклюзивными стримами.</p>
|
||||
</div>
|
||||
<button>Узнать больше</button>
|
||||
</article>
|
||||
|
||||
<article class="catalog-item">
|
||||
<img src="https://kartinki.pics/pics/uploads/posts/2022-08/1660474027_1-kartinkin-net-p-kiberpank-oboi-krasivo-1.jpg" alt="Концерт 4" />
|
||||
<div class="catalog-item-content">
|
||||
<h3>Hologram Show</h3>
|
||||
<p>Уникальное цифровое шоу с голографическими эффектами.</p>
|
||||
</div>
|
||||
<button>Узнать больше</button>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="add-form">
|
||||
<h3><i class="bi bi-plus-circle me-2"></i>Добавить новое событие в каталог</h3>
|
||||
<form id="addCatalogForm" class="row g-3">
|
||||
<div class="col-md-3">
|
||||
<input type="text" class="form-control" placeholder="Название события" minlength="1" maxlength="10" required>
|
||||
<small class="text-muted">От 1 до 10 символов</small>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" class="form-control" placeholder="Описание" required>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="url" class="form-control" placeholder="Ссылка на изображение" required>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<select class="form-control" required>
|
||||
<option value="">Тип события</option>
|
||||
<option value="concert">Концерт</option>
|
||||
<option value="stream">Стрим</option>
|
||||
<option value="festival">Фестиваль</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-neon">
|
||||
<i class="bi bi-plus me-2"></i>Добавить событие
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="footer-info">
|
||||
<p>Контакты: info@streamcore.com | +7 (999) 123-45-67</p>
|
||||
<p>Часы работы: Пн–Вс, 10:00–22:00</p>
|
||||
<p>Адрес: Неон-сити, ул. Цифровая, д.42</p>
|
||||
</div>
|
||||
<div class="social-icons">
|
||||
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f fa-lg"></i></a>
|
||||
<a href="#" aria-label="ВКонтакте"><i class="fab fa-vk fa-lg"></i></a>
|
||||
<a href="#" aria-label="Telegram"><i class="fab fa-telegram-plane fa-lg"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="../js/catalog.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
89
streamcore-bootstrap/src/pages/index.html
Normal file
89
streamcore-bootstrap/src/pages/index.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Главная | StreamCore</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../css/custom.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="logo">🎮 StreamCore</div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg p-0">
|
||||
<button class="navbar-toggler d-lg-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.html">Главная</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="catalog.html">Каталог</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="streams.html">Трансляции</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="profile.html">Профиль</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="about.html">О нас</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="page">
|
||||
<div class="container-fluid">
|
||||
<h1>Добро пожаловать в StreamCore</h1>
|
||||
<p>Твой портал в мир киберспорта, электронной музыки и цифрового искусства. Следи за новыми трансляциями, знакомься с артистами и участвуй в событиях!</p>
|
||||
|
||||
<section class="features-grid" id="featuresContainer">
|
||||
<article class="feature-item">
|
||||
<h3><i class="bi bi-trophy me-2"></i>Киберспорт</h3>
|
||||
<p>Самые масштабные турниры и захватывающие матчи в прямом эфире.</p>
|
||||
<button onclick="location.href='streams.html'">Смотреть трансляции</button>
|
||||
</article>
|
||||
<article class="feature-item">
|
||||
<h3><i class="bi bi-music-note-beamed me-2"></i>Электронная музыка</h3>
|
||||
<p>Эксклюзивные лайв-сеты от лучших диджеев и музыкантов.</p>
|
||||
<button onclick="location.href='catalog.html#music'">Открыть каталог</button>
|
||||
</article>
|
||||
<article class="feature-item">
|
||||
<h3><i class="bi bi-palette me-2"></i>Цифровое искусство</h3>
|
||||
<p>Выставки, NFT-галереи и творческие проекты от художников.</p>
|
||||
<button onclick="location.href='catalog.html#art'">Посмотреть работы</button>
|
||||
</article>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="footer-info">
|
||||
<p>Контакты: info@streamcore.com | +7 (999) 123-45-67</p>
|
||||
<p>Часы работы: Пн–Вс, 10:00–22:00</p>
|
||||
<p>Адрес: Неон-сити, ул. Цифровая, д.42</p>
|
||||
</div>
|
||||
<div class="social-icons">
|
||||
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
|
||||
<a href="#" aria-label="ВКонтакте"><i class="fab fa-vk"></i></a>
|
||||
<a href="#" aria-label="Telegram"><i class="fab fa-telegram-plane"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
77
streamcore-bootstrap/src/pages/profile.html
Normal file
77
streamcore-bootstrap/src/pages/profile.html
Normal file
@@ -0,0 +1,77 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Профиль | StreamCore</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../css/custom.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="header">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="logo">🎮 StreamCore</div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg p-0">
|
||||
<button class="navbar-toggler d-lg-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="index.html">Главная</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="catalog.html">Каталог</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="streams.html">Трансляции</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="profile.html">Профиль</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="about.html">О нас</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="page">
|
||||
<div class="container-fluid">
|
||||
<h1>Профиль пользователя</h1>
|
||||
|
||||
<section class="profile-container">
|
||||
<div class="d-flex flex-column flex-md-row align-items-center gap-4">
|
||||
<div class="profile-avatar">
|
||||
<img src="https://abrakadabra.fun/uploads/posts/2021-12/1640161252_2-abrakadabra-fun-p-devushki-v-stile-kiberpank-2.jpg" alt="Аватар пользователя" />
|
||||
</div>
|
||||
<div class="profile-info">
|
||||
<h2>Имя пользователя: <span>NeonGamer</span></h2>
|
||||
<p><strong>Email:</strong> neongamer@example.com</p>
|
||||
<p><strong>Подписка:</strong> Pro</p>
|
||||
<p><strong>Дата регистрации:</strong> 12.04.2024</p>
|
||||
<p><strong>Последний вход:</strong> Сегодня, 14:35</p>
|
||||
<button class="btn-edit-profile">Редактировать профиль</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="footer-info">
|
||||
<p>Контакты: info@streamcore.com | +7 (999) 123-45-67</p>
|
||||
<p>Часы работы: Пн–Вс, 10:00–22:00</p>
|
||||
<p>Адрес: Неон-сити, ул. Цифровая, д.42</p>
|
||||
</div>
|
||||
<div class="social-icons">
|
||||
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f fa-lg"></i></a>
|
||||
<a href="#" aria-label="ВКонтакте"><i class="fab fa-vk fa-lg"></i></a>
|
||||
<a href="#" aria-label="Telegram"><i class="fab fa-telegram-plane fa-lg"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
91
streamcore-bootstrap/src/pages/streams.html
Normal file
91
streamcore-bootstrap/src/pages/streams.html
Normal file
@@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Трансляции | StreamCore</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../css/custom.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div class="logo">🎮 StreamCore</div>
|
||||
|
||||
<nav class="navbar navbar-expand-lg p-0">
|
||||
<button class="navbar-toggler d-lg-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item"><a class="nav-link" href="index.html">Главная</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="catalog.html">Каталог</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="streams.html">Трансляции</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="profile.html">Профиль</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="about.html">О нас</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="page">
|
||||
<div class="container-fluid">
|
||||
<h1>Текущие и предстоящие трансляции</h1>
|
||||
<p>Выбирай любимые трансляции и присоединяйся к просмотру в реальном времени!</p>
|
||||
|
||||
<section class="streams-grid" id="streamsContainer">
|
||||
<article class="stream-item">
|
||||
<img src="https://kartinki.pics/uploads/posts/2021-07/thumbs/1625655522_52-kartinkin-com-p-kiberpank-oboi-krasivie-57.jpg" alt="Трансляция 1" />
|
||||
<h3>Neon Cyber Show</h3>
|
||||
<p>В прямом эфире: DJ Neonmix с уникальными сетами и визуалами.</p>
|
||||
<button>Смотреть сейчас</button>
|
||||
</article>
|
||||
|
||||
<article class="stream-item">
|
||||
<img src="https://img3.akspic.ru/previews/6/6/1/2/7/172166/172166-kiberpank_2077-kiberpank-bridzhit-svet-purpur-550x310.jpg" alt="Трансляция 2" />
|
||||
<h3>Киберспорт Матч</h3>
|
||||
<p>Прямой эфир крупнейшего турнира по киберспорту.</p>
|
||||
<button>Присоединиться</button>
|
||||
</article>
|
||||
|
||||
<article class="stream-item">
|
||||
<img src="https://img3.akspic.ru/previews/4/6/0/4/6/164064/164064-goroda_kiberpank-kiberpank_2077-kiberpank-nauchnaya_fantastika-cifrovoe_iskusstvo-550x310.jpg" alt="Трансляция 3" />
|
||||
<h3>VR Adventure Live</h3>
|
||||
<p>Эксклюзивный VR стрим с комментариями и интерактивом.</p>
|
||||
<button>Смотреть сейчас</button>
|
||||
</article>
|
||||
|
||||
<article class="stream-item">
|
||||
<img src="https://kartinki.pics/pics/uploads/posts/2022-08/thumbs/1660474007_21-kartinkin-net-p-kiberpank-oboi-krasivo-26.jpg" alt="Трансляция 4" />
|
||||
<h3>Цифровой Концерт</h3>
|
||||
<p>Виртуальный концерт с неоновыми спецэффектами и лайв-сетами.</p>
|
||||
<button>Присоединиться</button>
|
||||
</article>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="footer-info">
|
||||
<p>Контакты: info@streamcore.com | +7 (999) 123-45-67</p>
|
||||
<p>Часы работы: Пн–Вс, 10:00–22:00</p>
|
||||
<p>Адрес: Неон-сити, ул. Цифровая, д.42</p>
|
||||
</div>
|
||||
<div class="social-icons">
|
||||
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f fa-lg"></i></a>
|
||||
<a href="#" aria-label="ВКонтакте"><i class="fab fa-vk fa-lg"></i></a>
|
||||
<a href="#" aria-label="Telegram"><i class="fab fa-telegram-plane fa-lg"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
96
streamcore-bootstrap/src/style.css
Normal file
96
streamcore-bootstrap/src/style.css
Normal file
@@ -0,0 +1,96 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.vanilla:hover {
|
||||
filter: drop-shadow(0 0 2em #f7df1eaa);
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
24
streamcore-bootstrap/streamcore-bootstrap/.gitignore
vendored
Normal file
24
streamcore-bootstrap/streamcore-bootstrap/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
13
streamcore-bootstrap/streamcore-bootstrap/index.html
Normal file
13
streamcore-bootstrap/streamcore-bootstrap/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite App</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
24
streamcore-bootstrap/streamcore-bootstrap/my-bootstrap-site/.gitignore
vendored
Normal file
24
streamcore-bootstrap/streamcore-bootstrap/my-bootstrap-site/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,11 @@
|
||||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
import pluginReact from "eslint-plugin-react";
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
|
||||
export default defineConfig([
|
||||
{ files: ["**/*.{js,mjs,cjs,jsx}"], plugins: { js }, extends: ["js/recommended"] },
|
||||
{ files: ["**/*.{js,mjs,cjs,jsx}"], languageOptions: { globals: globals.browser } },
|
||||
pluginReact.configs.flat.recommended,
|
||||
]);
|
||||
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite App</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
4046
streamcore-bootstrap/streamcore-bootstrap/my-bootstrap-site/package-lock.json
generated
Normal file
4046
streamcore-bootstrap/streamcore-bootstrap/my-bootstrap-site/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "my-bootstrap-site",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.27.0",
|
||||
"eslint": "^9.27.0",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"globals": "^16.1.0",
|
||||
"vite": "^6.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "^5.3.6",
|
||||
"bootstrap-icons": "^1.13.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,9 @@
|
||||
export function setupCounter(element) {
|
||||
let counter = 0
|
||||
const setCounter = (count) => {
|
||||
counter = count
|
||||
element.innerHTML = `count is ${counter}`
|
||||
}
|
||||
element.addEventListener('click', () => setCounter(counter + 1))
|
||||
setCounter(0)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="#F7DF1E" d="M0 0h256v256H0V0Z"></path><path d="m67.312 213.932l19.59-11.856c3.78 6.701 7.218 12.371 15.465 12.371c7.905 0 12.89-3.092 12.89-15.12v-81.798h24.057v82.138c0 24.917-14.606 36.259-35.916 36.259c-19.245 0-30.416-9.967-36.087-21.996m85.07-2.576l19.588-11.341c5.157 8.421 11.859 14.607 23.715 14.607c9.969 0 16.325-4.984 16.325-11.858c0-8.248-6.53-11.17-17.528-15.98l-6.013-2.58c-17.357-7.387-28.87-16.667-28.87-36.257c0-18.044 13.747-31.792 35.228-31.792c15.294 0 26.292 5.328 34.196 19.247l-18.732 12.03c-4.125-7.389-8.591-10.31-15.465-10.31c-7.046 0-11.514 4.468-11.514 10.31c0 7.217 4.468 10.14 14.778 14.608l6.014 2.577c20.45 8.765 31.963 17.7 31.963 37.804c0 21.654-17.012 33.51-39.867 33.51c-22.339 0-36.774-10.654-43.819-24.574"></path></svg>
|
||||
|
After Width: | Height: | Size: 995 B |
@@ -0,0 +1,24 @@
|
||||
import './style.css'
|
||||
import javascriptLogo from './javascript.svg'
|
||||
import viteLogo from '/vite.svg'
|
||||
import { setupCounter } from './counter.js'
|
||||
|
||||
document.querySelector('#app').innerHTML = `
|
||||
<div>
|
||||
<a href="https://vite.dev" target="_blank">
|
||||
<img src="${viteLogo}" class="logo" alt="Vite logo" />
|
||||
</a>
|
||||
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">
|
||||
<img src="${javascriptLogo}" class="logo vanilla" alt="JavaScript logo" />
|
||||
</a>
|
||||
<h1>Hello Vite!</h1>
|
||||
<div class="card">
|
||||
<button id="counter" type="button"></button>
|
||||
</div>
|
||||
<p class="read-the-docs">
|
||||
Click on the Vite logo to learn more
|
||||
</p>
|
||||
</div>
|
||||
`
|
||||
|
||||
setupCounter(document.querySelector('#counter'))
|
||||
@@ -0,0 +1,96 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.vanilla:hover {
|
||||
filter: drop-shadow(0 0 2em #f7df1eaa);
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
2238
streamcore-bootstrap/streamcore-bootstrap/package-lock.json
generated
Normal file
2238
streamcore-bootstrap/streamcore-bootstrap/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
22
streamcore-bootstrap/streamcore-bootstrap/package.json
Normal file
22
streamcore-bootstrap/streamcore-bootstrap/package.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "streamcore-bootstrap",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^9.27.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-plugin-prettier": "^5.4.0",
|
||||
"prettier": "^3.5.3",
|
||||
"vite": "^6.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "^5.3.6",
|
||||
"bootstrap-icons": "^1.13.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
9
streamcore-bootstrap/streamcore-bootstrap/src/counter.js
Normal file
9
streamcore-bootstrap/streamcore-bootstrap/src/counter.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function setupCounter(element) {
|
||||
let counter = 0
|
||||
const setCounter = (count) => {
|
||||
counter = count
|
||||
element.innerHTML = `count is ${counter}`
|
||||
}
|
||||
element.addEventListener('click', () => setCounter(counter + 1))
|
||||
setCounter(0)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="#F7DF1E" d="M0 0h256v256H0V0Z"></path><path d="m67.312 213.932l19.59-11.856c3.78 6.701 7.218 12.371 15.465 12.371c7.905 0 12.89-3.092 12.89-15.12v-81.798h24.057v82.138c0 24.917-14.606 36.259-35.916 36.259c-19.245 0-30.416-9.967-36.087-21.996m85.07-2.576l19.588-11.341c5.157 8.421 11.859 14.607 23.715 14.607c9.969 0 16.325-4.984 16.325-11.858c0-8.248-6.53-11.17-17.528-15.98l-6.013-2.58c-17.357-7.387-28.87-16.667-28.87-36.257c0-18.044 13.747-31.792 35.228-31.792c15.294 0 26.292 5.328 34.196 19.247l-18.732 12.03c-4.125-7.389-8.591-10.31-15.465-10.31c-7.046 0-11.514 4.468-11.514 10.31c0 7.217 4.468 10.14 14.778 14.608l6.014 2.577c20.45 8.765 31.963 17.7 31.963 37.804c0 21.654-17.012 33.51-39.867 33.51c-22.339 0-36.774-10.654-43.819-24.574"></path></svg>
|
||||
|
After Width: | Height: | Size: 995 B |
24
streamcore-bootstrap/streamcore-bootstrap/src/main.js
Normal file
24
streamcore-bootstrap/streamcore-bootstrap/src/main.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import './style.css'
|
||||
import javascriptLogo from './javascript.svg'
|
||||
import viteLogo from '/vite.svg'
|
||||
import { setupCounter } from './counter.js'
|
||||
|
||||
document.querySelector('#app').innerHTML = `
|
||||
<div>
|
||||
<a href="https://vite.dev" target="_blank">
|
||||
<img src="${viteLogo}" class="logo" alt="Vite logo" />
|
||||
</a>
|
||||
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">
|
||||
<img src="${javascriptLogo}" class="logo vanilla" alt="JavaScript logo" />
|
||||
</a>
|
||||
<h1>Hello Vite!</h1>
|
||||
<div class="card">
|
||||
<button id="counter" type="button"></button>
|
||||
</div>
|
||||
<p class="read-the-docs">
|
||||
Click on the Vite logo to learn more
|
||||
</p>
|
||||
</div>
|
||||
`
|
||||
|
||||
setupCounter(document.querySelector('#counter'))
|
||||
96
streamcore-bootstrap/streamcore-bootstrap/src/style.css
Normal file
96
streamcore-bootstrap/streamcore-bootstrap/src/style.css
Normal file
@@ -0,0 +1,96 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.vanilla:hover {
|
||||
filter: drop-shadow(0 0 2em #f7df1eaa);
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
7
streamcore-bootstrap/vite.config.js
Normal file
7
streamcore-bootstrap/vite.config.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 3000
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user