Skip to content

Commit

Permalink
test: update image
Browse files Browse the repository at this point in the history
  • Loading branch information
idabblewith committed Oct 18, 2024
1 parent 18a6cfc commit 432765b
Show file tree
Hide file tree
Showing 3 changed files with 530 additions and 389 deletions.
13 changes: 13 additions & 0 deletions config/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ def get_encoded_image():
return f"data:image/jpeg;base64,{image_encoded}"
else:
return None


# def get_encoded_ar_dbca_image():
# # Find the path to the image using Django's staticfiles finders
# image_path = os.path.join(settings.BASE_DIR, "documents", "BCSTransparent.png")
# print(f"AR DBCA IMAGE PATH: {image_path}")
# if image_path and os.path.exists(image_path):
# with open(image_path, "rb") as image_file:
# image_data = image_file.read()
# image_encoded = base64.b64encode(image_data).decode("utf-8")
# return f"data:image/png;base64,{image_encoded}"
# else:
# return None
17 changes: 11 additions & 6 deletions documents/prince_ar_document_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,10 @@ ul {
max-height: 162px;
border-radius: 8px;
overflow: hidden;
position: "relative";
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

/* .pr_img_container_rhs {
Expand Down Expand Up @@ -537,6 +540,8 @@ ul {
}

.pr_image {
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
Expand Down Expand Up @@ -772,10 +777,10 @@ ul {
/* widows: 1; */
}

.small_text {
/* .small_text {
font-size: 5px;
visibility: hidden;
}
} */

.progress_report_container p {
/* orphans: 1;
Expand All @@ -785,13 +790,13 @@ ul {
.progress_report_container {
display: flex;
flex-direction: column;
margin-top: 20px;
margin-top: 15px;
}

.progress_report_bottom_container {
/* margin-top: 8px; */
margin-top: -5px;
page-break-before: avoid;
margin-top: 7.5px;
/* page-break-before: avoid; */
}
/*
.progress_report_bottom_container_rhs {
Expand Down
Loading

0 comments on commit 432765b

Please sign in to comment.