Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a redirecting link to the githublogo #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
43 changes: 28 additions & 15 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
var f = d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
j.async=true;
j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MCMRL6S');
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-MCMRL6S");
</script>
<!-- End Google Tag Manager -->
<!-- End Google Tag Manager -->
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
<link rel="canonical" href="https://validkube.com/" />
Expand All @@ -23,11 +25,17 @@
content="ValidKube combines the best open-source tools to help ensure Kubernetes YAML best practices, hygiene & security."
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500&family=Roboto:wght@400;500;700;900&display=swap"
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500&family=Roboto:wght@400;500;700;900&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap" rel="stylesheet">
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -47,7 +55,12 @@
<body>
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MCMRL6S" height="0" width="0" style="display:none;visibility:hidden">
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-MCMRL6S"
height="0"
width="0"
style="display: none; visibility: hidden"
>
</iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/GenericComponents/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const TabsContainer = styled.div`
margin-bottom: 0.8rem;
-ms-overflow-style: none;
scrollbar-width: none;
@media only screen and (max-width: 600px){
@media only screen and (max-width: 600px) {
width: 85vw;
overflow-x: scroll;
}
}
::-webkit-scrollbar {
display: none;
}
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/MainView/MainViewHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ThemePreference } from "../Context/ThemeContext";
export const KOMODOR_COM = "https://komodor.com/";
export const TWITTER_URL = "https://twitter.com/Komodor_com";
export const LINKEDIN_URL = "https://www.linkedin.com/company/komodor-ltd/";
export const GITHUB_URL = "https://github.com/komodorio";

const Container = styled.div`
padding: 1% 1.5%;
Expand All @@ -29,6 +30,7 @@ const Container = styled.div`
const GitContainer = styled.div`
align-items: center;
display: flex;
cursor: pointer;
@media (max-width: 30rem) {
padding-left: 1.5rem;
}
Expand Down Expand Up @@ -109,7 +111,7 @@ const MainViewHeader: React.FC = () => {
<TwitterIcon onClick={() => window.open(TWITTER_URL)} />
</SocialButtonContainer>
<GitContainer>
<GitIcon />
<GitIcon onClick={() => window.open(GITHUB_URL)}/>
<GitHubButton
href="https://github.com/komodorio/validkube"
data-color-scheme="no-preference: light; light: light; dark: light;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const StyledTextAreaCss = {
export const TextAreaContainer = styled.div`
border: 1px solid ${greyBorder};
width: 100%;
@media only screen and (max-width: 600px){
@media only screen and (max-width: 600px) {
width: 85vw;
}
`;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/MainView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const TextAreaContainer = styled.div`
grid-auto-flow: column;
}
padding: 2% 8% 3% 8%;
@media only screen and (max-width: 600px){
@media only screen and (max-width: 600px) {
display: flex;
flex-direction: column;
align-items: center;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
4 changes: 2 additions & 2 deletions frontend/src/reportWebVitals.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReportHandler } from 'web-vitals';
import { ReportHandler } from "web-vitals";

const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
Expand Down
10 changes: 2 additions & 8 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -20,7 +16,5 @@
"noEmit": true,
"jsx": "preserve"
},
"include": [
"src"
]
"include": ["src"]
}