mirror of
https://git.coop/cotech/website.git
synced 2025-07-16 18:20:54 +00:00
Strip out CSS, JS and extra markup
The site had around 7000 lines of CSS and 23,000 lines of JS. It also used a framework called "Zurb" to build the layout. We're planning to rebrand the website and to make that work easier I think it would help me (and hopefully those that come after me) to strip out all of these technologies and recreate the site with a simple stylesheet. By doing so I think we lose a couple of features, such as the zooming hover states on the grids of images. Some features, like the "sticky" header are probably better implemented nowadays in pure CSS. Given that the site is maintained by volunteers I think the simpler we can make it the better.
This commit is contained in:
@ -1,51 +1,30 @@
|
||||
---
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
{% include head.html %}
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
<body>
|
||||
{% include header.html %}
|
||||
|
||||
{% include header.html %}
|
||||
<section>
|
||||
<h1>Coops that offer <span>{{ page.name }}</span></h1>
|
||||
{% if page.description %}
|
||||
<p>{{ page.description }}</p>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
<div class="service">
|
||||
|
||||
<div id="page-banner">
|
||||
<div class="row">
|
||||
<div class="small-12 small-centered columns">
|
||||
<h1>Coops that offer <span>{{ page.name }}</span></h1>
|
||||
{% if page.description %}
|
||||
<p>{{ page.description }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<section>
|
||||
{% for coop in site.coops %}
|
||||
{% if coop.services contains page.slug %}
|
||||
<div>
|
||||
<a href="{{ coop.url | relative_url }}" class="coop-thumb" id="#{{ coop.slug }}">
|
||||
<img src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 columns">
|
||||
|
||||
<div id="grid">
|
||||
<div class="row small-up-2 medium-up-4 large-up-6 small-collapse">
|
||||
{% for coop in site.coops %}
|
||||
{% if coop.services contains page.slug %}
|
||||
<div class="column">
|
||||
<a href="{{ coop.url | relative_url }}" class="coop-thumb" id="#{{ coop.slug }}">
|
||||
<img src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
{% include javascripts.html %}
|
||||
</body>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user