Commit 4955c10a authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

initial Template complete

parent e18299e0
Pipeline #7260 canceled with stage
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="GitLab Pages">
<title>Aktuelles</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="topbar">
<div id="menu" class="navbar"></div>
</div>
<div class="content">
<h1 id='projectname'></h1> <!--Projektname kommt aus settings.js, hier nichts einfügen-->
<h2> Aktuelles aus dem Projekt: </h2>
<!-- ÄNDERUNGEN NUR NACH DIESER ZEILE -->
<!-- TODO Newseintrag kopieren und anpasen, Blindtext entfernen -->
<div class="news">
<div class="header">
01.01.1900: Erster Newseintrag
</div>
<div class="text">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque pellentesque diam ipsum, nec ultricies sem mollis et. Phasellus porttitor nec felis quis ultricies. In venenatis faucibus nisl sed facilisis. Cras sapien nibh, dignissim at eros quis, commodo lobortis eros. Sed a massa eleifend, dictum elit at, blandit magna. Nullam auctor enim nec orci luctus sagittis. Nunc blandit quam nec laoreet egestas. Nulla feugiat nisl lacus, a viverra nisi hendrerit vitae. In nibh arcu, sodales in enim tincidunt, tempus imperdiet ex. Aliquam fermentum augue magna, vel accumsan augue consequat et. Vestibulum id interdum orci, a aliquam sapien. Vivamus eu ipsum sollicitudin, aliquet arcu ut, ornare massa. Suspendisse tincidunt lectus a odio ultrices interdum. Praesent vitae sodales urna, vitae sagittis ex. Vivamus tincidunt nisi ultrices lectus dapibus, at placerat nisl elementum. Fusce cursus, sapien in tincidunt pellentesque, mi erat mollis nibh, ut maximus tortor magna vitae nibh.
</p>
</div>
</div>
<!-- KEINE ÄNDERUNGEN NACH DIESER ZEILE -->
</div>
<script src="settings.js"> </script>
</body>
</html>
...@@ -3,21 +3,38 @@ ...@@ -3,21 +3,38 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="generator" content="GitLab Pages"> <meta name="generator" content="GitLab Pages">
<title>Plain HTML site using GitLab Pages</title> <title>Home</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
<body> <body>
<div class="navbar"> <div id="topbar">
<a href="https://pages.gitlab.io/plain-html/">Plain HTML Example</a> <div id="menu" class="navbar"></div>
<a href="https://gitlab.com/pages/plain-html/">Repository</a>
<a href="https://gitlab.com/pages/">Other Examples</a>
</div> </div>
<h1>Hello World!</h1> <div class="content">
<h1 id='projectname'></h1> <!--Projektname kommt aus settings.js, hier nichts einfügen-->
<!-- ÄNDERUNGEN NUR NACH DIESER ZEILE -->
<!-- TODO Blindtext anpassen: -->
<p> <p>
This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque pellentesque diam ipsum, nec ultricies sem mollis et. Phasellus porttitor nec felis quis ultricies. In venenatis faucibus nisl sed facilisis. Cras sapien nibh, dignissim at eros quis, commodo lobortis eros. Sed a massa eleifend, dictum elit at, blandit magna. Nullam auctor enim nec orci luctus sagittis. Nunc blandit quam nec laoreet egestas. Nulla feugiat nisl lacus, a viverra nisi hendrerit vitae. In nibh arcu, sodales in enim tincidunt, tempus imperdiet ex. Aliquam fermentum augue magna, vel accumsan augue consequat et. Vestibulum id interdum orci, a aliquam sapien. Vivamus eu ipsum sollicitudin, aliquet arcu ut, ornare massa. Suspendisse tincidunt lectus a odio ultrices interdum. Praesent vitae sodales urna, vitae sagittis ex. Vivamus tincidunt nisi ultrices lectus dapibus, at placerat nisl elementum. Fusce cursus, sapien in tincidunt pellentesque, mi erat mollis nibh, ut maximus tortor magna vitae nibh.
</p><p>
Donec aliquam lacus ut tortor porttitor volutpat. Sed aliquet metus vel ante tempor suscipit. Sed quis ipsum et nibh vehicula fermentum. Aliquam non porta ipsum. Proin interdum tincidunt metus, id venenatis lectus elementum id. Fusce eget velit erat. Aliquam non risus consequat arcu vulputate ultricies.
</p><p>
Integer fermentum, velit at elementum fringilla, tortor ante auctor nisi, eu semper tortor ante et dui. Sed posuere odio eu mi sagittis fringilla. Sed enim risus, tempor sed feugiat et, posuere sed quam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam dapibus sodales orci a vestibulum. Ut scelerisque eros non velit pulvinar porttitor. Mauris lobortis dolor a nisl aliquam, vel dictum justo porttitor. Proin finibus, lectus quis commodo elementum, lectus sapien blandit purus, id finibus nisl arcu eget massa. In ut orci sit amet eros facilisis imperdiet ac a felis. Donec ultricies posuere erat sit amet ullamcorper. Cras eget metus sit amet risus molestie venenatis. Nulla venenatis dui sed aliquam volutpat. Duis placerat purus nibh, vitae eleifend lacus pretium et.
</p><p>
Suspendisse porta sit amet purus vel interdum. Sed nibh neque, semper nec venenatis in, aliquam ut ante. Pellentesque a viverra nunc, sit amet luctus nisl. Aliquam quis nulla sed est viverra iaculis. Nullam sodales mi sed sodales egestas. Proin in sollicitudin ipsum. Nunc sem urna, vulputate eu neque sed, aliquet faucibus erat. Ut luctus, magna sed dictum congue, metus nisi aliquet enim, vitae euismod dui lectus id sapien. Nunc euismod orci nulla. Vestibulum congue id neque eget ultricies. Donec hendrerit justo ex, sit amet vestibulum massa consectetur vel. Etiam eu tellus eu magna vestibulum iaculis. Curabitur vulputate elit fringilla purus pharetra rutrum. Vivamus facilisis pharetra fermentum. Quisque sodales, ex vel dignissim viverra, erat velit convallis dolor, at sagittis justo enim in sem. Curabitur at dignissim turpis.
</p><p>
Cras volutpat, augue facilisis facilisis ullamcorper, est mi finibus nisl, nec euismod felis diam nec ligula. Suspendisse aliquam porta purus. Duis sit amet lacus quis ipsum sagittis lacinia in non metus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam a magna sit amet erat laoreet varius. Nulla ac ipsum lacus. Phasellus nec nisi vel sem mattis lacinia. Nam ultrices dignissim nibh, sit amet luctus odio luctus in. Aliquam fringilla eros non velit pretium rhoncus. Ut purus arcu, ornare sit amet ullamcorper ut, iaculis vel dolor.
</p> </p>
</div>
<!-- KEINE ÄNDERUNGEN NACH DIESER ZEILE -->
<script src="settings.js"> </script>
</body> </body>
</html> </html>
//TODO Projektnamen setzen:
let projectname= ""
// TODO Link zur Projektseite setzen
let projektseitenlink= ""
// TODO URL zum Projektlogo setzen
let projectlogourl = ""
// KEINE ÄNDERUNG NACH DIESER ZEILE!
let menu = document.getElementById("menu");
//link1: home
let homelink = document.createElement("a");
homelink.href="index.html"
homelink.innerHTML="Home"
menu.appendChild(homelink);
//link2: projektseite
let projectlink = document.createElement("a");
projectlink.href=projektseitenlink
projectlink.innerHTML="Projekt"
menu.appendChild(projectlink);
//link3: aktuelles
let newslink = document.createElement("a");
newslink.href="aktuelles.html"
newslink.innerHTML="Aktuelles"
menu.appendChild(newslink);
//set projectname
document.getElementById("projectname").innerHTML=projectname;
let hftlogo = document.createElement("a");
let topbar = document.getElementById("topbar");
hftlogo.href = "https://hft-stuttgart.de";
hftlogo.innerHTML="<img src='https://www.hft-stuttgart.de/typo3conf/ext/hft_sitepackage/Resources/Public/img/HFT_logo.svg'/>";
topbar.insertBefore(hftlogo,menu);
if(projectlogourl != ""){
let projectlogo = document.createElement("a");
projectlogo.href=projektseitenlink;
projectlogo.innerHTML="<img src='" + projectlogourl + "'/>";
topbar.insertBefore(projectlogo,menu);
}
...@@ -2,12 +2,14 @@ body { ...@@ -2,12 +2,14 @@ body {
font-family: sans-serif; font-family: sans-serif;
margin: auto; margin: auto;
max-width: 1280px; max-width: 1280px;
margin-left:2%;
margin-right:2%;
} }
.navbar { .navbar {
background-color: #313236; background-color: #cc3125;
border-radius: 2px; border-radius: 2px;
max-width: 800px; /* max-width: 800px; */
} }
.navbar a { .navbar a {
...@@ -22,3 +24,22 @@ body { ...@@ -22,3 +24,22 @@ body {
color: #ffffff; color: #ffffff;
} }
#topbar img{
max-width:15%;
margin-right:20px;
}
.content{
margin-left:2%;
margin-right:2%;
}
.header{
font-weight: bold;
}
.news{
background-color: #f5f5f5;
margin-bottom: 20px;
padding-top:10px;
padding-bottom: 10px;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment