Initial Commit

This commit is contained in:
Luna 2021-09-21 07:56:32 -04:00
commit 223b0b40ba
Signed by: luna
GPG key ID: C8DA627859769F68
11 changed files with 3899 additions and 0 deletions

12
.editorconfig Normal file
View file

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true

118
.gitignore vendored Normal file
View file

@ -0,0 +1,118 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
.env.production
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

53
Gulpfile.js Normal file
View file

@ -0,0 +1,53 @@
// Probably a bad thing, but all pages are **hard-coded** into
// the Gulpfile, so they can be copied. This is because there
// won't be any posts on the website, so this won't have to be
// updated any time soon.
const gulp = require('gulp')
const cleanCSS = require('gulp-clean-css')
const del = require('del')
const postcss = require('gulp-postcss')
// CSS
function css() {
return gulp.src('src/css/styles.css')
.pipe(postcss([
require('tailwindcss'),
require('autoprefixer')
]))
.pipe(cleanCSS())
.pipe(gulp.dest('dist/assets/css'))
}
// Images
// TODO: Optimize images with a Gulp plugin
function images() {
return gulp.src('src/img/**/*.{png,jpg,jpeg}')
.pipe(gulp.dest('dist/assets/img'))
}
// Pages
function home() {
return gulp.src('src/index.html')
.pipe(gulp.dest('dist'))
}
// Clean
function clean() {
return del([
'dist'
])
}
exports.css = css
exports.images = images
exports.home = home
exports.clean = clean
exports.default = gulp.series(home, css, images)

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 LunaIsNotABoy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

37
README.md Normal file
View file

@ -0,0 +1,37 @@
# Luna
My personal website.
## Requirements
- Node 14.x
- Yarn 1.x
- Gulp CLI
## Building
This uses [Gulp](https://gulpjs.com) to build CSS and optimize images.
To build a development bundle:
```bash
foo@bar:~/luna$ gulp
```
The output will be in the `dist/` folder.
To build a production bundle:
```bash
foo@bar:~/luna$ NODE_ENV=production gulp
```
# Local Development Server
Build the website using the above commands, then run:
```bash
foo@bar:~/luna$ yarn dev
```
You will then be able to access the website on the provided URLs.

22
package.json Normal file
View file

@ -0,0 +1,22 @@
{
"name": "luna",
"version": "0.1.0",
"description": "Luna's personal website",
"repository": "https://fem.mint.lgbt/luna/luna.git",
"author": "Luna <her@mint.lgbt>",
"license": "MIT",
"private": true,
"scripts": {
"dev": "serve dist -p 3000"
},
"devDependencies": {
"autoprefixer": "^10.3.4",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-postcss": "^9.0.1",
"postcss": "^8.3.6",
"serve": "^12.0.1",
"tailwindcss": "^2.2.15"
}
}

3
src/css/styles.css Normal file
View file

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

BIN
src/img/avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

51
src/index.html Normal file
View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<!--
Hey there, traveler! If you're looking for the
inner workings of my site, you *might* be better
off looking at the source code:
https://fem.mint.lgbt/luna/luna
Cya!
~ Luna
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>luna is not a boy</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<div class="min-h-screen bg-gray-800 py-6 flex flex-col justify-center sm:py-12">
<div class="relative py-3 sm:max-w-xl sm:mx-auto">
<div class="absolute inset-0 bg-gradient-to-r from-indigo-400 to-violet-500 shadow-lg transform -skew-y-6 sm:skew-y-0 sm:-rotate-6 sm:rounded-3xl"></div>
<div class="relative px-4 py-10 bg-gray-700 shadow-lg sm:rounded-3xl sm:p-20">
<div class="max-w-md mx-auto">
<div>
<img src="/assets/img/avatar.png" class="border-opacity-30 border-t-2 border-white h-14 mx-auto rounded-full shadow-2xl w-auto sm:h-16 lg:h-24 xl:h-32" />
</div>
<div class="divide-y divide-gray-200">
<div class="py-8 text-base leading-6 space-y-4 text-gray-100 sm:text-lg sm:leading-7">
<p>
Hi! I'm Luna. I'm that crazy transgender developer
your parents warned you about.
</p>
<p>
Just kidding!!! Unless...
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

19
tailwind.config.js Normal file
View file

@ -0,0 +1,19 @@
const colors = require('tailwindcss/colors')
module.exports = {
purge: [
'./src/index.html'
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
violet: colors.violet,
},
},
},
variants: {
extend: {},
},
plugins: [],
}

3563
yarn.lock Normal file

File diff suppressed because it is too large Load diff