Skip to content

Commit 084195e

Browse files
committed
first commit
0 parents  commit 084195e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2477
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v4
29+
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: '.'
34+
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# UC ERIC Lab Website
2+
3+
This is the official website for the UC ERIC Lab (Embodied and Responsible Interaction and Communication) at UCSC/UCSB.
4+
5+
## GitHub Pages Deployment
6+
7+
This website is now configured for automatic deployment to GitHub Pages using static HTML files.
8+
9+
### Quick Start
10+
11+
1. **Fork or clone this repository**
12+
```bash
13+
git clone https://github.com/your-username/eric-lab-website.git
14+
cd eric-lab-website
15+
```
16+
17+
2. **Enable GitHub Pages**
18+
- Go to your repository settings
19+
- Navigate to "Pages" in the sidebar
20+
- Under "Source", select "GitHub Actions"
21+
- The site will automatically deploy when you push to the main branch
22+
23+
3. **Your site will be available at:**
24+
```
25+
https://your-username.github.io/eric-lab-website
26+
```
27+
28+
### File Structure
29+
30+
```
31+
├── index.html # Home page (converted from Flask template)
32+
├── people.html # People page
33+
├── publications.html # Publications page
34+
├── sponsors.html # Sponsors page
35+
├── contact.html # Contact page
36+
├── static/ # CSS, JS, and images
37+
│ ├── css/
38+
│ ├── js/
39+
│ └── image/
40+
└── .github/workflows/ # GitHub Actions for deployment
41+
└── deploy.yml
42+
```
43+
44+
### Local Development
45+
46+
To test the site locally:
47+
48+
```bash
49+
# Start a local web server
50+
python3 -m http.server 8000
51+
52+
# Open your browser and go to:
53+
# http://localhost:8000
54+
```
55+
56+
### Making Updates
57+
58+
1. Edit the HTML files directly or modify the content
59+
2. Test locally using the web server
60+
3. Commit and push your changes:
61+
```bash
62+
git add .
63+
git commit -m "Update website content"
64+
git push origin main
65+
```
66+
4. GitHub Actions will automatically deploy your changes
67+
68+
### Migration from Flask
69+
70+
This site was originally a Flask application but has been converted to static HTML files for GitHub Pages deployment. The original Flask files are preserved in the repository but are excluded from deployment via `.gitignore`.
71+
72+
### Original Flask Version
73+
74+
For reference, the original Flask application files are still included:
75+
- `init.py` - Flask application with routing
76+
- `db.py` - Database functions
77+
- `app.wsgi` - WSGI configuration
78+
- `requirements.txt` - Python dependencies
79+
- `templates/` - Original Flask templates
80+
81+
These files are not used in the GitHub Pages deployment but are kept for historical reference.
82+
83+
## Contact
84+
85+
For questions about this website, please contact the ERIC Lab team or visit our [contact page](contact.html).

contact.html

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<title>UC ERIC Lab</title>
8+
9+
10+
<link rel="stylesheet" href="static/css/bootstrap.min.css">
11+
<link rel="stylesheet" href="static/css/fonts.css">
12+
<link rel="stylesheet" href="static/css/custom.css">
13+
</head>
14+
15+
<body>
16+
<nav class="navbar navbar-expand-lg navbar-dark navbar-custom fixed-top">
17+
<div class="container">
18+
<a class="navbar-brand" href="index.html"><b>UC ERIC Lab</b></a>
19+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#content" aria-controls="navbarsExample07" aria-expanded="false" aria-label="Toggle navigation">
20+
<span class="navbar-toggler-icon"></span>
21+
</button>
22+
23+
<div class="collapse navbar-collapse" id="content">
24+
<ul class="navbar-nav ml-auto">
25+
<li class="nav-item">
26+
<a class="nav-link" href="index.html"><b>Home</b></a>
27+
</li>
28+
<li class="nav-item">
29+
<a class="nav-link" href="people.html">People</a>
30+
</li>
31+
<li class="nav-item">
32+
<a class="nav-link" href="publications.html">Publications</a>
33+
</li>
34+
<li class="nav-item">
35+
<a class="nav-link" href="https://github.com/eric-ai-lab">Github</a>
36+
</li>
37+
<li class="nav-item">
38+
<a class="nav-link" href="sponsors.html">Sponsors</a>
39+
</li>
40+
<li class="nav-item">
41+
<a class="nav-link" href="https://eric-xw.github.io/hiring.html" target="_blank">Join Us</a>
42+
</li>
43+
<li class="nav-item active">
44+
<a class="nav-link" href="contact.html">Contact</a>
45+
</li>
46+
<!-- update the ACLtool link when deploying -->
47+
<!-- <li class="nav-item">
48+
<a class="nav-link" href="{{ url_for('ACLtool') }}">ACL Tool</a>
49+
</li> -->
50+
</ul>
51+
</div>
52+
</div>
53+
</nav>
54+
55+
<br/>
56+
<br/>
57+
58+
59+
<div class="container" align="justify">
60+
61+
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 thumb">
62+
<h4>Address</h4>
63+
64+
<p>
65+
1156 High Street<br>
66+
Engineering 2 Room 482<br>
67+
Santa Cruz, CA 95064
68+
</p>
69+
70+
<h4>Xin's address</h4>
71+
<p>
72+
1156 High Street<br>
73+
Engineering 2 Room 343A<br>
74+
Santa Cruz, CA 95064
75+
</p>
76+
77+
<a href="mailto:xwang366@ucsc.edu">Email</a>
78+
79+
80+
</div>
81+
</div>
82+
83+
84+
85+
<br>
86+
87+
<hr>
88+
89+
<div class="container footer">
90+
<div class="row">
91+
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 thumb">
92+
<p>
93+
UC Santa Cruz,<br>
94+
1156 High Street, <br>
95+
Santa Cruz, CA, <br>
96+
95064<br>
97+
</p>
98+
</div>
99+
</div>
100+
</div>
101+
</body>
102+
103+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
104+
<script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
105+
<script src="static/js/popper.min.js"></script>
106+
<script src="static/js/bootstrap.min.js"></script>
107+
</html>

0 commit comments

Comments
 (0)