Skip to content

Commit cbcd970

Browse files
committed
Update DAY 13 templates
1 parent 7bb7ec3 commit cbcd970

File tree

10 files changed

+193
-233
lines changed

10 files changed

+193
-233
lines changed

Assignment 2/DAY 13 template/add-failed.html

Lines changed: 0 additions & 22 deletions
This file was deleted.

Assignment 2/DAY 13 template/home.html

Lines changed: 0 additions & 45 deletions
This file was deleted.

Assignment 2/DAY 13 template/read.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

Assignment 2/DAY 13 template/remote.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

Assignment 2/DAY 13 template/scrapper.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

Assignment 2/DAY 13 template/sof.py

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link href="https://andybrewer.github.io/mvp/mvp.css" rel="stylesheet"></link>
7+
<title>Remote Jobs</title>
8+
</head>
9+
<body>
10+
<header>
11+
<h2>Remote Jobs</h2>
12+
{% if error_code == 0 %}
13+
<h4>Not found. You searched: </h4>
14+
<h3>{{error_word}}</h3>
15+
<h4>Typo?</h4>
16+
<h5><a href="/">← Go back</a></h5>
17+
{% elif error_code == 1 %}
18+
<h4>Search first!</h4>
19+
<h5><a href="/">← Go back</a></h5>
20+
{% endif %}
21+
</header>
22+
</body>
23+
</html>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link href="https://andybrewer.github.io/mvp/mvp.css" rel="stylesheet"></link>
7+
<title>Remote Jobs</title>
8+
</head>
9+
<body>
10+
<header>
11+
<h2>Remote Jobs</h2>
12+
</header>
13+
<main>
14+
<form action="/search">
15+
<h4>Search by term:</h4>
16+
<input placeholder="i.e. python" required name="term"/>
17+
<button>Find my job</button>
18+
</form>
19+
</main>
20+
</body>
21+
</html>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link href="https://andybrewer.github.io/mvp/mvp.css" rel="stylesheet"></link>
7+
<title>Remote Jobs</title>
8+
</head>
9+
<body>
10+
<header>
11+
<h2>Remote Jobs</h2>
12+
<h3>{{quantities}} {{keyword}} jobs found.</h3>
13+
<h4><a href="/download?keyword={{keyword}}">Export to CSV</a></h4>
14+
<h5><a href="/">← Go back</a></h5>
15+
</header>
16+
<main>
17+
{% for job in jobs %}
18+
<h3>{{job.get("title")}}</h3>
19+
<h4>{{job.get("location")}}</h4>
20+
<h4><a href="{{job.get("url")}}" target="_blank">Apply</a></h3>
21+
<hr>
22+
{% endfor %}
23+
</main>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)