Skip to content

Commit

Permalink
removed the footer from the website because it was not needed and it …
Browse files Browse the repository at this point in the history
…was bugged and i was too lazy to fix it and it looked bad anyway(except for the footer on the / page that one is good but i didnt keep it anyway)

	modified:   index.html
	modified:   learntotweak/aarch64/index.html
	modified:   learntotweak/aarch64/style.css
	modified:   learntotweak/index.html
	modified:   learntotweak/step1/index.html
	modified:   learntotweak/step1/style.css
	modified:   learntotweak/step2/index.html
	modified:   learntotweak/step2/style.css
	modified:   learntotweak/step3/index.html
	modified:   learntotweak/step3/style.css
	modified:   learntotweak/style.css
	modified:   projects/index.html
	modified:   projects/style.css
	modified:   style.css
  • Loading branch information
maxiwee69 committed Jan 24, 2024
1 parent e66293f commit b3a862c
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 111 deletions.
44 changes: 20 additions & 24 deletions footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,29 @@
# Specify the directory you want to start from
root_dir = r'C:\Users\maxi\maxiwee69.github.io'

# Define the footer CSS you want to add
footer_css = """.footer {
background-color: #0a0a15; /* Darker blue */
color: #e0e0e0; /* Lighter color for the footer text */
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
width: 100%;
flex-shrink: 0;
}"""

# Walk through all subdirectories
for dirpath, dirnames, filenames in os.walk(root_dir):
for filename in filenames:
# Check if the file is a CSS file
if filename.endswith('.css'):
filepath = os.path.join(dirpath, filename)
filepath = os.path.join(dirpath, filename)
if filename.endswith('.html'):
with open(filepath, 'r+') as file:
# Read the existing content
content = file.read()
# Remove the footer
content = re.sub(r'<div class="footer">.*?</div>', '', content, flags=re.DOTALL)
# Write the new content back to the file
file.seek(0)
file.write(content)
file.truncate()
print(f'Removed footer from: {filepath}')
elif filename.endswith('.css'):
with open(filepath, 'r+') as file:
# Read the existing content
content = file.read()
# Check if the footer background-color is set to #0a0a15
if re.search(r'\.footer\s*{\s*background-color:\s*#0a0a15;', content):
print(f'Found matching file: {filepath}')
# If yes, replace the entire .footer CSS with the new one
content = re.sub(r'(\.footer\s*{[^}]*})', footer_css, content)
# Write the new content back to the file
file.seek(0)
file.write(content)
file.truncate()
print(f'Updated file: {filepath}')
# Remove the .footer CSS rules
content = re.sub(r'\.footer\s*{[^}]*}', '', content)
# Write the new content back to the file
file.seek(0)
file.write(content)
file.truncate()
print(f'Removed .footer CSS from: {filepath}')
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ <h2>About Me</h2>
you can contact me via Twitter or Email.
</p>
</div>
<div class="footer">
<p>© 2023 Maxiwee. All rights reserved.</p>
</div>
<script src="script.js"></script>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"849bb3882b9562d4","r":1,"version":"2024.1.0","token":"6841afb174354017a288ea06aef0eee8"}' crossorigin="anonymous"></script>
</body>
Expand Down
4 changes: 1 addition & 3 deletions learntotweak/aarch64/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ <h3>
</class>
</div>
<a href="/learntotweak" class="bottom-buttons">Go back to the overview </a>
<div class="footer">
<p>&copy; 2023 Maxiwee. All rights reserved.</p>
</div>

<script src="script.js"></script>
</body>
</html>
9 changes: 0 additions & 9 deletions learntotweak/aarch64/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,3 @@ html {
}

/* Footer Styles */
.footer {
background-color: #0a0a15; /* Darker blue */
color: #e0e0e0; /* Lighter color for the footer text */
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
width: 100%;
flex-shrink: 0;
}
4 changes: 1 addition & 3 deletions learntotweak/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ <h2>Learn to create your own iOS tweaks</h2>
<a href="aarch64/" > Special - ARM64 devices like raspberry pi </a>
</div>
</div>
<div class="footer">
<p>&copy; 2023 Maxiwee. All rights reserved.</p>
</div>

<script src="script.js"></script>
</body>
</html>
4 changes: 1 addition & 3 deletions learntotweak/step1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ <h3>
</p>
</div>
<a href="/learntotweak/step2" class="bottom-button">Go to Step 2</a>
<div class="footer">
<p>&copy; 2023 Maxiwee. All rights reserved.</p>
</div>

<script src="script.js"></script>
</body>
</html>
9 changes: 0 additions & 9 deletions learntotweak/step1/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,3 @@ html {
}

/* Footer Styles */
.footer {
background-color: #0a0a15; /* Darker blue */
color: #e0e0e0; /* Lighter color for the footer text */
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
width: 100%;
flex-shrink: 0;
}
4 changes: 1 addition & 3 deletions learntotweak/step2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ <h3>
</div>
<a href="/learntotweak/step1" class="bottom-buttons">Go back to step 1 </a>
<a href="/learntotweak/step3" class="bottom-button">Go to Step 3</a>
<div class="footer">
<p>&copy; 2023 Maxiwee. All rights reserved.</p>
</div>

<script src="script.js"></script>
</body>
</html>
9 changes: 0 additions & 9 deletions learntotweak/step2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,3 @@ html {
}

/* Footer Styles */
.footer {
background-color: #0a0a15; /* Darker blue */
color: #e0e0e0; /* Lighter color for the footer text */
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
width: 100%;
flex-shrink: 0;
}
4 changes: 1 addition & 3 deletions learntotweak/step3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ <h3>
</class>
</div>
<a href="/learntotweak/step2" class="bottom-buttons">Go back to step 2 </a>
<div class="footer">
<p>&copy; 2023 Maxiwee. All rights reserved.</p>
</div>

<script src="script.js"></script>
</body>
</html>
9 changes: 0 additions & 9 deletions learntotweak/step3/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,3 @@ html {
}

/* Footer Styles */
.footer {
background-color: #0a0a15; /* Darker blue */
color: #e0e0e0; /* Lighter color for the footer text */
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
width: 100%;
flex-shrink: 0;
}
11 changes: 1 addition & 10 deletions learntotweak/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,7 @@ body {
margin-bottom: 20px;
}

.footer {
background-color: #000022; /* Even darker blue */
color: #fff; /* White text for contrast */
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
transition: background-color 0.3s ease;
}


/* Adjust padding and border radius to make design simpler */
.step1 a, .step2 a, .step3 a, .aarch64 a {
Expand Down
4 changes: 1 addition & 3 deletions projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ <h2>DLL Injection Checker</h2>
<div>
<h2>More projects coming soon...</h2>
</div>
<div class="footer">
<p>&copy; 2023 Maxiwee. All rights reserved.</p>
</div>

</body>
</html>
11 changes: 1 addition & 10 deletions projects/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ body {


/* Footer Styles */
.footer {
background-color: linear-gradient(to top, #404040, #00000);
color: #cccccc;
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
position: absolute;
bottom: 0;
width: 100%;
}



11 changes: 1 addition & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,7 @@ html {


/* Footer Styles */
.footer {
background-color: linear-gradient(to top, #404040, #00000);
color: #cccccc;
font-family: Arial, sans-serif;
text-align: center;
padding: 20px;
position: absolute;
bottom: 0;
width: 100%;
}



.hamburger-menu {
Expand Down

0 comments on commit b3a862c

Please sign in to comment.