Initial commit
This commit is contained in:
commit
31c476a48d
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# build output
|
||||
dist/
|
||||
|
||||
# generated types
|
||||
.astro/
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# environment variables
|
||||
.env
|
||||
.env.production
|
||||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
||||
# jetbrains setting folder
|
||||
.idea/
|
4
.vscode/extensions.json
vendored
Normal file
4
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"recommendations": ["astro-build.astro-vscode"],
|
||||
"unwantedRecommendations": []
|
||||
}
|
14
.vscode/launch.json
vendored
Normal file
14
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "ts-node",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"runtimeExecutable": "npm",
|
||||
"runtimeArgs": ["run", "dev"],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"internalConsoleOptions": "openOnSessionStart"
|
||||
}
|
||||
]
|
||||
}
|
9
astro.config.mjs
Normal file
9
astro.config.mjs
Normal file
@ -0,0 +1,9 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: "https://demo.site",
|
||||
// reidrects abc.xyz/ -> abc.xyz
|
||||
trailingSlash: 'never'
|
||||
});
|
5021
package-lock.json
generated
Normal file
5021
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
package.json
Normal file
14
package.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "worship-gear",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.2.5"
|
||||
}
|
||||
}
|
9
public/favicon.svg
Normal file
9
public/favicon.svg
Normal file
@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
|
||||
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
|
||||
<style>
|
||||
path { fill: #000; }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
path { fill: #FFF; }
|
||||
}
|
||||
</style>
|
||||
</svg>
|
After Width: | Height: | Size: 749 B |
10
src/pages/index.astro
Normal file
10
src/pages/index.astro
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
import Head from "../partials/base.astro"
|
||||
|
||||
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
|
||||
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
|
||||
---
|
||||
|
||||
<Head title='Home' desc='Where the party is happeneing!'>
|
||||
<p>Hello world!</p>
|
||||
</Head>
|
113
src/partials/base.astro
Normal file
113
src/partials/base.astro
Normal file
@ -0,0 +1,113 @@
|
||||
---
|
||||
interface Props {
|
||||
title: string;
|
||||
desc: string;
|
||||
}
|
||||
|
||||
const { desc, title } = Astro.props;
|
||||
|
||||
let url = new URL(Astro.request.url);
|
||||
const site = Astro.site?.toString();
|
||||
const page_url = site + url.pathname.substring(1);
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<link rel="icon" href="/favicon.svg" />
|
||||
|
||||
<title>{title}</title>
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:site_name" content={site} />
|
||||
|
||||
<meta name="description" content={desc} />
|
||||
<meta property="og:description" content={desc} />
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:locale" content="en-us" />
|
||||
<meta property="og:image" content="/logo.png" />
|
||||
<meta property="og:url" content={page_url} />
|
||||
<link rel="canonical" href={page_url} />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
</body>
|
||||
<hr />
|
||||
<footer>
|
||||
</footer>
|
||||
</html>
|
||||
<style>
|
||||
body {
|
||||
max-width: 1500px;
|
||||
margin: auto;
|
||||
}
|
||||
footer {
|
||||
color: var(--faded);
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--faded);
|
||||
}
|
||||
a:visited {
|
||||
color: var(--faded);
|
||||
}
|
||||
a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
</style>
|
||||
<style is:global>
|
||||
:root {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: large;
|
||||
|
||||
--header-size: 3rem;
|
||||
--header-weight: 800;
|
||||
|
||||
--subheader-size: 2.5rem;
|
||||
--subheader-weight: 100;
|
||||
|
||||
--shadow: 5px 5px;
|
||||
--shadow-hover: 2px 2px;
|
||||
|
||||
--fade-in: 250ms;
|
||||
--fade-out: 100ms;
|
||||
|
||||
--text: black;
|
||||
--bg: white;
|
||||
|
||||
--second: grey;
|
||||
--faded: darkgrey;
|
||||
|
||||
--primary: aqua;
|
||||
--secondary: rgb(201, 49, 49);
|
||||
--callout: rgb(131, 125, 255);
|
||||
}
|
||||
html {
|
||||
background-color: var(--bg);
|
||||
color: var(--text);
|
||||
}
|
||||
svg {
|
||||
transform: translateY(5px);
|
||||
}
|
||||
.small {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (max-width: 650px) {
|
||||
.small {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
hr {
|
||||
border: none;
|
||||
background-color: var(--faded);
|
||||
height: 2px;
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
5
tsconfig.json
Normal file
5
tsconfig.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"include": [".astro/types.d.ts", "**/*"],
|
||||
"exclude": ["dist"]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user