-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.html
68 lines (62 loc) · 2.18 KB
/
project.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Project README</title>
<link rel="stylesheet" href="style.css" />
<style>
/* Neue CSS-Regel, um die linke Seitenleiste zu stylen */
.forks,
.watchers {
margin-top: 10px;
}
.stars,
.forks,
.watchers {
display: block;
}
/* CSS-Styling für den fett formatierten Text */
.bold-text {
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<div class="sidebar">
<h1 id="project-title"></h1>
<h3 id="project-owner"></h3>
<br />
<div class="project" id="project-description"></div>
<!-- New section to display project description -->
<div class="project" id="project-topics"></div>
<!-- New section to display topics -->
<div class="project">
<a class="stars button" id="project-stars" target="_blank" style="margin-right: 8px;"></a>
<a class="forks button" id="project-forks" target="_blank" style="margin-right: 8px;"></a>
<a class="watchers button" id="project-watchers" target="_blank" style="margin-right: 8px;"></a>
</div>
</div>
<div class="project" id="project-readme"></div>
</div>
<script type="text/javascript" src="js/project.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script>
if (isUnsplashEnabled()) {
fetch('https://source.unsplash.com/1600x900/?nature')
.then(response => {
document.body.style.backgroundImage = `url(${response.url})`;
})
.catch(error => console.error('Fehler beim Laden des Hintergrundbilds:', error));
}
window.addEventListener('resize', () => {
const windowHeight = window.innerHeight;
const formHeight = document.getElementById('form').offsetHeight;
const padding = (windowHeight - formHeight) / 2;
document.body.style.paddingTop = padding + 'px';
});
window.dispatchEvent(new Event('resize'));
</script>
</body>
</html>