Skip to content

Commit

Permalink
add banner for CL API announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
teovin committed Jul 24, 2024
1 parent dd67276 commit b6a007d
Show file tree
Hide file tree
Showing 6 changed files with 19 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
12 changes: 12 additions & 0 deletions web/frontend/styles/announcement_banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
body {
.announcement-banner {
background-color: $tinted-light-blue;
font-size: 14px;
padding: 10px 15px;
@include make-row();

p {
margin: 0px;
}
}
}
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
3 changes: 3 additions & 0 deletions web/main/templates/includes/announcement_banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="announcement-banner">
<p>Increased access to caselaw via CourtListener API lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. Yay!</p>
</div>

0 comments on commit b6a007d

Please sign in to comment.