Skip to content

Commit

Permalink
Merge pull request #2054 from teovin/banner-cl-api
Browse files Browse the repository at this point in the history
add banner for CL API announcement
  • Loading branch information
teovin authored Aug 27, 2024
2 parents 12cf0b1 + 7b710d0 commit f905612
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/frontend/pages/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@import 'footer';
@import 'mockups';
@import 'spinner';
@import 'announcement_banner';

// view semantic styles
@import 'landing';
Expand Down
18 changes: 18 additions & 0 deletions web/frontend/styles/announcement_banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
body {
.announcement-banner {
background-color: $tinted-light-blue;
font-size: 14px;
padding: 10px 15px;
@include make-row();

p {
margin: 0;
a {
color: inherit;
}
a.standout-link {
color: $light-blue;
}
}
}
}
1 change: 1 addition & 0 deletions web/frontend/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $light-orange: lighten($orange, 20%);
$yellow: #F8BA1C;
$light-yellow: lighten($yellow, 40%);
$green: #17AC10;
$tinted-light-blue: lighten($light-blue, 35%);

$highlight: #f8e71c;

Expand Down
2 changes: 1 addition & 1 deletion web/main/legal_document_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def pull(legal_doc_source, id):
name=case_name,
doc_class="Case",
citations=citations,
jurisdiction=cluster.get("court_id"),
jurisdiction=additional_metadata.get("court_id"),
effective_date=parser.parse(cluster.get("date_filed")),
publication_date=parser.parse(cluster.get("date_modified")),
updated_date=datetime.now(),
Expand Down
1 change: 1 addition & 0 deletions web/main/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<a href="#main" class="skip-link">Skip to main content</a>
<a href="#footer" class="skip-link">Skip to footer</a>
<div class="modal-overlay"></div> <!--bizarrely, something is swapping out the class overlay -> modal-overlay in the Rails app... to be investigated -->
{% include 'includes/announcement_banner.html' %}
{% block banner %}{% endblock banner %}
<header id="main-header">
{% include 'includes/header.html' %}
Expand Down
6 changes: 6 additions & 0 deletions web/main/templates/includes/announcement_banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="announcement-banner">
<p>New! H2O now has access to <b>new and up-to-date cases</b> via
<a href="https://www.courtlistener.com">CourtListener</a> and the <a href="https://case.law">Caselaw Access Project</a>.
<a class="standout-link" href="https://lil.law.harvard.edu/blog/2024/08/27/adding-fresher-caselaw-to-open-casebooks/">Click here for more info.</a>
</p>
</div>

0 comments on commit f905612

Please sign in to comment.