Skip to content

Commit

Permalink
Add alert for carousel autoplay (#269)
Browse files Browse the repository at this point in the history
Add an alert on the Portfolio and Color Picker pages informing users
that the carousel will begin to autoplay once they interact with it.
Autoplay is paused when the mouse is hovered over it or the user leaves
the browser window.
  • Loading branch information
AdamJ authored May 7, 2024
1 parent 5fc6a1f commit 8c122f4
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 40 deletions.
12 changes: 11 additions & 1 deletion docs/designs/presentations/colorPicker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,17 @@ <h1 class="display-1 fw-bold text-break">Color Picker presentation</h1>
</p></div>

<content>
<div class="container-xxl mb-2 py-2 px-md-5">
<div class="container-xxl">
<div class="row justify-content-center">
<div class="col-8">
<div class="alert alert-dismissible fade show" role="alert" style="background-color: rgba(0, 173, 239, .2); border-left: .25rem solid #00adef;">
<strong>Hello there!</strong> The carousel will automatically play after the first user interaction. Hovering over a slide will pause the auto-play of the carousel.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
</div>
<div class="container-xxl mb-2 py-2 px-md-5">
<div class="row px-3">
<div class="col-12">
<div id="carouselExample" class="carousel slide" data-bs-ride="true">
Expand Down
12 changes: 11 additions & 1 deletion docs/designs/presentations/portfolio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,17 @@ <h1 class="display-1 fw-bold text-break">Portfolio presentation</h1>
</p></div>

<content>
<div class="container-xxl mb-2 py-2 px-md-5">
<div class="container-xxl">
<div class="row justify-content-center">
<div class="col-8">
<div class="alert alert-dismissible fade show" role="alert" style="background-color: rgba(0, 173, 239, .2); border-left: .25rem solid #00adef;">
<strong>Hello there!</strong> The carousel will automatically play after the first user interaction. Hovering over a slide will pause the auto-play of the carousel.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
</div>
<div class="container-xxl mb-2 py-2 px-md-5">
<div class="row px-3">
<div class="col-12">
<div id="carouselExample" class="carousel slide" data-bs-ride="true">
Expand Down
32 changes: 16 additions & 16 deletions docs/feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,28 @@
"id": "https://www.adamjolicoeur.com/resume/",
"url": "https://www.adamjolicoeur.com/resume/",
"title": "resume",
"date_published": "2024-03-22T13:12:18Z"
"date_published": "2024-05-07T18:45:07Z"
}
,
{
"id": "https://www.adamjolicoeur.com/development/",
"url": "https://www.adamjolicoeur.com/development/",
"title": "development",
"date_published": "2024-05-07T18:45:07Z"
}
,
{
"id": "https://www.adamjolicoeur.com/designs/alm/",
"url": "https://www.adamjolicoeur.com/designs/alm/",
"title": "Application Lifecycle Management",
"date_published": "2024-05-07T18:45:07Z"
}
,
{
"id": "https://www.adamjolicoeur.com/contact/",
"url": "https://www.adamjolicoeur.com/contact/",
"title": "contact",
"date_published": "2024-01-17T15:59:50Z"
"date_published": "2024-03-27T14:55:32Z"
}
,
{
Expand Down Expand Up @@ -66,13 +80,6 @@
"date_published": "2024-01-07T19:11:34Z"
}
,
{
"id": "https://www.adamjolicoeur.com/development/",
"url": "https://www.adamjolicoeur.com/development/",
"title": "development",
"date_published": "2024-01-07T19:11:34Z"
}
,
{
"id": "https://www.adamjolicoeur.com/designs/timetrak/",
"url": "https://www.adamjolicoeur.com/designs/timetrak/",
Expand Down Expand Up @@ -101,13 +108,6 @@
"date_published": "2024-01-07T19:11:34Z"
}
,
{
"id": "https://www.adamjolicoeur.com/designs/alm/",
"url": "https://www.adamjolicoeur.com/designs/alm/",
"title": "Application Lifecycle Management",
"date_published": "2024-01-07T19:11:34Z"
}
,
{
"id": "https://www.adamjolicoeur.com/designs/",
"url": "https://www.adamjolicoeur.com/designs/",
Expand Down
24 changes: 12 additions & 12 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
<lastmod>2024-01-07T19:11:34.528Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/designs/alm/</loc>
<lastmod>2024-01-07T19:11:34.528Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/designs/customer-engagement/</loc>
<lastmod>2024-01-07T19:11:34.528Z</lastmod>
Expand All @@ -51,11 +46,6 @@
<lastmod>2024-01-07T19:11:34.528Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/development/</loc>
<lastmod>2024-01-07T19:11:34.528Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/designs/presentations/colorPicker/</loc>
<lastmod>2024-01-07T19:11:34.528Z</lastmod>
Expand Down Expand Up @@ -88,12 +78,22 @@

<url>
<loc>https://www.adamjolicoeur.com/contact/</loc>
<lastmod>2024-01-17T15:59:50.348Z</lastmod>
<lastmod>2024-03-27T14:55:32.486Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/designs/alm/</loc>
<lastmod>2024-05-07T18:45:07.651Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/development/</loc>
<lastmod>2024-05-07T18:45:07.653Z</lastmod>
</url>

<url>
<loc>https://www.adamjolicoeur.com/resume/</loc>
<lastmod>2024-03-22T13:12:18.550Z</lastmod>
<lastmod>2024-05-07T18:45:07.654Z</lastmod>
</url>

</urlset>
20 changes: 10 additions & 10 deletions social/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"imgName":"designs"
},

{
"title":"Application Lifecycle Management",
"imgName":"application-lifecycle-management"
},

{
"title":"Customer Engagement App",
"imgName":"customer-engagement-app"
Expand All @@ -49,11 +44,6 @@
"imgName":"timetrak-by-switchback"
},

{
"title":"development",
"imgName":"development"
},

{
"title":"Color Picker presentation",
"imgName":"color-picker-presentation"
Expand Down Expand Up @@ -89,6 +79,16 @@
"imgName":"contact"
},

{
"title":"Application Lifecycle Management",
"imgName":"application-lifecycle-management"
},

{
"title":"development",
"imgName":"development"
},

{
"title":"resume",
"imgName":"resume"
Expand Down
10 changes: 10 additions & 0 deletions src/pages/presentations/colorPicker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ eleventyNavigation:
order: 2
---

<div class="container-xxl">
<div class="row justify-content-center">
<div class="col-8">
<div class="alert alert-dismissible fade show" role="alert" style="background-color: rgba(0, 173, 239, .2); border-left: .25rem solid #00adef;">
<strong>Hello there!</strong> The carousel will automatically play after the first user interaction. Hovering over a slide will pause the auto-play of the carousel.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
</div>
<div class="container-xxl mb-2 py-2 px-md-5">
<div class="row px-3">
<div class="col-12">
Expand Down
10 changes: 10 additions & 0 deletions src/pages/presentations/portfolio/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ eleventyNavigation:
order: 1
---

<div class="container-xxl">
<div class="row justify-content-center">
<div class="col-8">
<div class="alert alert-dismissible fade show" role="alert" style="background-color: rgba(0, 173, 239, .2); border-left: .25rem solid #00adef;">
<strong>Hello there!</strong> The carousel will automatically play after the first user interaction. Hovering over a slide will pause the auto-play of the carousel.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
</div>
<div class="container-xxl mb-2 py-2 px-md-5">
<div class="row px-3">
<div class="col-12">
Expand Down

0 comments on commit 8c122f4

Please sign in to comment.