Skip to content

Instantly share code, notes, and snippets.

@thamognya
Created April 10, 2022 12:51
Show Gist options
  • Save thamognya/fe978ca2d88a5d61ce9023149a076561 to your computer and use it in GitHub Desktop.
Save thamognya/fe978ca2d88a5d61ce9023149a076561 to your computer and use it in GitHub Desktop.
header.html for mirror.thamognya.com directory index apache
<head>
<!-- TITLE ATTRIBUTE -->
<title>Thamognya's Mirror Service</title>
<!-- MOBILE DEVICE SUPPORT -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- INLINE STYLE (NO MESS OF HIDING ADDITIONAL FILES IN .htaccess) -->
<style type="text/css">
/******************************
INLINE STYLES BEGIN HERE
*****************************/
/* FONT FAMILY */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');
body{
font-family: 'Space Mono', monospace;
width: 70%;
margin: auto;
}
/* TABLE */
tr, td, th
{
padding: 5px 10px;
text-align: left;
}
table{
font-size: 0.9em;
width: 100%;
}
/* LINKS */
a{
color: #333;
}
a:visited{
color: #777;
}
/* PARAGRAPHS */
p{
font-size: 0.75em;
margin-top: 15px;
margin-bottom: 15px;
}
/* ALWAYS HIDE FILE DESCRIPTIONS (5th element as table header + data) */
th:nth-child(5){
display: none;
}
td:nth-child(5){
display: none;
}
/* MEDIA QUERIES FOR MOBILE */
@media screen and (min-width: 320px) and (max-width: 768px){
body{
width: 90%;
}
td, th{
font-size: 1.0em;
}
p{
font-size: 0.9em;
}
}
/******************************
INLINE STYLES END HERE
*****************************/
</style>
</head>
<body>
<h1>Thamognya's Mirror Service</h1>
<h2>This is the location of the mirrors I run.</h2>
<div id="generated">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment