Skip to content

Commit 5a0ab30

Browse files
committed
add html files
1 parent d62073e commit 5a0ab30

30 files changed

Lines changed: 747 additions & 0 deletions

api_setting.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
customer_directory="/home/cloudshell-user/cs-cloud-2024/s3_customer"
4+
employee_directory="/home/cloudshell-user/cs-cloud-2024/s3_employee"
5+
6+
echo "Enter the API URL of customer: "
7+
read customer_api
8+
9+
cd "$customer_directory"
10+
11+
for file in *.html; do
12+
backup_file="${file}.backup"
13+
if [ -f "$backup_file" ]; then
14+
cp "$backup_file" "$file"
15+
fi
16+
cp "$file" "$backup_file"
17+
sed -i "s|YOUR_API_URL|$customer_api|g" "$file"
18+
done
19+
20+
echo "Enter the API URL of employee: "
21+
read employee_api
22+
23+
cd "$employee_directory"
24+
25+
for file in *.html; do
26+
backup_file="${file}.backup"
27+
if [ -f "$backup_file" ]; then
28+
cp "$backup_file" "$file"
29+
fi
30+
cp "$file" "$backup_file"
31+
sed -i "s|YOUR_API_URL|$employee_api|g" "$file"
32+
done

s3_customer/404.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="stylesheet" href="bootstrap.min.css" />
6+
<link rel="stylesheet" href="base.css" />
7+
<link rel="icon" href="favicon.ico" type="image/x-icon" />
8+
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
9+
<script src="jquery-3.6.0.min.js"></script>
10+
<script src="bootstrap.min.js"></script>
11+
<title>Coffee suppliers</title>
12+
<script>
13+
$(document).ready(function () {
14+
$("#nav").load("nav.html");
15+
});
16+
</script>
17+
</head>
18+
<body>
19+
<div class="container">
20+
<div id="nav"></div>
21+
<div class="jumbotron">
22+
<h1 class="display-4">404 🗺️</h1>
23+
<p class="lead">Sorry, we don't seem to have that page in stock</p>
24+
<hr class="my-4" />
25+
<p class="lead">
26+
<a class="btn btn-primary btn-lg" href="/" role="button">Return to home page</a>
27+
</p>
28+
</div>
29+
</div>
30+
</body>
31+
</html>

s3_customer/500.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="stylesheet" href="bootstrap.min.css" />
6+
<link rel="stylesheet" href="base.css" />
7+
<link rel="icon" href="favicon.ico" type="image/x-icon" />
8+
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
9+
<script src="jquery-3.6.0.min.js"></script>
10+
<script src="bootstrap.min.js"></script>
11+
<title>Coffee suppliers</title>
12+
<script>
13+
$(document).ready(function () {
14+
$("#nav").load("nav.html");
15+
});
16+
</script>
17+
</head>
18+
<body>
19+
<div class="container">
20+
<div id="nav"></div>
21+
<div class="jumbotron">
22+
<h1 class="display-4">There was an error 🙃</h1>
23+
<p class="lead">Sorry, there was a problem with your request</p>
24+
{{#message}}
25+
<div class="alert alert-danger" role="alert">{{.}}</div>
26+
{{/message}}
27+
<hr class="my-4" />
28+
<p class="lead">
29+
<a class="btn btn-primary btn-lg" href="/" role="button">Return to home page</a>
30+
</p>
31+
</div>
32+
</div>
33+
</body>
34+
</html>

s3_customer/base.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.page-title{
2+
padding-left: 20px;
3+
font-size: 4em;
4+
}
5+
.bottom-layout {
6+
width : 100%;
7+
height : 50%;
8+
}
9+
.bottom-content-layout{
10+
margin : 20px;
11+
}

s3_customer/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

s3_customer/bootstrap.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

s3_customer/bootstrap.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

s3_customer/bootstrap.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

s3_customer/espresso.jpg

50.6 KB
Loading

s3_customer/favicon.ico

1.37 KB
Binary file not shown.

0 commit comments

Comments
 (0)