From 5d51d669f123ba9fde07866d6b3a5c794dc17188 Mon Sep 17 00:00:00 2001 From: zeim839 Date: Sat, 10 Feb 2024 13:15:17 -0500 Subject: [PATCH] feat: lazy load images --- views/components/blog-grid.ejs | 2 +- views/components/footer.ejs | 27 +++++++++++++++++++-------- views/index.ejs | 22 +++++++++++----------- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/views/components/blog-grid.ejs b/views/components/blog-grid.ejs index bb3dd84..6af3f0e 100644 --- a/views/components/blog-grid.ejs +++ b/views/components/blog-grid.ejs @@ -4,7 +4,7 @@ "blog__posts-large" } %> <% if (!locals.maxItems || index < locals.maxItems) { %>
- blog preview image + blog preview image

<% if ( styleName == "blog__posts-small" && elem.title.toString().length > 20) { %> <%= elem.title.toString().substring(0, 17) + "..." %> diff --git a/views/components/footer.ejs b/views/components/footer.ejs index f2221e7..4bdcdbb 100644 --- a/views/components/footer.ejs +++ b/views/components/footer.ejs @@ -2,16 +2,27 @@
diff --git a/views/index.ejs b/views/index.ejs index 1b9e46f..7ad5530 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -15,9 +15,9 @@ content="University of Florida, UF, OSC, Open Source, Computer Science, Data Science, Programming" > + - - + @@ -71,8 +71,8 @@

Alarm Clock

- A React-Native application that allows users to configure various - punishments for not waking up and ways of detecting if a user is awake. + A React-Native application that allows users to configure various + punishments for not waking up and ways of detecting if a user is awake. Languages: JavaScript. Framework/tools: React-Native, Expo.

@@ -144,10 +144,10 @@

@@ -180,7 +180,7 @@
- free forever + free forever

Free forever

Join our club for free and enjoy a membership without any fees because we @@ -189,7 +189,7 @@
- casual commitment + casual commitment

Casual commitment

Enjoy the flexibility to come and go as you please, participate in our meetings, casual codings, and @@ -198,14 +198,14 @@
- club perks + club perks

No experience necessary

Members of all skill and experience levels are welcome. All that is needed is a willingness to learn.
- leave the club at any time + leave the club at any time

Join/leave anytime

We welcome you to be a part of our community on your own terms, regardless of busy schedules and changing commitments. @@ -276,6 +276,6 @@
<%- include('./components/footer.ejs') %> - +