Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
PScottZero committed Sep 18, 2024
1 parent 7bbdfdf commit 91cef20
Show file tree
Hide file tree
Showing 14 changed files with 787 additions and 338 deletions.
8 changes: 4 additions & 4 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
:root {
/* colors */
--primary-color: #00a2a2;
--primary-color: #26768b;
--font-color: white;
--link-color: #00ffff;
--background-color: #283139;
--card-label-color: #00a2a2cc;
--link-color: #46daff;
--background-color: #0e2f37;
--card-label-color: #26768bcc;
--shadow-color: #00000055;

/* card heights */
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function Home() {
<a href="mailto:[email protected]">[email protected]</a> or call
at (215) 880-9592
<br />
Updated August 12<sup>th</sup>, 2024
Updated September 18<sup>th</sup>, 2024
</footer>
</main>
);
Expand Down
7 changes: 4 additions & 3 deletions clean_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public_dir = "public"
public_backup_dir = "public_backup"
content_json = open(f"{public_dir}/content.json").read()
unused_whitelist = [
whitelist = [
"banner.jpg",
"profile.jpg",
"favicon.svg",
Expand Down Expand Up @@ -40,7 +40,7 @@ def remove_unused_images(images):
unused_images = []
for image in images:
basename = os.path.basename(image)
if basename not in content_json and basename not in unused_whitelist:
if basename not in content_json and basename not in whitelist:
unused_images.append(image)
os.remove(image)
print(f"- Removed: {image}")
Expand Down Expand Up @@ -115,7 +115,8 @@ def compress_image(image):
def compress_large_images(images):
print("Compressing Large Images...")
for image in images:
if not image.endswith(".svg"):
basename = os.path.basename(image)
if not image.endswith(".svg") and basename not in whitelist:
image_size = os.path.getsize(image)
if image_size > max_image_size:
new_image_size, resize_factor, quality = compress_image(image)
Expand Down
Loading

0 comments on commit 91cef20

Please sign in to comment.