Skip to content

Commit cc49931

Browse files
committed
Aktualisierung der Instagram-Nutzung
1 parent 23a452e commit cc49931

File tree

6 files changed

+32
-25
lines changed

6 files changed

+32
-25
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ Thumbs.db
2323
*.pyc
2424
*.json
2525

26+
# Puppeteer
27+
node_modules/
28+
package-lock.json
29+
package.json
30+
2631
# Sonstige Dateien
2732
doc/*
2833
docs/*
2934
insta-visuals/screenshots/*
30-
node_modules/
35+
node_modules/
36+
*.txt

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Entwurfsmuster-Baukasten
22

3-
![UML](https://img.shields.io/badge/UML-Diagrams-7D4698?logo=uml&logoColor=white)
4-
![PlantUML](https://img.shields.io/badge/PlantUML-Supported-brightgreen?logo=plantuml&logoColor=white)
5-
![draw.io](https://img.shields.io/badge/draw.io-Diagrams-orange?logo=diagramsdotnet&logoColor=white)
6-
![VS Code](https://img.shields.io/badge/Editor-VS%20Code-007ACC?logo=visualstudiocode&logoColor=white)
7-
![License](https://img.shields.io/badge/license-MIT-green)
3+
![UML](https://img.shields.io/badge/UML-Diagrams-7D4698?logo=uml&logoColor=white) ![PlantUML](https://img.shields.io/badge/PlantUML-Supported-brightgreen?logo=plantuml&logoColor=white) ![draw.io](https://img.shields.io/badge/draw.io-Diagrams-orange?logo=diagramsdotnet&logoColor=white) ![VS Code](https://img.shields.io/badge/Editor-VS%20Code-007ACC?logo=visualstudiocode&logoColor=white) ![License](https://img.shields.io/badge/license-MIT-green)
84

95
Dieser Entwurfsmuster-Baukasten enthält alle 23 Entwurfsmuster aus den "Design Patterns" von Gamma et al. (GoF). Jedes Muster ist in einer strukturierten Ordnerhierarchie organisiert und enthält Klassendiagramme in PlantUML- und Draw.io-Formaten.
106

generate-insta-screenshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const fontColors = [
111111
await new Promise(resolve => setTimeout(resolve, 300));
112112

113113
const filename = `img${i + 1}-${imageName}`;
114-
const filepath = path.join(outputDir, `${filename}.png`);
114+
const filepath = path.join(outputDir, `${filename}`);
115115
await page.screenshot({ path: filepath, omitBackground: false });
116116
console.log("Screenshot gespeichert:", filename);
117117
}

html-visuals/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ <h1>Entwurfsmuster</h1>
6565

6666
let imageIndex = 0;
6767
const img = document.querySelector(".overlay-box img");
68-
const button = document.getElementById("closeBtn");
6968
const titl = document.getElementById("title");
7069
const desc = document.getElementById("description");
70+
const button = document.getElementById("closeBtn");
7171
const overlayBox = document.getElementById("overlayBox");
7272
const lBtn = document.getElementById("leftBtn");
7373
const rBtn = document.getElementById("rightBtn");

insta-visuals/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<img src="./assets/proxy.png" alt="Screenshots des Entwurfsmuster">
2222
<button id="closeBtn">Bild 1 von 23</button>
2323
</div>
24+
<!--<div class="safe-area-frame"></div>-->
2425

2526
<script>
2627
const images = [

insta-visuals/styles.css

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ html, body {
1010
}
1111

1212
.overlay-box {
13-
position: absolute;
13+
position: relative;
1414
top: 50%;
1515
left: 50%;
1616
transform: translate(-50%, -50%);
@@ -19,9 +19,8 @@ html, body {
1919
width: 56.25vh; /* 16:9 Breite zu 100% Höhe */
2020
max-height: 100vh;
2121
background-color: rgba(255, 255, 255, 0.5);
22-
border-radius: 15px;
2322
border: 2px solid white;
24-
padding: 2vh;
23+
padding: 5.0vh 5.0vh;
2524
box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
2625
display: flex;
2726
flex-direction: column;
@@ -39,29 +38,25 @@ html, body {
3938
flex-direction: column;
4039
justify-content: center;
4140
align-items: center;
42-
gap: 1.5%;
43-
width: 100%;
44-
overflow: auto;
4541
}
4642

4743
.overlay-box header,
4844
.overlay-box footer {
4945
font-size: 2.2vh;
5046
font-weight: bold;
51-
padding: 1vh 0;
5247
}
5348

5449
.text {
55-
margin-top: 60px;
50+
margin-top: 9.0vh;
5651
display: flex;
5752
flex-direction: column;
5853
align-items: center;
5954
}
6055

6156
.text .line1 {
57+
margin-bottom: 1.5vh;
6258
font-size: 2.4vh;
6359
font-weight: bold;
64-
margin-bottom: 15px;
6560
}
6661

6762
.text .line2 {
@@ -71,28 +66,26 @@ html, body {
7166
.overlay-box img {
7267
width: 100%; /* Bild füllt die Breite der overlay-box */
7368
height: auto;
74-
max-width: 100%;
75-
max-height: 100%;
7669
object-fit: contain;
7770
}
7871

7972
button {
8073
padding: 6px 12px;
81-
border-radius: 8px;
8274
border: none;
75+
border-radius: 8px;
8376
background: rgba(200, 50, 50, 0.8);
8477
color: white;
8578
font-weight: bold;
8679
cursor: pointer;
8780
}
8881

8982
#closeBtn {
90-
margin-bottom: 90px;
91-
background-color: white;
92-
color: #333;
83+
margin-bottom: 10.0vh;
84+
padding: 1vh 2vh;
9385
border: none;
9486
border-radius: 8px;
95-
padding: 1vh 2vh;
87+
background-color: white;
88+
color: #333;
9689
font-size: 1.8vh;
9790
cursor: default;
9891
}
@@ -126,7 +119,7 @@ button {
126119
align-items: center;
127120
justify-content: center;
128121
transform: translate(-50%, -50%);
129-
box-shadow: 0 0 8px rgba(0,0,0,0.4);
122+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
130123
transition: transform 0.2s ease, background 0.3s ease;
131124
outline: 1px solid lime;
132125
}
@@ -135,3 +128,14 @@ button {
135128
.arrow.right { right: -3.0rem; margin-right: -3.5rem; top: 50%; transform: translateY(-50%) scale(1); }
136129
.arrow:hover { transform: translateY(-50%) scale(1.2); }
137130

131+
.safe-area-frame {
132+
position: absolute;
133+
top: 250px;
134+
left: 90px;
135+
width: 900px; /* 1080 - 2×90px */
136+
height: 1420px; /* 1920 - 2×250px */
137+
border: 2px dashed red;
138+
pointer-events: none;
139+
box-sizing: border-box;
140+
z-index: 9999; /* Sicher ganz oben */
141+
}

0 commit comments

Comments
 (0)