commiting

This commit is contained in:
2023-12-15 10:30:18 -05:00
parent b6b7ac2418
commit 5db1626ef1
410 changed files with 52075 additions and 318 deletions

View File

@@ -0,0 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.0.1] - TBD
Initial release

15
markdown_content/Makefile Normal file
View File

@@ -0,0 +1,15 @@
IP_ADDR = allpawcare.com
PUBLIC_DIR = public
BUILD_SCRIPT = scripts/build.sh
.PHONY: all
all: clean
.PHONY: clean-public-dir
clean-public-dir:
rm -rf ${PUBLIC_DIR}/*
.PHONY: build
build: clean-public-dir
./${BUILD_SCRIPT}

View File

@@ -0,0 +1,4 @@
# www.AllPawCare.com markdown content
Markdown assets for templates in
[www.allpawcare.com](https://gitea.awkawb.cloud/awkawb/www.allpawcare.com.git).

View File

@@ -0,0 +1,97 @@
'''
Converts site content written in Markdown to HTML.
'''
class MarkdownContent(dict):
def __init__(self):
import frontmatter
import os
# content paths with metadata
self.PAGES_METADATA = dict()
self.FORMS_METADATA = dict()
for content_dir in self._CONTENT_DIRS:
self.__get_content(content_dir)
def __getitem__(self, page):
return self.METADATA[page]
def __content_page_faq(self):
'''
Fetch FAQ page content.
'''
return True
def __content_page_services(self):
'''
Fetch services page content.
'''
return True
def __content_page_about_me(self):
'''
Fetch about me page content.
'''
return True
def __content_page_contact_me(self):
'''
Fetch contact me page content.
'''
return True
def __content_form_meet_and_greet(self):
'''
Fetch meet & greet form content.
'''
return True
def __get_content(self, content_dir: str):
import frontmatter
import os
metadata = dict()
for items in os.walk(content_dir):
if len(items[2]) > 0:
for file in items[2]:
path = os.path.join(items[0], file)
metadata[path] = \
frontmatter.load(path).to_dict()
return metadata
def get_page(self, page: str):
'''
Transforms Markdown to HTML for pages.
'''
# match page.lower():
# case 'faq':
# return True
#
# case 'services':
# return True
#
# case 'about me':
# return True
#
# case 'contact me':
# return True
def get_form(self, form: str):
'''
Transforms Markdown to HTML for forms.
'''
# match form.lower():
# case 'meet and greet':
# return True

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,6 @@
<p>Welcome to All Paw Care!</p>
<p>Ive been providing professional animal caretaking services in the
Baltimore area for over 4 years. I provide services for paws of all
shapes and sizes and specialize in dog and cat care.</p>
<p>Animals add so much to our lives so caring for them is just as
important.</p>

View File

@@ -0,0 +1,5 @@
<p>If you have any questions,the FAQ page may have an answer.</p>
<p>If your question isnt on the FAQ or you want to directly contact me,
email or text messages work best.</p>
<p>My personal Instagram page is public and includes pictures of my
animal caretaking work along with all my interests.</p>

View File

@@ -0,0 +1,3 @@
<p>Here youll find answers to some common questions. If what your
looking for cant be found, head over to the <a href="">contact me</a>
page for information on communicating with me directly.</p>

View File

@@ -0,0 +1,12 @@
<p>A broad range of payment types are accepted to make the process
easy.</p>
<ul>
<li>Cash</li>
<li>Credit/Debit cards (Amex, Discover, Mastercard, Visa, etc.)</li>
<li>ACH transfers (direct bank transfer from your checking account)</li>
<li>Paypal</li>
<li>Apple Pay</li>
<li>Google Pay</li>
<li>Zelle</li>
<li>plus more…</li>
</ul>

View File

@@ -0,0 +1,2 @@
<p>Additional animals are charged per addition. For example, a walking
service for three dogs incures two addtional dog fees.</p>

View File

@@ -0,0 +1,2 @@
<p>Payments are due 7 days after invoicing. Invoices are sent on the day
of service or during (e.g house sitting).</p>

View File

@@ -0,0 +1,2 @@
<p>Service includes 15 minutes of in-home play and/or care for your
dog/cat. Longer drop-ins are available!</p>

View File

@@ -0,0 +1,3 @@
<p>Service includes nightly in-home care for your animal. Drop-ins or
walks are provided during the day. Cleaning of cat litter is included
too!</p>

View File

@@ -0,0 +1,2 @@
<p>Service includes 30 minute walk for your dog/cat and bags for poop
clean-up.</p>

View File

@@ -0,0 +1,6 @@
<p>All services are for a single animal. Additional animals are charged
seperately.</p>
<p>Set up a meeting before scheduling any service. Ill come to your
home or some place more convienient. The meeting will serve a way for
your pet and I to get comfortable with each other. Also, any questions
you may have can be discussed too!</p>

View File

@@ -0,0 +1,16 @@
#! /run/current-system/sw/bin/bash
# Static runtime variables
SRC_DIR=src
PUBLIC_DIR=public
for content in $(find $SRC_DIR -type f)
do
output_file="$PUBLIC_DIR/$(echo "$content" | sed -e 's/src\///g' -e 's/md$/html/g')"
content_type=$(echo $content | awk -F/ '{ print $2 }')
mkdir -p $(dirname $output_file)
pandoc -o "$output_file" "$content"
done

View File

@@ -0,0 +1,3 @@
---
Title: Meet and greet request
---

View File

@@ -0,0 +1,13 @@
---
Title: About me
---
Welcome to All Paw Care!
I've been providing professional animal caretaking services in the
Baltimore area for over 4 years. I provide services for paws of all
shapes and sizes and specialize in dog and cat care.
Animals add so much to our lives so caring for them is just as
important.

View File

@@ -0,0 +1,13 @@
---
Title: Contact me
---
If you have any questions,the FAQ page may have
an answer.
If your question isn't on the FAQ or you want to directly
contact me, email or text messages work best.
My personal Instagram page is public and includes pictures
of my animal caretaking work along with all my interests.

View File

@@ -0,0 +1,9 @@
---
Title: FAQ
---
Here you'll find answers to some common questions. If what your
looking for can't be found, head over to the
[contact me]() page for information on communicating with me
directly.

View File

@@ -0,0 +1,16 @@
---
Header: What types of payments do you accept?
---
A broad range of payment types are accepted to make the process
easy.
- Cash
- Credit/Debit cards (Amex, Discover, Mastercard, Visa, etc.)
- ACH transfers (direct bank transfer from your checking account)
- Paypal
- Apple Pay
- Google Pay
- Zelle
- plus more...

View File

@@ -0,0 +1,7 @@
---
Header: Do you accept more than one animal?
---
Additional animals are charged per addition. For example, a walking
service for three dogs incures two addtional dog fees.

View File

@@ -0,0 +1,7 @@
---
Header: When is payment for a service due?
---
Payments are due 7 days after invoicing. Invoices are sent on the day
of service or during (e.g house sitting).

View File

@@ -0,0 +1,8 @@
---
Title: Drop-ins
Price: $18+/visit
---
Service includes 15 minutes of in-home play and/or care for your
dog/cat. Longer drop-ins are available!

View File

@@ -0,0 +1,9 @@
---
Title: House sitting
Price: $35+/night
---
Service includes nightly in-home care for your animal. Drop-ins or
walks are provided during the day. Cleaning of cat litter is included
too!

View File

@@ -0,0 +1,8 @@
---
Title: Walking
Price: $20+/walk
---
Service includes 30 minute walk for your dog/cat and bags for poop
clean-up.

View File

@@ -0,0 +1,12 @@
---
Title: Services
---
All services are for a single animal. Additional animals are charged
seperately.
Set up a meeting before scheduling any service. I'll come to your
home or some place more convienient. The meeting will serve a way for
your pet and I to get comfortable with each other. Also, any
questions you may have can be discussed too!