Skip to content

Commit

Permalink
General styling added
Browse files Browse the repository at this point in the history
  • Loading branch information
tiller1010 committed Jun 4, 2019
1 parent f258503 commit 94153ef
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 21 deletions.
Binary file modified .sass-cache/cb74dca68057977652e0c31e103d513d0b8c1389/sass.scssc
Binary file not shown.
21 changes: 21 additions & 0 deletions appointment_submit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

session_start();

include('header.html');

$day = $_GET['day'];
$time = $_GET['time'];
$doctor = $_GET['doctor'];
$subject = $_SESSION['subject'];
$message = $_SESSION['message'];


require('connect_db.php');
$q = "INSERT INTO appointments(day, time, doctor, subject, message)
VALUES ('$day', '$time', '$doctor', '$subject', '$message');";
mysqli_query($dbc, $q);

echo "Your appointment for $subject has been submitted for $time on $day with Dr. $doctor";
echo "<br>";
echo "$message";
2 changes: 1 addition & 1 deletion dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

echo "Welcome to the dashboard, $_SESSION[first_name]";
echo "<br>";
echo "<a href='logout.php'>Logout</a>";
echo "<div id='logout'><a href='logout.php'>Logout</a></div>";
echo "<br>";

require('connect_db.php');
Expand Down
3 changes: 3 additions & 0 deletions footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
</main>
<footer>
<div class='stripe'>
<h4>Website By Tyler Trout</h4>
</div>
</footer>
</body>
</html>
4 changes: 3 additions & 1 deletion header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
<body>
<header id='site_title'>
<a href='index.php'><h1>Hospital App</h1></a>
<div class="banner"><img src="images/banner.jpg" alt="hospital banner"/></div>
</header>
<div class='vertical_spacer'></div>
<div class='vertical_spacer'></div>
<main>
Binary file added images/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

include('header.html');
include('logout_link.php');
echo "<div class='flexbox'>";
echo "<a href='appointment.php'>Make an appointment today.</a>";
echo "<br>";
//Allow doctor to sign in, if they are already then link to dashboard
Expand All @@ -16,4 +17,5 @@
<br>
<a href='logout.php'>Logout</a>";
}
echo "</div>";
include('footer.html');
64 changes: 55 additions & 9 deletions output.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 71 additions & 9 deletions sass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $color-primary-0: #632770;
$color-primary-1: #9F71A8;

//Spacing
$vertical_spacing: 12em;
$vertical_spacing: 200px;
$horizontal_spacing: 5em;

header{
Expand All @@ -16,18 +16,80 @@ header{
top:0;
background: $heading_color;
width: 100%;
}
header a{
color: white;
text-indent: $horizontal_spacing;
z-index: -2;
a{
color: white;
text-indent: $horizontal_spacing;
z-index: 10;
}

.banner{
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
img{
position: absolute;
bottom: 0;
max-width: 100%;
display: block;
}
}
}

.vertical_spacer{
height: $vertical_spacing;
margin-top: $vertical_spacing;
}

.dropdown-menu{
main{
z-index: 2;
background: #fff;
width: 80%;
margin: auto;
padding: 20px;
padding-bottom: $vertical_spacing;
#logout{
position: absolute;
top:30px;
right:30px;
a{
color: #fff;
font-size: 20px;
}
}

.flexbox{
display: flex;
justify-content: space-around;

a{
color: #aaa;
}
}

.dropdown-menu{
position: absolute;
background-color: $color-primary-1;
color: #fff;
}

}

footer{
position: absolute;
background-color: $color-primary-1;
color: #fff;
left: 0;
width: 100%;
color: #aaa;
h4{
position: absolute;
bottom: 10px;
right: 10px;
font-style: italic;
margin-right: 10px;
}
.stripe{
width: 100%;
height: 180px;
background-color: #445;
}
}

0 comments on commit 94153ef

Please sign in to comment.