3
0
mirror of https://git.coop/cotech/website.git synced 2025-12-17 18:17:32 +00:00
Commit Graph

66 Commits

Author SHA1 Message Date
ced5d2ad0e Refactor hero into grid-uneven and large-only classes
This makes it possible to reuse this CSS for the about page layout.
2025-12-16 15:48:34 +00:00
2e864a9d79 Make link styles in grid of co-op images more specific
So that they don't target other links, such as buttons, that appear
inside the grid.
2025-12-16 15:48:34 +00:00
bb785c79ed Style the co-op pages to match the designs
I've decided to style these pages to look like "modals" for now, but I
haven't implemented them as such yet. I think we might be able to add
some progressive enhancement to retain the scroll position when a
co-op logo is clicked to make it feel more like a separate modal
dialog is opening.
2025-12-16 15:48:34 +00:00
f8d28d8aa3 Apply decoration to homepage hero section 2025-12-16 15:48:34 +00:00
d329b6e51f Tweak header styles to match new designs 2025-12-16 15:48:34 +00:00
fedff4f6b8 Apply maximum size to sections 2025-12-16 15:48:33 +00:00
d0fb47a3f2 Wrap buttons in a switcher layout 2025-12-16 15:48:33 +00:00
c2235a7c8b Footer styling 2025-12-16 15:48:33 +00:00
43f0e729a1 Add image to homepage 2025-12-16 15:48:33 +00:00
4648499813 Display co-op logos and services in a grid 2025-12-16 15:48:33 +00:00
702d42f892 Align cotents of box 2025-12-16 15:48:33 +00:00
2560dafcae Prevent img from stretching 2025-12-16 15:48:33 +00:00
2ac1bd8bd7 Style the buttons 2025-12-16 15:48:33 +00:00
7b8f5c9870 Introduce stack to add consistent vertical spacing
The default value of `--space` here is 1.4rem, to match the
default paragraph spacing.
2025-12-16 15:48:33 +00:00
72feafaf49 Wrap logos and services in a box 2025-12-16 15:48:32 +00:00
53cfa918c4 Add blue border to headings 2025-12-16 15:48:32 +00:00
1c3816dd51 Add padding to <section> 2025-12-16 15:48:32 +00:00
631c9a4fe6 Typography defaults
I've translated the two font sizes shown in Figma[1] to a responsive
scale using an online tool[2].

I've chosen a 70ch base measure as this seems to fit the designs based
on eyeballing them.

[1] https://www.figma.com/design/J0usguWJyGJSAqWSoozGos/Cotech--External-?node-id=2073-3627&t=H31i8C467gbX3TAJ-4
[2] https://websemantics.uk/tools/responsive-font-calculator/
2025-12-16 15:48:32 +00:00
940b138b46 Strip out unwanted CSS
I think it's probably easier to start from a cleaner slate for this
redesign, rather than try to incrementally refactor towards the new
design. Some of the base styles are fine and I've retained some of the
CSS variables. I've also kept the header as it probably will be useful
to refactor rather than completely re-do this.
2025-12-16 15:48:32 +00:00
c00d8889a2 Simplify co-op page markup
Now we no longer have two columns of content.
2025-12-16 15:48:32 +00:00
538ae9d146 Edit app.css 2025-07-02 14:38:12 +00:00
1ded938459 Edit app.css - added more padding to p on coop pages 2025-07-01 10:56:33 +00:00
3c45d2cfdc Added a padding to description text on coop pages 2025-07-01 10:52:25 +00:00
f2fea22233 Improve look of co-op logos
Before this commit the logos were a fairly garish mixture of different
colours, and many of the logos didn't work very well on a white
background.

In keeping with the new brand guidelines we've applied a greyscale
filter to the logos, and Natasha has created some variants of the
existing logos that work better on a black background. I've decided to
keep all the original logos and their variants in case we want to
switch again later, and chosen which one to used based on my taste.

This seems to improve things and we can ask co-ops to provide us with
higher res logos that work on black backgrounds later if we want to
improve things further.

Co-authored-by: Natasha Natarajan <natasha@outlandish.com>
2025-06-30 21:05:48 +01:00
7253e408cb Apply brand guidelines to site
Creative Co-op have recently prepared some brand guidelines for
CoTech, including a new logo, typography suggestions and background
images. This commit restyles the site to apply, as best we can, these
guidelines. It's hard to split this into smaller commits because the
decision to use a black background colour means many things have to
change.

Notably we've removed the "about/join" footer, as it was hard to
choose a bg colour and without one it became more apparent that this
footer was more in the way than useful.

Co-authored-by: Natasha Natarajan <natasha@outlandish.com>
2025-06-30 21:05:47 +01:00
877836953a Implement burger menu
Rather than attempt to recreate the exact burger menu from the old
version of the site, since it requires a number of dependencies, I've
added a burger menu with some inline javascript to handle the toggle
states.

I used Claude 4 to help generate the CSS here.
2025-06-25 21:52:48 +01:00
b9d79dd8f8 Make section.content 100% wide
To work on mobile
2025-06-25 21:52:25 +01:00
06c0d8f45f Style service/technology pages 2025-06-25 21:34:58 +01:00
97e868dc91 Make .two-column a single column on mobile 2025-06-25 21:26:20 +01:00
fea43c6370 Layout improvements on mobile
I've hidden the metadata and reduced some whitespace to make things
look a little better on small screens.
2025-06-25 21:23:29 +01:00
fa70991744 Style about and join pages 2025-06-25 21:09:14 +01:00
5268bcd3b3 Extract some colour variables 2025-06-25 20:41:36 +01:00
0916048bc3 Style co-op pages 2025-06-20 16:33:36 +01:00
b3371aa8c9 Style footer 2025-06-20 16:07:07 +01:00
8514b203d1 Style the "get in touch" slice 2025-06-20 15:57:43 +01:00
a39fcae98b Style members area 2025-06-20 15:51:36 +01:00
33db3c91c7 Style metadata slice 2025-06-20 15:15:59 +01:00
c320a15887 Extract some colour variables 2025-06-20 14:59:11 +01:00
78f236203c Extract spacing variables
A scale taken from https://medium.com/codyhouse/create-your-design-system-part-4-spacing-895c9213e2b9
2025-06-20 14:51:49 +01:00
b4faded4b3 Style homepage hero 2025-06-20 14:49:45 +01:00
1e60c58a6e Style the header 2025-06-20 14:43:49 +01:00
20795aebf2 Add reset stylesheet
Taken from https://www.joshwcomeau.com/css/custom-csss-reset/
2025-06-20 14:43:49 +01:00
01c626751a Apply basic typography
As used in the original design.
2025-06-20 14:43:49 +01:00
3517d04637 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.
2025-06-20 14:07:32 +01:00
b8127bffd3 Remove maps from the site
I've also removed as much related code as I can find.
2025-06-20 13:13:55 +01:00
b51f670b33 Fix Grid/Map tab titles layout overspill
I think having the seperator is not properly supported by the
foundation CSS. I was a bit confused with app.css as some seems to
be vendor CSS and some custom CSS, so I left the original padding
rule, and added an override in what seems more like a "custom CSS"
section...

I don't know why they didn't all just float nicely
together in the first place though :/
2020-08-20 12:12:16 +02:00
fc4263820b hyperlink colour made consistent 2020-04-05 10:33:21 +01:00
ca917656fa Hyperlink underline in light gray 2020-04-05 10:27:05 +01:00
3fccfb7abc Underline hyperlinks with a solid line on hover 2020-04-05 10:25:18 +01:00
cb6d7f2f47 test adding indication of hyperlinks 2020-04-05 10:21:34 +01:00