Skip to content

Commit

Permalink
Fix images not loading bug when uploaded to host server
Browse files Browse the repository at this point in the history
  • Loading branch information
IDIliev18 committed Jan 9, 2021
1 parent 1dd8945 commit 14a499b
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 21 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ app.use(bodyParser.urlencoded({ extended: true }));

app.use(express.static("./public"));
app.use(express.static("./out"));
app.use(express.static("./docs"));

app.get("/", function (req, res) {
res.sendFile(__dirname + "/public/index.html");
Expand Down
23 changes: 13 additions & 10 deletions public/aboutTeam.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>
</head>

<body style= "background-image:url(../docs/bgaboutTeam.png); background-size:cover;">
<body style= "background-image:url(img/bgaboutTeam.png); background-size:cover;">
<nav class="navbar navbar-expand-sm bg-light navbar-light">
<!-- Brand -->
<a href="/"
Expand Down Expand Up @@ -149,12 +149,12 @@ <h1 class="font-weight-bold font-italic text-black-120">Meet the Team</h1>
</div>
</header>
<!-- Page Content -->
<div class="container">
<div class="container mb-5">
<div class="row">
<!-- Team Member 1 -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-0 shadow">
<img src="..\docs\Ivelin.jpg" class="card-img-top" alt="...">
<img src="img/Ivelin.jpg" class="card-img-top" alt="...">
<div class="card-body text-center">
<h5 class="card-title mb-2"><a href="https://github.com/IPBachvarov18" target="blank">Ivelin Bachvarov</h5></a>
<div class="card-text text-black-90">SCRUM Master</div>
Expand All @@ -164,7 +164,7 @@ <h5 class="card-title mb-2"><a href="https://github.com/IPBachvarov18" target="b
<!-- Team Member 2 -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-0 shadow">
<img src="..\docs\Iliyan.png" class="card-img-top" alt="...">
<img src="img/Iliyan.png" class="card-img-top" alt="...">
<div class="card-body text-center">
<h5 class="card-title mb-2"><a href="https://github.com/IDIliev18 "target="blank">Iliyan Iliev</h5></a>
<div class="card-text text-black-90">Back-end Developer</div>
Expand All @@ -174,7 +174,7 @@ <h5 class="card-title mb-2"><a href="https://github.com/IDIliev18 "target="blank
<!-- Team Member 3 -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-0 shadow">
<img src="..\docs\Mario.png" class="card-img-top" alt="...">
<img src="img/Mario.png" class="card-img-top" alt="...">
<div class="card-body text-center">
<h5 class="card-title mb-2"><a href="https://github.com/MNSlavov18" target="blank">Mario Slavov</h5></a>
<div class="card-text text-black-90">Documentation / Front-end Developer</div>
Expand All @@ -184,7 +184,7 @@ <h5 class="card-title mb-2"><a href="https://github.com/MNSlavov18" target="blan
<!-- Team Member 4 -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-0 shadow">
<img src="..\docs\Stoyan.png" class="card-img-top" alt="...">
<img src="img/Stoyan.png" class="card-img-top" alt="...">
<div class="card-body text-center">
<h5 class="card-title mb-2"><a href="https://github.com/snkolev18 "target="blank">Stoyan Kolev</h5></a>
<div class="card-text text-black-90">QA Engineer</div>
Expand All @@ -194,7 +194,7 @@ <h5 class="card-title mb-2"><a href="https://github.com/snkolev18 "target="blank
<!-- Team Member 5 -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-0 shadow">
<img src="..\docs\Georgi.png" class="card-img-top" alt="...">
<img src="img/Georgi.png" class="card-img-top" alt="...">
<div class="card-body text-center">
<h5 class="card-title mb-2"><a href="https://github.com/gkgeorgiev18 "target="blank"> Georgi Georgiev</h5></a>
<div class="card-text text-black-90">Code Checker / Front-end Developer</div>
Expand All @@ -205,18 +205,21 @@ <h5 class="card-title mb-2"><a href="https://github.com/gkgeorgiev18 "target="bl
<!-- Team Member 6 -->
<div class="col-xl-4 col-md-6 mb-4">
<div class="card border-0 shadow">
<img src="..\docs\Emo.png" class="card-img-top" alt="...">
<img src="img/Emo.png" class="card-img-top" alt="...">
<div class="card-body text-center">
<h5 class="card-title mb-2"><a href="https://github.com/eiribarev18" target="blank">Emo Ribarev</h5></a>
<h5 class="card-title mb-2"><a href="https://github.com/eiribarev18" target="blank">Emil Ribarev</h5></a>
<div class="card-text text-black-90">Back-end Developer / GitHub Wizard</div>
</div>
</div>
</div>

</div>


</div>
</div>
<footer>
<div class="text-center p-3 bg-light container-fluid">
<div class="text-center p-3 bg-light container-fluid fixed-bottom">
<div class="container">
© 2021 Copyright:
<a
Expand Down
2 changes: 1 addition & 1 deletion public/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</head>

<body
style="background-image: url('../docs/background.png'); height: 900px"
style="background-image: url('img/bgZargan.png'); "
>
<nav class="navbar navbar-expand-sm bg-light navbar-light">
<!-- Brand -->
Expand Down
5 changes: 3 additions & 2 deletions public/css/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
body {
height: 100%;
display: none;
background-image: url('../../docs/bg.png');

background-image: url('../img/bg.png');
background-size: cover;
}

nav {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/img/Zargan_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/img/bgZargan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/img/furdu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
10 changes: 2 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<title>Crypto Zargan</title>
<link rel="stylesheet" href="css/style.css" />

<link rel="icon" type="image/png" href="img/furdu.png">

<!-- Bootstrap -->
<link
rel="stylesheet"
Expand Down Expand Up @@ -170,14 +172,6 @@ <h5 style="text-align: center" data-lang="team-text">
Multiplayer
</button></a
>
<a href="#"
><button
class="btn btn-outline-primary"
data-lang="index-story"
>
Some Magic
</button></a
>
</div>

<footer>
Expand Down
File renamed without changes

0 comments on commit 14a499b

Please sign in to comment.