Added README with build instruction. Removed references to the old npm build.

This commit is contained in:
Your Name committed 2025-04-28 15:41:31 +00:00
1 parent 5cbff6fc75
commit ef4b57ba19
16 files changed
+44 -128

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
# Project Behind the Desk
## Description
A Jekyll website
## Getting Started
### Dependencies
Head to this website to know more about jekyll https://jekyllrb.com/docs/
### Installing
```
bundle install
```
### Executing program
* How to run the program
* with live reload
```
bundle exec jekyll serve --livereload
```
* without live reload
```
bundle exec jekyll serve
```
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Account Settings - Behind the Desk</title> <title>Account Settings - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
File renamed without changes.
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Change Password - Behind the Desk</title> <title>Change Password - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
<title>Formatting Options - Behind the Desk</title> <title>Formatting Options - Behind the Desk</title>
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Login - Behind the Desk</title> <title>Login - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nearby - Behind the Desk</title> <title>Nearby - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
-19
View File
@@ -1,19 +0,0 @@
{
"name": "behind-the-desk",
"version": "1.0.0",
"description": "A simple web application for sharing desk moments and finds.",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"author": "",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^10.4.19",
"postcss": "^8.4.23",
"tailwindcss": "^3.4.1",
"vite": "^4.4.9"
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Behind the Desk</title> <title>Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
-6
View File
@@ -1,6 +0,0 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Post - Behind the Desk</title> <title>Post - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Submit - Behind the Desk</title> <title>Submit - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
-54
View File
@@ -1,54 +0,0 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./**/*.html",
"./src/**/*.{html,js}",
"./public/**/*.{html,js}"
],
theme: {
extend: {
colors: {
// Main brand colors from the CSS
primary: '#38315f', // Purple color used for text and accents
'primary-dark': '#2d274a', // Darker version for hover states
'navbar-bg': '#e5fa70', // Navbar background
'navbar-border': '#cddb60', // Navbar border
'bg-light': '#f8f9fa', // Light background
'bg-footer': '#f5f5f5', // Footer background
'text-default': '#343a40', // Default text color
'text-muted': '#6c757d', // Muted/secondary text
'text-title': '#212529', // Post title color
'link-hover': '#ff6600', // Orange hover color for upvote arrows
'rules-bg': '#eef6f6', // Rules box background
'border-light': '#dee2e6', // Light borders
},
fontFamily: {
sans: [
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'Helvetica',
'Arial',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"'
],
},
fontSize: {
'xs': '0.75rem', // Very small text (like "reply")
'sm': '0.875rem', // Small text (like meta info)
'base': '1rem', // Base text size (like post titles)
'lg': '1.125rem', // Section headers
},
spacing: {
'navbar-height': '2.5rem', // Height of the navbar
},
boxShadow: {
'card': '0 15px 30px rgba(0, 0, 0, 0.08)',
}
},
},
plugins: [],
}
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>User Profile - Behind the Desk</title> <title>User Profile - Behind the Desk</title>
<link href="/src/styles.css" rel="stylesheet"> <link href="/assets/css/styles.css" rel="stylesheet">
</head> </head>
<body class="font-sans text-text-default pt-navbar-height"> <body class="font-sans text-text-default pt-navbar-height">
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation"> <nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
-40
View File
@@ -1,40 +0,0 @@
import { defineConfig } from 'vite';
import path from 'path';
import { glob } from 'glob';
import { fileURLToPath } from 'url';
export default defineConfig({
root: './',
build: {
outDir: 'dist',
rollupOptions: {
input: Object.fromEntries(
glob.sync('*.html').map(file => [
path.basename(file, path.extname(file)),
fileURLToPath(new URL(file, import.meta.url))
])
)
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
host: '0.0.0.0',
port: 5173,
open: false,
},
plugins: [
{
name: 'html-transform',
transformIndexHtml(html) {
return html.replace(
/<title>(.*?)<\/title>/,
'<title>Behind the Desk</title>'
);
},
},
],
});