Skip to content

Commit f5f9738

Browse files
committed
Add styling
1 parent 4f21d3a commit f5f9738

10 files changed

Lines changed: 53 additions & 18 deletions

File tree

AsyncInn.Web/Views/Home/About.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@{
22
ViewData["Title"] = "About";
3+
Layout = "_Layout";
34
}
45
<h1>@ViewData["Title"]</h1>
56

AsyncInn.Web/Views/Home/Index.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@{
22
ViewData["Title"] = "Home Page";
3+
Layout = "_Layout";
34
}
45

56
<div class="text-center">
6-
<h1 class="display-4">Async Inn</h1>
7+
<h1>Async Inn</h1>
78
</div>
89
<body class="home">
910
<div>

AsyncInn.Web/Views/Hotels/Create.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@{
44
ViewData["Title"] = "Create";
5+
Layout = "_Layout";
56
}
67

78
<h1>Create</h1>

AsyncInn.Web/Views/Hotels/Delete.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@{
44
ViewData["Title"] = "Delete";
5+
Layout = "_Layout";
56
}
67

78
<h1>Delete</h1>

AsyncInn.Web/Views/Hotels/Details.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@{
44
ViewData["Title"] = "Detail";
5+
Layout = "_Layout";
56
}
67

78
<h1>Detail</h1>

AsyncInn.Web/Views/Hotels/Edit.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@{
44
ViewData["Title"] = "Update";
5+
Layout = "_Layout";
56
}
67

78
<h1>Update</h1>

AsyncInn.Web/Views/Hotels/Index.cshtml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@{
44
ViewData["Title"] = "Index";
5+
Layout = "_Layout";
56
}
67

78
<h1>Welcome to Async Inn</h1>
@@ -55,10 +56,18 @@
5556
@Html.DisplayFor(modelItem => item.Country)
5657
</td>
5758
<td>
58-
@Html.ActionLink("Edit", "Edit", new { item.Id }) |
59-
@Html.ActionLink("Details", "Details", new { item.Id }) |
60-
@Html.ActionLink("Delete", "Delete", new { item.Id })
61-
</td>
59+
<button class="btn btn-primary far fa-edit">
60+
@Html.ActionLink("Edit", "Edit", new { item.Id })
61+
</button>
62+
|
63+
<button class="btn btn-primary fas fa-info">
64+
@Html.ActionLink("Details", "Details", new { item.Id })
65+
</button>
66+
|
67+
<button class="btn btn-primary far fa-trash-alt">
68+
@Html.ActionLink("Delete", "Delete", new { item.Id })
69+
</button>
70+
</td>
6271
</tr>
6372
}
6473
</tbody>

AsyncInn.Web/Views/Shared/_Layout.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<title>@ViewData["Title"] - Async Inn</title>
77
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
88
<link rel="stylesheet" href="~/css/site.css" />
9+
<link href="https://fonts.googleapis.com/css2?family=Alice&display=swap" rel="stylesheet">
10+
<script src="https://kit.fontawesome.com/988c5e7e3e.js" crossorigin="anonymous"></script>
11+
912
</head>
1013
<body>
1114
<header>

AsyncInn.Web/Views/_ViewStart.cshtml

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

AsyncInn.Web/wwwroot/css/site.css

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ a.navbar-brand {
99

1010
/* Provide sufficient contrast against white background */
1111
a {
12-
color: #0366d6;
12+
color: #011c3d;
1313
}
1414

1515
.btn-primary {
16-
color: #fff;
17-
background-color: #1b6ec2;
18-
border-color: #1861ac;
16+
color: #fff;
17+
background-color: #ffdbe0;
18+
border-color: #ffccd4;
1919
}
2020

2121
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
22-
color: #fff;
23-
background-color: #1b6ec2;
24-
border-color: #1861ac;
22+
color: #fff;
23+
background-color: #ffccd4;
24+
border-color: #ffb6c1;
2525
}
2626

2727
/* Sticky footer styles
@@ -59,8 +59,12 @@ html {
5959
}
6060

6161
body {
62-
/* Margin bottom by footer height */
63-
margin-bottom: 60px;
62+
/* Margin bottom by footer height */
63+
margin-bottom: 60px;
64+
text-align: center;
65+
min-width: 900px;
66+
/*Hello*/
67+
6468
}
6569
.footer {
6670
position: absolute;
@@ -74,5 +78,21 @@ body {
7478
.card {
7579
padding: 10px 10px 10px 10px;
7680
box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
77-
width:auto;
81+
width: auto;
82+
background-color: #d3d3d3;
83+
}
84+
85+
86+
87+
/*Font Awesome Icons*/
88+
89+
.fa-edit {
90+
color: black
91+
}
92+
93+
.fa-info {
94+
color: black
95+
}
96+
.fa-trash-alt {
97+
color: black
7898
}

0 commit comments

Comments
 (0)