Add PHPSW post

This commit is contained in:
Oliver Davies 2018-02-28 17:22:57 +00:00
parent ff49c21c83
commit 9747a4b059
2 changed files with 32 additions and 0 deletions

View file

@ -9,4 +9,8 @@
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
{% endif %}
{% if page.has_tweets %}
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
{% block scripts %}{% endblock %}

View file

@ -0,0 +1,28 @@
---
title: Building the new PHPSW Website
tags:
- phpsw
- symfony
- tailwind-css
has_tweets: true
---
{% block excerpt %}
Earlier this week we had another hack night, working on the new [PHPSW user group][0] website.
{% endblock %}
{% block content %}
<div class="mb-4">
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">Hacking away on the new <a href="https://twitter.com/phpsw?ref_src=twsrc%5Etfw">@phpsw</a> website with <a href="https://twitter.com/DaveLiddament?ref_src=twsrc%5Etfw">@DaveLiddament</a> and <a href="https://twitter.com/kasiazien?ref_src=twsrc%5Etfw">@kasiazien</a>. <a href="https://t.co/kmfjdQSOUq">pic.twitter.com/kmfjdQSOUq</a></p>&mdash; Oliver Davies (@opdavies) <a href="https://twitter.com/opdavies/status/968224364129906688?ref_src=twsrc%5Etfw">February 26, 2018</a></blockquote>
</div>
Its built with Symfony so its naturally using Twig for templating. Ive become a big fan of the utility based approach to CSS and [Tailwind CSS][1] in particular, so Im using that for all of the styling, and using [Webpack Encore][2] to compile all of the assets.
We have an integration with Meetup.com which were using to pull all of our previous event data and store them as JSON files for Symfony to parse and render, which it then uses to generate static HTML to upload onto the server.
Were in the process of populating all of the past data, but look out for a v1 launch soon. In the meantime, feel free to take a peek at our [GitHub repository][3].
{% endblock %}
[0]: https://phpsw.uk
[1]: https://tailwindcss.com
[2]: https://github.com/symfony/webpack-encore
[3]: https://github.com/phpsw/phpsw-ng