diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b1a5e2ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# Use an official Tomcat runtime as a parent image +FROM tomcat:9.0 + +# Remove the default ROOT web application +RUN rm -rf /usr/local/tomcat/webapps/ROOT + +# Copy the WAR file to the webapps directory of Tomcat +COPY target/*.war /usr/local/tomcat/webapps/ROOT.war + +# Expose the port Tomcat runs on +EXPOSE 8080 + +# Start Tomcat +CMD ["catalina.sh", "run"] + diff --git a/pom.xml b/pom.xml index d33782ac..a45a7eb8 100644 --- a/pom.xml +++ b/pom.xml @@ -1,51 +1,64 @@ - - 4.0.0 - in.javahome - myweb - war - 8.3.2-SNAPSHOT - Java Home myweb - http://maven.apache.org - - - kammana - - - - com.oracle.bedrock - bedrock-runtime-maven - 5.1.2 - - - - junit - junit - 3.8.1 - test - + + 4.0.0 - - - - - nexusRepo - http://13.233.230.166:8081/repository/maven-snapshots/ - - - - nexusRepo - http://13.233.230.166:8081/repository/maven-releases/ - - - - - - maven1 - Maven.org - http://repo1.maven.org/maven2 - - + com.oracle.bedrock + bedrock-runtime-maven + 5.1.2 + war - + + + + + + junit + junit + 3.8.1 + test + + + + + + nexusRepo + http://13.233.230.166:8081/repository/maven-snapshots/ + + + + nexusRepo + http://13.233.230.166:8081/repository/maven-releases/ + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.1 + + + + + + diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 414fe6b5..6f437abf 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,9 +1,41 @@ - - + + + - -

THIS IS MY SWIGGY V.3.0

- - + + Netflix Login Page | CodingNepal + + + + +
+

NETFLIX SIGN IN V-20.0

+
+
+ + +
+
+ + +
+ +
+
+ + +
+ Need help? +
+
+

New to Netflix? Lets join up now

+ + This page is protected by Google reCAPTCHA to ensure you're not a bot. + Learn more. + +
+ - diff --git a/src/main/webapp/style.css b/src/main/webapp/style.css new file mode 100644 index 00000000..205685b9 --- /dev/null +++ b/src/main/webapp/style.css @@ -0,0 +1,179 @@ +@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap"); + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Roboto', sans-serif; +} + +body { + background: #000; +} + +body::before { + content: ""; + position: absolute; + left: 0; + top: 0; + opacity: 0.5; + width: 100%; + height: 100%; + background: url("images/hero-img.jpg"); + background-position: center; +} + +nav { + position: fixed; + padding: 25px 60px; + z-index: 1; +} + +nav a img { + width: 167px; +} + +.form-wrapper { + position: absolute; + left: 50%; + top: 50%; + border-radius: 4px; + padding: 70px; + width: 450px; + transform: translate(-50%, -50%); + background: rgba(0, 0, 0, .75); +} + +.form-wrapper h2 { + color: #fff; + font-size: 2rem; +} + +.form-wrapper form { + margin: 25px 0 65px; +} + +form .form-control { + height: 50px; + position: relative; + margin-bottom: 16px; +} + +.form-control input { + height: 100%; + width: 100%; + background: #333; + border: none; + outline: none; + border-radius: 4px; + color: #fff; + font-size: 1rem; + padding: 0 20px; +} + +.form-control input:is(:focus, :valid) { + background: #444; + padding: 16px 20px 0; +} + +.form-control label { + position: absolute; + left: 20px; + top: 50%; + transform: translateY(-50%); + font-size: 1rem; + pointer-events: none; + color: #8c8c8c; + transition: all 0.1s ease; +} + +.form-control input:is(:focus, :valid)~label { + font-size: 0.75rem; + transform: translateY(-130%); +} + +form button { + width: 100%; + padding: 16px 0; + font-size: 1rem; + background: #e50914; + color: #fff; + font-weight: 500; + border-radius: 4px; + border: none; + outline: none; + margin: 25px 0 10px; + cursor: pointer; + transition: 0.1s ease; +} + +form button:hover { + background: #c40812; +} + +.form-wrapper a { + text-decoration: none; +} + +.form-wrapper a:hover { + text-decoration: underline; +} + +.form-wrapper :where(label, p, small, a) { + color: #b3b3b3; +} + +form .form-help { + display: flex; + justify-content: space-between; +} + +form .remember-me { + display: flex; +} + +form .remember-me input { + margin-right: 5px; + accent-color: #b3b3b3; +} + +form .form-help :where(label, a) { + font-size: 0.9rem; +} + +.form-wrapper p a { + color: #fff; +} + +.form-wrapper small { + display: block; + margin-top: 15px; + color: #b3b3b3; +} + +.form-wrapper small a { + color: #0071eb; +} + +@media (max-width: 740px) { + body::before { + display: none; + } + + nav, .form-wrapper { + padding: 20px; + } + + nav a img { + width: 140px; + } + + .form-wrapper { + width: 100%; + top: 43%; + } + + .form-wrapper form { + margin: 25px 0 40px; + } +} diff --git a/target/bedrock-runtime-maven-5.1.2.war b/target/bedrock-runtime-maven-5.1.2.war new file mode 100644 index 00000000..d88f360b Binary files /dev/null and b/target/bedrock-runtime-maven-5.1.2.war differ diff --git a/target/bedrock-runtime-maven-5.1.2/WEB-INF/classes/in/javahome/myweb/controller/Calculator.class b/target/bedrock-runtime-maven-5.1.2/WEB-INF/classes/in/javahome/myweb/controller/Calculator.class new file mode 100644 index 00000000..b5d4263d Binary files /dev/null and b/target/bedrock-runtime-maven-5.1.2/WEB-INF/classes/in/javahome/myweb/controller/Calculator.class differ diff --git a/target/bedrock-runtime-maven-5.1.2/WEB-INF/lib/bedrock-runtime-maven-5.1.2.jar b/target/bedrock-runtime-maven-5.1.2/WEB-INF/lib/bedrock-runtime-maven-5.1.2.jar new file mode 100644 index 00000000..5b61adfe Binary files /dev/null and b/target/bedrock-runtime-maven-5.1.2/WEB-INF/lib/bedrock-runtime-maven-5.1.2.jar differ diff --git a/target/bedrock-runtime-maven-5.1.2/WEB-INF/web.xml b/target/bedrock-runtime-maven-5.1.2/WEB-INF/web.xml new file mode 100644 index 00000000..9f88c1f9 --- /dev/null +++ b/target/bedrock-runtime-maven-5.1.2/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/target/bedrock-runtime-maven-5.1.2/index.jsp b/target/bedrock-runtime-maven-5.1.2/index.jsp new file mode 100644 index 00000000..3f1e03f6 --- /dev/null +++ b/target/bedrock-runtime-maven-5.1.2/index.jsp @@ -0,0 +1,41 @@ + + + + + + + Netflix Login Page | CodingNepal + + + + +
+

NETFLIX SIGN IN V-8.0

+
+
+ + +
+
+ + +
+ +
+
+ + +
+ Need help? +
+
+

New to Netflix? Lets join up now

+ + This page is protected by Google reCAPTCHA to ensure you're not a bot. + Learn more. + +
+ + diff --git a/target/bedrock-runtime-maven-5.1.2/style.css b/target/bedrock-runtime-maven-5.1.2/style.css new file mode 100644 index 00000000..205685b9 --- /dev/null +++ b/target/bedrock-runtime-maven-5.1.2/style.css @@ -0,0 +1,179 @@ +@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap"); + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Roboto', sans-serif; +} + +body { + background: #000; +} + +body::before { + content: ""; + position: absolute; + left: 0; + top: 0; + opacity: 0.5; + width: 100%; + height: 100%; + background: url("images/hero-img.jpg"); + background-position: center; +} + +nav { + position: fixed; + padding: 25px 60px; + z-index: 1; +} + +nav a img { + width: 167px; +} + +.form-wrapper { + position: absolute; + left: 50%; + top: 50%; + border-radius: 4px; + padding: 70px; + width: 450px; + transform: translate(-50%, -50%); + background: rgba(0, 0, 0, .75); +} + +.form-wrapper h2 { + color: #fff; + font-size: 2rem; +} + +.form-wrapper form { + margin: 25px 0 65px; +} + +form .form-control { + height: 50px; + position: relative; + margin-bottom: 16px; +} + +.form-control input { + height: 100%; + width: 100%; + background: #333; + border: none; + outline: none; + border-radius: 4px; + color: #fff; + font-size: 1rem; + padding: 0 20px; +} + +.form-control input:is(:focus, :valid) { + background: #444; + padding: 16px 20px 0; +} + +.form-control label { + position: absolute; + left: 20px; + top: 50%; + transform: translateY(-50%); + font-size: 1rem; + pointer-events: none; + color: #8c8c8c; + transition: all 0.1s ease; +} + +.form-control input:is(:focus, :valid)~label { + font-size: 0.75rem; + transform: translateY(-130%); +} + +form button { + width: 100%; + padding: 16px 0; + font-size: 1rem; + background: #e50914; + color: #fff; + font-weight: 500; + border-radius: 4px; + border: none; + outline: none; + margin: 25px 0 10px; + cursor: pointer; + transition: 0.1s ease; +} + +form button:hover { + background: #c40812; +} + +.form-wrapper a { + text-decoration: none; +} + +.form-wrapper a:hover { + text-decoration: underline; +} + +.form-wrapper :where(label, p, small, a) { + color: #b3b3b3; +} + +form .form-help { + display: flex; + justify-content: space-between; +} + +form .remember-me { + display: flex; +} + +form .remember-me input { + margin-right: 5px; + accent-color: #b3b3b3; +} + +form .form-help :where(label, a) { + font-size: 0.9rem; +} + +.form-wrapper p a { + color: #fff; +} + +.form-wrapper small { + display: block; + margin-top: 15px; + color: #b3b3b3; +} + +.form-wrapper small a { + color: #0071eb; +} + +@media (max-width: 740px) { + body::before { + display: none; + } + + nav, .form-wrapper { + padding: 20px; + } + + nav a img { + width: 140px; + } + + .form-wrapper { + width: 100%; + top: 43%; + } + + .form-wrapper form { + margin: 25px 0 40px; + } +} diff --git a/target/classes/in/javahome/myweb/controller/Calculator.class b/target/classes/in/javahome/myweb/controller/Calculator.class new file mode 100644 index 00000000..b5d4263d Binary files /dev/null and b/target/classes/in/javahome/myweb/controller/Calculator.class differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 00000000..893fd373 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=bedrock-runtime-maven +groupId=com.oracle.bedrock +version=5.1.2 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 00000000..149fa75e --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +in/javahome/myweb/controller/Calculator.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 00000000..aaf58fc4 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/root/project/jenkins-java-project/src/main/java/in/javahome/myweb/controller/Calculator.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 00000000..cc3d6b65 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +in/javahome/myweb/controller/CalculatorTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 00000000..0fd9d989 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/root/project/jenkins-java-project/src/test/java/in/javahome/myweb/controller/CalculatorTest.java diff --git a/target/surefire-reports/TEST-in.javahome.myweb.controller.CalculatorTest.xml b/target/surefire-reports/TEST-in.javahome.myweb.controller.CalculatorTest.xml new file mode 100644 index 00000000..cec736da --- /dev/null +++ b/target/surefire-reports/TEST-in.javahome.myweb.controller.CalculatorTest.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/in.javahome.myweb.controller.CalculatorTest.txt b/target/surefire-reports/in.javahome.myweb.controller.CalculatorTest.txt new file mode 100644 index 00000000..6fb01b6e --- /dev/null +++ b/target/surefire-reports/in.javahome.myweb.controller.CalculatorTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: in.javahome.myweb.controller.CalculatorTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.051 sec diff --git a/target/test-classes/in/javahome/myweb/controller/CalculatorTest.class b/target/test-classes/in/javahome/myweb/controller/CalculatorTest.class new file mode 100644 index 00000000..d76f91f0 Binary files /dev/null and b/target/test-classes/in/javahome/myweb/controller/CalculatorTest.class differ