
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@ewc-lib/ewc-banner
Advanced tools

There are the following attributes:
Note: All attributes have an effect when changed at runtime.
The ribbon hiding can be customised (by disabling the default and specifying it again) in the following way:
<style>
@media (max-width: 1200px) {
.ewc-banner__ribbon { display: revert; }
}
@media (max-width: 900px) {
.ewc-banner__ribbon { display: none; }
}
</style>
<style> .ewc-banner__logo {visibility: hidden;} </style>
The default height is 128px and can be modified like this:
<style>
.ewc-banner__container {height:80px;}
.ewc-banner__ribbon {height:80px;}
</style>
There are 3 styles predefined (--gradient-version-1 to --gradient-version-3).
It can be selected like this:
<ewc-banner
style="--gradient-selection: var(--gradient-version-1);">
</ewc-banner>
"dependencies": {
"@ewc-lib/ewc-banner": "^1.0.0"
}
...
module: {
rules: [
{
test: /\.css$/i,
use: [
'style-loader',
'css-loader'
]
}
]
}
...
<!DOCTYPE html>
<html>
<head>
<style>
body{
font-family: 'Arial', sans-serif;
margin: 0;
}
</style>
</head>
<body>
<script src="bundle.js"></script>
<!-- example for overwriting the ribbon hiding. it's not mandatory -->
<style>
@media (max-width: 1200px) {
.ewc-banner__ribbon {
display: revert;
}
}
@media (max-width: 900px) {
.ewc-banner__ribbon {
display: none;
}
}
</style>
<ewc-banner mainTitle="Demonstration of a title in a banner" subTitle="Demonstration of a subtitle"></ewc-banner>
</body>
</html>
import "@ewc-lib/ewc-css/ewc.css"
import "@ewc-lib/ewc-banner"
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.