diff --git a/.github/workflows/Zap-Baseline-Scan.yml b/.github/workflows/Zap-Baseline-Scan.yml new file mode 100644 index 0000000..d74b940 --- /dev/null +++ b/.github/workflows/Zap-Baseline-Scan.yml @@ -0,0 +1,27 @@ +name: Zap-Baseline-Scan +on: + push: + branches: + - master + - 'Chee-Yuan' + - 'Daniel-Heng' + - 'Johnny-Chuan' +jobs: + check-vulneabilities: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '14' + - name: action-git-diff-suggestions + uses: getsentry/action-git-diff-suggestions@v1 + - name: ZAP Scan + uses: zaproxy/action-baseline@v0.7.0 + with: + target: 'https://www.zaproxy.org' + + + + + diff --git a/.github/workflows/codacy-static-analysis.yaml b/.github/workflows/codacy-static-analysis.yaml new file mode 100644 index 0000000..7d7db82 --- /dev/null +++ b/.github/workflows/codacy-static-analysis.yaml @@ -0,0 +1,34 @@ +name: Codacy Static Analysis + +on: + push: + branches: + - master + - 'Chee-Yuan' + - 'Daniel-Heng' + - 'Johnny-Chuan' + +jobs: + codacy-static-scan: + name: Codacy Security Scan + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@main + + - name: Run Codacy Analysis CLI + uses: codacy/codacy-analysis-cli-action@master + with: + output: results.sarif + format: sarif + # Adjust severity of non-security issues + gh-code-scanning-compat: true + # Force 0 exit code to allow SARIF file generation + # This will handover control about PR rejection to the GitHub side + max-allowed-issues: 2147483647 + + # Upload the SARIF file generated in the previous step + - name: Upload SARIF results file + uses: github/codeql-action/upload-sarif@main + with: + sarif_file: results.sarif diff --git a/background-image.jpg b/background-image.jpg new file mode 100644 index 0000000..083bef2 Binary files /dev/null and b/background-image.jpg differ diff --git a/dwyl_logo.png b/dwyl_logo.png new file mode 100644 index 0000000..751adb4 Binary files /dev/null and b/dwyl_logo.png differ diff --git a/index.html b/index.html index 00cd6d4..3b89a21 100644 --- a/index.html +++ b/index.html @@ -1,75 +1,93 @@ + - - - + + + Contact Form Example - -

Contact Us!

- - - - - - - + +
+
+
+ dwyl_logo +

Contact Us!

+
+ -
- + + + + + -
-
- - -
+ + -
- - -
+
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
- -
+
+ + +
- - + +
-
+ + - - - + + + + + +
- + + \ No newline at end of file diff --git a/style.css b/style.css index b843d6b..260ff67 100644 --- a/style.css +++ b/style.css @@ -1,40 +1,86 @@ body { margin: 2em; + background-color: #44545c; } + +.header img { + float: left; + top: 10px; + width: 60px; + height: 60px; + padding-bottom: 40px; +} + aside { - background: #1f8dd6; /* same color as selected state on site menu */ - padding: 0.3em 1em; - border-radius: 3px; - color: #fff; - margin-bottom: 2em; + background: #4dbfa9; + padding: 0.3em 1em; + border-radius: 3px; + color: #fff; + margin-bottom: 2em; } + textarea { width: 100%; } + .content-head { font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; margin: 2em 0 1em; } + .is-center { text-align: center; } + .button-success { color: white; border-radius: 4px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); - background: rgb(28, 184, 65); /* this is a green */ + background: rgb(28, 184, 65); + /* this is a green */ +} + +.tooltiptext { + visibility: hidden; + background-color: #4dbfa9; + color: #fff; + text-align: center; + border-radius: 6px; + padding: 5px; + font-size: 15px; + right: 135px; + + /* Position the tooltip */ + position: absolute; + z-index: 1; +} + +.button-success:hover .tooltiptext { + visibility: visible; } + .button-xlarge { font-size: 125%; } + button { float: right; } -#name, #email { + +#name, +#email { width: 50%; } + .honeypot-field { display: none; } + +.form-container { + background: rgba(255, 255, 255, 0.8); + width: 700px; + display: inline-block; + padding: 0px 35px 20px 35px; +} \ No newline at end of file