Skip to content

Commit

Permalink
title page fn
Browse files Browse the repository at this point in the history
  • Loading branch information
YueSteveYin committed Jul 4, 2024
1 parent 31f1b1e commit f6f6702
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 27 deletions.
Binary file modified assets/img/background/titlebackground.webp
Binary file not shown.
Binary file removed assets/img/logos/titlebackground.png
Binary file not shown.
33 changes: 7 additions & 26 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,16 @@
{{ define "main" }}
{{ $wellClass := `mx-auto max-w-screen-md` }}
<section class="p-8" style = "background-image: url(img/logos/amplify-logo.png); background-size: cover; background-position: center;">
<h1>
<span class="sr-only">
{{ .Title }}
</span>
{{ $img := resources.Get `img/logos/amplify-logo.png` }}
{{ $imgSmall := $img.Resize "650x" }}
{{ $imgMedium := $img.Resize "1300x" }}
<img
title="{{ $.Title }}"
class="mx-auto h-auto w-[650px] max-w-full"
alt="Amplify Colorado logo"
width="{{ $imgSmall.Width }}"
height="{{ $imgSmall.Height }}"
src="{{ $imgSmall.RelPermalink }}"
srcset="
{{ $imgSmall.RelPermalink }} 450w,
{{ $imgMedium.RelPermalink }} 900w
"
/>
{{ $bgImage := resources.Get `img/background/titlebackground.webp` }}
<section class="p-8" style="background-image: url('{{ $bgImage.RelPermalink }}'); background-size: cover; background-position: center;">
<h1 class = "font-extrabold text-4xl bold text-center font-snas text-white">
HIDDEN FIGGURE
</h1>
<h2
class="links-blue-darker text-center font-sans text-xl leading-tight text-gray md:text-2xl"
class="links-blue-darker text-center font-sans text-xl leading-tight text-white md:text-2xl"
>
A public service by
<a class="font-bold" href="https://colabnews.co">
{{- "Colorado News Collaborative" -}}
</a>
Recognize the scientists contribute to the astronomy
</h2>
<div class="content-area mx-auto mt-8 max-w-prose">
<div class="content-area mx-auto mt-8 max-w-prose text-white">
{{ .Content }}
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
<h2 class="text-g-9">
<label class="text-2xl font-bold leading-tight text-black" for="search">
Search for a community member or journalist
Search for a scientists
</label>
</h2>
<div class="relative mt-4">
Expand Down

0 comments on commit f6f6702

Please sign in to comment.