Skip to content

Commit 0bf79b7

Browse files
committed
✨ Add contact page with redirect to Join Us page
- Created `contact.html` to redirect users to the Join Us page - Updated README.md with documentation for the contact page redirect - Implemented JavaScript-based seamless redirection - Included fallback content for non-JavaScript browsers
1 parent e619fa8 commit 0bf79b7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ A static website for the Computational Multiphase Physics Laboratory, built with
4747
│ ├── ISSUE_TEMPLATE # Issue templates
4848
│ └── PULL_REQUEST_TEMPLATE # PR templates
4949
├── about.md # About page content (markdown)
50+
├── contact.html # Contact page that redirects to Join Us page
5051
├── join.html # Join Us page (opportunities)
5152
├── index.html # Homepage
5253
├── Gemfile # Ruby dependencies
@@ -91,6 +92,12 @@ A static website for the Computational Multiphase Physics Laboratory, built with
9192
- Standard markdown elements (headers, lists, links) are supported
9293
- Edits automatically appear once the site is rebuilt
9394

95+
#### Contact Page Redirect
96+
- `contact.html`: Automatically redirects users to the Join Us page
97+
- Uses JavaScript's `window.location.replace()` for a seamless redirect
98+
- Includes fallback content in case JavaScript is disabled
99+
- URL structure: `/contact/` redirects to `/join`
100+
94101
#### Adding or Editing Team Members
95102
1. Open the `_team/index.md` file
96103
2. Follow this basic format for each member:

contact.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
title: Contact
4+
permalink: /contact/
5+
---
6+
7+
<script>
8+
// Immediately redirect to /join page without adding to browser history
9+
window.location.replace("/join");
10+
</script>
11+
12+
<!-- Fallback content in case JavaScript is disabled -->
13+
<div class="container" style="text-align: center; padding: 40px 0;">
14+
<h1>Contact</h1>
15+
<p>Redirecting to Join Us page...</p>
16+
<p>If you are not redirected automatically, <a href="/join">click here</a>.</p>
17+
</div>

0 commit comments

Comments
 (0)