Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add banner for CL API announcement #2054

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading