Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 33 additions & 26 deletions gcp/website/frontend3/src/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ <h1 class="title">A distributed vulnerability database for Open Source</h1>
<div class="explainer">
<p>An open, precise, and distributed approach to producing and consuming vulnerability information for open
source.
</p>
</div>
<div class="cta">
<a class="cta-primary link-button" href="{{ url_for('frontend_handlers.list_vulnerabilities') }}">
Expand Down Expand Up @@ -244,40 +245,46 @@ <h3 class="code-card-title">Guided Remediation (interactive)</h3>
<md-icon-button class="icon"><md-icon>content_copy</md-icon></md-icon-button>
</clipboard-copy>
</div>


</div>
<div class="mdc-layout-grid__cell--span-12">
<div class="cta">
<a class="cta-primary link-button" href="https://google.github.io/osv-scanner/experimental/guided-remediation/">More details</a>
</div>
</div>
</div>
<div id="use-the-github-workflows" class="mdc-layout-grid__cell--span-12 github-action">
<h2 class="heading">GitHub Workflows</h2>
<div id="use-container-scanning" class="mdc-layout-grid__cell--span-12 usage-examples">
<h2 class="heading">Container Image Scanning</h2>
<p class="description">
OSV-Scanner also provides reusable GitHub workflows that can be easily integrated into CI/CD pipelines to provide
continuous vulnerability scanning coverage. This can scan newly added dependencies in pull requests for introduced
vulnerabilities, as well as perform regular vulnerability scans for the entire project.</p>
<div class="image-container">
<img src="/static/img/github-action-scan-output.webp" alt="Screenshot of OSV-Scanner GitHub Action" loading="lazy">
</div>
<div class="cta">
<a class="cta-primary link-button" href="https://google.github.io/osv-scanner/github-action/"
aria-label="Learn more about osv scanner github action">Learn more</a>
</div>
</div>
<div class="mdc-layout-grid__cell--span-12 open-source-banner">
<h2 class="heading">Open source</h2>
<p class="description">
This project is <a href="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/google/osv">open source</a>. If you have any ideas or questions,
please feel free to
reach out by <a href="https://github.com/google/osv/issues/new/choose">creating an issue</a>!
You can use <a href="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/google/osv-scanner" target="_blank" rel="noopener">OSV-Scanner</a>
to scan your container images for known vulnerabilities.
</p>
<div class="cta">
<a class="cta-primary link-button" href="https://google.github.io/osv.dev/faq/"
aria-label="Learn more on our FAQ">Learn more</a>

<!-- Command box (same look as 'Use the API' cards, centered) -->
<div class="code-card-container mdc-layout-grid__inner">
<div class="mobile-spacer mdc-layout-grid__cell--span-3"></div>
<div class="code-card mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-12-tablet">
<h3 class="code-card-title">Scan container image</h3>
<pre class="code-card-content" id="example-container-scan-serve">osv-scanner scan image --serve alpine:3.12</pre>
<clipboard-copy class="code-card-copy" for="example-container-scan-serve">
<md-icon-button class="icon"><md-icon>content_copy</md-icon></md-icon-button>
</clipboard-copy>
</div>
<div class="mobile-spacer mdc-layout-grid__cell--span-3"></div>
</div>

<!-- Big screenshot (same size/markup as GitHub Workflows) -->
<div class="mdc-layout-grid__inner" style="margin-top: 16px;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image is still far too big, it needs a max width of ~1000px or so to look right.

Also, the image seems to have a very noticible black top border, maybe it needs to be cropped by a few pixels at the top.

<div class="mdc-layout-grid__cell--span-12">
<div class="container-scan-image">
<img
src="/static/img/container-scan-html.png"
alt="Screenshot of container scan HTML output"
loading="lazy">
</div>
</div>
</div>
</div>
</div>
<footer></footer>
</div>
{% endblock %}

<div id="use-the-github-workflows" class="mdc-layout-grid__cell--span-12 github-action"> <h2 class="heading">GitHub Workflows</h2> <p class="description"> OSV-Scanner also provides reusable GitHub workflows that can be easily integrated into CI/CD pipelines to provide continuous vulnerability scanning coverage. This can scan newly added dependencies in pull requests for introduced vulnerabilities, as well as perform regular vulnerability scans for the entire project.</p> <div class="image-container"> <img src="/static/img/github-action-scan-output.webp" alt="Screenshot of OSV-Scanner GitHub Action" loading="lazy"> </div> <div class="cta"> <a class="cta-primary link-button" href="https://google.github.io/osv-scanner/github-action/" aria-label="Learn more about osv scanner github action">Learn more</a> </div> </div> <div class="mdc-layout-grid__cell--span-12 open-source-banner"> <h2 class="heading">Open source</h2> <p class="description"> This project is <a href="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/google/osv">open source</a>. If you have any ideas or questions, please feel free to reach out by <a href="https://github.com/google/osv/issues/new/choose">creating an issue</a>! </p> <div class="cta"> <a class="cta-primary link-button" href="https://google.github.io/osv.dev/faq/" aria-label="Learn more on our FAQ">Learn more</a> </div> </div> </div> <footer></footer> </div> {% endblock %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be misformatted? Everything is on one line?

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gcp/website/frontend3/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
plugins: [
new CopyPlugin({
patterns: [
{ from: './src/templates/*.html', to: '[name].html' },
{ from: './src/templates', to: '.', globOptions: { ignore: ['**/base.html'] } },
{ from: './img/*', to: 'static/img/[name][ext]' },
],
}),
Expand Down
Loading