From 8bee611bffc5a5a98dfc24f140e264037a7d0485 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Wed, 6 Dec 2017 11:59:30 +0900 Subject: [PATCH] Replace frontpage header images with text It's too much of a pain to regenerate the images when a header needs to change in some way, and having text is better for searching too. This slightly changes the strength of the headers, but mostly things look the same as before. --- media/css/text.css | 18 ++++++++++++++++++ templates/index.html | 29 ++++++++++++++++------------- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/media/css/text.css b/media/css/text.css index 129735c5..5a1f666e 100644 --- a/media/css/text.css +++ b/media/css/text.css @@ -43,6 +43,12 @@ h4 { padding-right: 4px; } +.txtHomeHeader { + color: #0094C7; + text-decoration: none; + text-transform: uppercase; +} + .txtNewsEvent { font-size: 0.9em; color: #0094C7; @@ -133,6 +139,18 @@ a:visited { color:#004E66; text-decoration: underline; } a:active { color:#0085B0; text-decoration: underline; } a:hover { color:#000000; text-decoration: underline; } +.txtHomeHeader a:link, .txtHomeHeader a:visited { + color: #0094C7; + margin: 0 auto; + text-decoration: none; +} + +.txtHomeHeader a:hover { + color: #0094C7; + margin: 0 auto; + text-decoration: underline; +} + #pgFooter a:link { color:#666; text-decoration: underline; } #pgFooter a:visited { color:#666; text-decoration: underline; } #pgFooter a:active { color:#666; text-decoration: underline; } diff --git a/templates/index.html b/templates/index.html index c105a008..0425d4c4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,7 +34,7 @@
-

Featured User

+

>  Featured User

{{quote.quote}}
{{quote.who}}, {{quote.org}}
@@ -50,7 +50,7 @@
-

Latest Releases

+

>  Latest Releases

{%for v in versions %} {{v.numtree}}.{{v.latestminor}} · {{v.reldate}} · Notes @@ -60,7 +60,7 @@
-

Shortcuts

+

>  Shortcuts

  • @@ -85,7 +85,7 @@
-

Support Us

+

>  Support Us

PostgreSQL is free. Please support our work by making a donation. @@ -95,9 +95,10 @@
- - Latest News - +

+ >  + News +

{% for n in news %}

@@ -122,9 +123,10 @@

- - Planet PostgreSQL - +

+ >  + Planet PostgreSQL +

{%for post in planet%}

@@ -171,9 +173,10 @@

- - Upcoming training - +

+ >  + TRAINING +

{%if traininginfo.id__count %} -- 2.39.5