Skip to content

Commit

Permalink
add callout
Browse files Browse the repository at this point in the history
  • Loading branch information
mattk committed Aug 6, 2024
1 parent d6cc70e commit 677d793
Show file tree
Hide file tree
Showing 9 changed files with 152 additions and 20 deletions.
39 changes: 39 additions & 0 deletions app/about/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.container {
padding: 0 2rem;
}

.main {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start; /* Change to flex-start to left-align items */
min-height: 100vh;
padding-top: 4rem; /* Add padding to avoid overlap with the navbar */
}

.title {
margin: 0;
line-height: 1.15;
font-size: 4rem;
text-align: left; /* Change to left-align */
color: var(--primary-teal);
font-family: 'Visuelt', sans-serif;
margin-bottom: 2rem; /* Add some space below the title */
}

.subtitle {
font-size: 1.5rem;
text-align: left; /* Change to left-align */
color: var(--primary-black);
font-family: 'Roboto', sans-serif;
margin-bottom: 1rem;
}

.paragraph {
font-size: 1rem;
text-align: left; /* Change to left-align */
color: var(--primary-black);
font-family: 'HK Nova', sans-serif;
margin-bottom: 1rem;
}

2 changes: 1 addition & 1 deletion app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from '../../styles/Home.module.css';
import styles from './page.module.css';

export const metadata = {
title: 'About - RogueApps',
Expand Down
18 changes: 18 additions & 0 deletions app/components/Callout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Link from 'next/link';
import styles from '../../styles/components/Callout.module.css';

export default function Callout() {
return (
<div className={styles.callout}>
<h3 className={styles.calloutTitle}>Psst! RogueApps is new! We'd love for you to contribute!</h3>
<p className={styles.calloutText}>
Help us document emerging OAuth application tradecraft. If you've ever seen a RogueApp in the wild, please contribute to the project!
</p>
<Link href="/contribute" legacyBehavior>
<a className={styles.calloutButton}>Contribute</a>
</Link>
</div>
);
}


3 changes: 2 additions & 1 deletion app/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import styles from '../../styles/components/Footer.module.css';

export default function Footer() {
const currentYear = new Date().getFullYear();
return (
<footer className={styles.footer}>
© 2024 Huntress. All Rights Reserved.
<p> © {currentYear} | <a href="https://huntress.com"> Huntress</a> | All Rights Reserved.</p>
</footer>
);
}
39 changes: 39 additions & 0 deletions app/contribute/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.container {
padding: 0 2rem;
}

.main {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start; /* Change to flex-start to left-align items */
min-height: 100vh;
padding-top: 4rem; /* Add padding to avoid overlap with the navbar */
}

.title {
margin: 0;
line-height: 1.15;
font-size: 4rem;
text-align: left; /* Change to left-align */
color: var(--primary-teal);
font-family: 'Visuelt', sans-serif;
margin-bottom: 2rem; /* Add some space below the title */
}

.subtitle {
font-size: 1.5rem;
text-align: left; /* Change to left-align */
color: var(--primary-black);
font-family: 'Roboto', sans-serif;
margin-bottom: 1rem;
}

.paragraph {
font-size: 1rem;
text-align: left; /* Change to left-align */
color: var(--primary-black);
font-family: 'HK Nova', sans-serif;
margin-bottom: 1rem;
}

2 changes: 1 addition & 1 deletion app/contribute/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from '../../styles/Home.module.css';
import styles from './page.module.css';

export const metadata = {
title: 'Contribute - RogueApps',
Expand Down
29 changes: 13 additions & 16 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useState, useEffect } from 'react';
import { RogueApp } from '../lib/types';
import styles from '../styles/Home.module.css';
import Callout from './components/Callout';

export default function Home() {
const [rogueApps, setRogueApps] = useState<RogueApp[]>([]);
Expand Down Expand Up @@ -36,22 +37,18 @@ export default function Home() {
return (
<div className={styles.container}>
<main className={styles.main}>
{expandedCard === null && (
<>
<h1 className={styles.title}>RogueApps</h1>
<h3 className={styles.poweredBy}>
When Good Apps Go Rogue | Powered by <a href="https://www.huntress.com" target="_blank" rel="noopener noreferrer">Huntress</a>.
</h3>
<input
type="text"
placeholder="Search..."
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
className={styles.search}
/>
</>
)}

<h1 className={styles.title}>RogueApps</h1>
<p className={styles.poweredBy}>
Powered by <a href="https://www.huntress.com" target="_blank" rel="noopener noreferrer">Huntress</a>
</p>
<input
type="text"
placeholder="Search..."
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
className={styles.search}
/>
<Callout />
<div className={`${styles.grid} ${expandedCard !== null ? styles.hidden : ''}`}>
{filteredApps.map((app, index) => (
<div
Expand Down
2 changes: 1 addition & 1 deletion public/rogueapps.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"https://www.huntress.com/blog/legitimate-apps-as-traitorware-for-persistent-microsoft-365-compromise",
"https://cybercorner.tech/malicious-usage-of-em-client-in-business-email-compromise/"
],
"permissions": ["Microsoft Graph - EWS.AccessAsUser.All- Delegated,", "Microsoft Graph - offline_access - Delegated", "Microsoft Graph - email - Delegated", "Microsoft Graph - openid - Delegated" ]
"permissions": ["Microsoft Graph - EWS.AccessAsUser.All- Delegated", "Microsoft Graph - offline_access - Delegated", "Microsoft Graph - email - Delegated", "Microsoft Graph - openid - Delegated" ]
}
]

38 changes: 38 additions & 0 deletions styles/components/Callout.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.callout {
background-color: var(--primary-teal);
color: var(--primary-black);
padding: 2rem;
border-radius: 10px;
text-align: center;
margin: 2rem 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calloutTitle {
margin: 0 0 1rem;
font-size: 2rem;
font-family: 'Visuelt', sans-serif;
}

.calloutText {
margin: 0 0 2rem;
font-size: 1.2rem;
font-family: 'HK Nova', sans-serif;
}

.calloutButton {
background-color: var(--primary-blue);
color: var(--white-2);
padding: 1rem 2rem;
border: none;
border-radius: 5px;
text-decoration: none;
font-size: 1rem;
font-family: 'Roboto', sans-serif;
cursor: pointer;
}

.calloutButton:hover {
background-color: var(--primary-blue);
}

0 comments on commit 677d793

Please sign in to comment.