Skip to content

done #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added css/111.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/bksplash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 53 additions & 1 deletion css/splash.css
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
//backup

/* Set height to 100% for body and html to enable the background image to cover the whole page: */
body, html {
height: 100%
}

.bgimg {
/* Background image */
background-image: url('bksplash.jpg');
/* Full-screen */
height: 100%;
/* Center the background image */
background-position: center;
/* Scale and zoom in the image */
background-size: cover;
/* Add position: relative to enable absolutely positioned elements inside the image (place text) */
position: relative;
/* Add a white text color to all elements inside the .bgimg container */
color: white;
/* Add a font */
font-family: "Courier New", Courier, monospace;
/* Set the font-size to 25 pixels */
font-size: 25px;
}

/* Position text in the top-left corner */
.topleft {
position: absolute;
top: 0;
left: 16px;
}

/* Position text in the bottom-left corner */
.bottomleft {
position: absolute;
bottom: 0;
left: 16px;
}

/* Position text in the middle */
.middle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}

/* Style the <hr> element */
hr {
margin: auto;
width: 40%;
}
4 changes: 2 additions & 2 deletions js/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(document).ready(function(){
$(this).toggleClass('open');
if($('#mySidenav').css('width') === '400px')
$('#mySidenav').css('width', '0px');
else
else
$('#mySidenav').css('width', '400px');
});
});
});
4 changes: 2 additions & 2 deletions js/biobrick.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(document).ready(function(){
$(this).toggleClass('open');
if($('#mySidenav').css('width') === '400px')
$('#mySidenav').css('width', '0px');
else
else
$('#mySidenav').css('width', '400px');
});
});
});
4 changes: 2 additions & 2 deletions js/crash.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(document).ready(function(){
$(this).toggleClass('open');
if($('#mySidenav').css('width') === '400px')
$('#mySidenav').css('width', '0px');
else
else
$('#mySidenav').css('width', '400px');
});
});
});
4 changes: 2 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(document).ready(function(){
$(this).toggleClass('open');
if($('#mySidenav').css('width') === '400px')
$('#mySidenav').css('width', '0px');
else
else
$('#mySidenav').css('width', '400px');
});
});
});
34 changes: 11 additions & 23 deletions splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<title>Synthetic Biology</title>
<link href="css/index.css" rel="stylesheet" type="text/css">
<link href="css/splash.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" rel="stylesheet" type="text/css" media="screen,projection">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
Expand All @@ -15,28 +15,16 @@


<body>

<div id="nav-icon">
<span class="green darken-4"></span>
<span class="green darken-4"></span>
<span class="green darken-4"></span>
<span class="green darken-4"></span>
<span class="green darken-4"></span>
<span class="green darken-4"></span>
</div>

<div id="mySidenav" class="sidenav z-depth-5 green accent-3">
<a href="index.html">Home</a>
<a href="crash.html">Synth Biology</a>
<a href="biobrick.html">BioBricks</a>
<a href="riboswitch.html">Riboswitches</a>
<a href="about.html">About</a>
</div>

<div class="flex-container title">
<h3>Home</h3>
<div class="bgimg" style="font-family:roboto">
<div class="center">
<h1>E-learning Module</h1>
<p>For</p>
<img src="css/12.png" width="250px" height="250px">
<h1>Brought to you</h1>
<p>By</p>
<img src="css/111.png" width="150px" height="150px">
</div>
</div>

</body>

</html>
</html>