Skip to content

Commit

Permalink
Initialize amsterdamphp/static-site project
Browse files Browse the repository at this point in the history
Use Jigsaw static site generator with Ghostwind Tailwind theme.
  • Loading branch information
winkbrace committed Aug 3, 2023
1 parent a21f919 commit ff2a7b4
Show file tree
Hide file tree
Showing 22 changed files with 15,184 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
composer.phar
/build_local/
/cache/
/node_modules/
/vendor/
/.idea/
/.vscode/
npm-debug.log

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
# Optional ignores
/build_staging/
/build_production/

# Location of compiled assets
/source/assets/build/
58 changes: 58 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# static-site

## TODO

- [ ] Extract useful html components from the big index and blog templates to partials
- [ ] Determine site contents / pages
- Ideas:
- Home
- Contact form for speakers
- Contact form for sponsors/venues
- Merch
- Code of Conduct (probably wise to keep)
- Brainstorming:
- Ask the expert <-- just an idea because this year we've been contacted twice by someone that wanted to get in touch with a php developer for a small request/job
- Learning resources? <-- to have something for juniors (who might never see the site)
- [ ] Design homepage.
- Ideas:
- "Longest running PHP user group in the Netherlands"
- First upcoming meetup as full-width card at the top
- last 5 meetups as cards underneath
- CTA Sponsor us somewhere
- CTA Signup as speaker somewhere
- Our mission statement at the bottom (like on current site)

## Documentation

Statically generated AmsterdamPHP site

This project uses [Jigsaw](https://jigsaw.tighten.com/docs/installation/) as static site generator.
It uses Blade templates, Markdown content and Tailwind CSS.
Jigsaw also provides a CLI tool for building and serving the static site located at `vendor/bin/jigsaw`.

#### Ghostwind

In this project we copied the style of Ghostwind, a tailwind theme based on the popular Ghost Caspar layout.

## Setup

```
composer install
npm install
```

## Run

Start php server
```
vendor/bin/jigsaw serve
```

Compile the assets and watch for changes
```
npm run watch
```

## Deploy

TBD
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

15 changes: 15 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

/** @var \Illuminate\Container\Container $container */
/** @var \TightenCo\Jigsaw\Events\EventBus $events */

/*
* You can run custom code at different stages of the build process by
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events.
*
* For example:
*
* $events->beforeBuild(function (Jigsaw $jigsaw) {
* // Your code here
* });
*/
11 changes: 11 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "amsterdamphp/static-site",
"type": "project",
"license": "proprietary",
"require": {
"tightenco/jigsaw": "^1.7"
},
"require-dev": {
"roave/security-advisories": "dev-latest"
}
}
Loading

0 comments on commit ff2a7b4

Please sign in to comment.