Initial commit

This commit is contained in:
2023-11-03 21:12:55 +01:00
parent a4afe6cc85
commit 57362e7520
39 changed files with 3505 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/webui.iml" filepath="$PROJECT_DIR$/.idea/webui.iml" />
</modules>
</component>
</project>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.1" />
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+73
View File
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>URL Shortener by Emily</title>
<script src="stuff/jquery-3.7.1.min.js"></script>
<script src="stuff/bootstrap.min.js"></script>
<link href="stuff/bootstrap.min.css" rel="stylesheet">
<link href="stuff/main.css" rel="stylesheet">
</head>
<body>
<div id="header">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Url Shortener</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0" id="Navbar-content">
<li class="nav-item">
<a class="nav-link active fw-bold" href="javascript:;" id="nav-home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:;" id="nav-shortcodes">Shortcodes</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:;" id="nav-profile">Profile</a>
</li>
</ul>
<div id="profile-stuff">
<button class="btn btn-outline-primary me-2 hide">Register</button>
<button class="btn btn-outline-primary hide">Login</button>
</div>
</div>
</div>
</nav>
</div>
<div id="main-content">
</div>
<script>
$(document).ready(() => {
$("#main-content").load("pages/home.html")
// Navbar handler
// Yes, i am fully aware that my code is highly cringe, but its easy to understand, quick to write
// and most importantly, it gets the job done
// Feel free to suggest cleaner code tho if you know any
$("#nav-home").on("click", () => {
$("#nav-home").addClass("active").addClass("fw-bold")
$("#nav-profile").removeClass("active").removeClass("fw-bold")
$("#nav-shortcodes").removeClass("active").removeClass("fw-bold")
$("#main-content").load("pages/home.html")
})
$("#nav-shortcodes").on("click", () => {
$("#nav-shortcodes").addClass("active").addClass("fw-bold")
$("#nav-profile").removeClass("active").removeClass("fw-bold")
$("#nav-home").removeClass("active").removeClass("fw-bold")
$("#main-content").load("pages/shortcodes.html")
})
$("#nav-profile").on("click", () => {
$("#nav-profile").addClass("active").addClass("fw-bold")
$("#nav-shortcodes").removeClass("active").removeClass("fw-bold")
$("#nav-home").removeClass("active").removeClass("fw-bold")
$("#main-content").load("pages/profile.html")
})
})
</script>
</body>
</html>
+11
View File
@@ -0,0 +1,11 @@
<!--
Page content for home tab
-->
<div>
<p>Feel free to check out my <a href="https://git.dommymommy.xyz/emily/url-shortener">Git</a></p>
</div>
<script>
$("#test").html("lol")
</script>
+5
View File
@@ -0,0 +1,5 @@
<!--
Page content for profile tab
-->
<img src="stuff/IMG_1620.jpg">
+3
View File
@@ -0,0 +1,3 @@
<!--
Page content for shortcodes tab
-->
Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

+6
View File
File diff suppressed because one or more lines are too long
+7
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
View File
@@ -0,0 +1,3 @@
.hide{
display:none;
}