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

Palestine solidarity banner #60

Open
wants to merge 2 commits into
base: main
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
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/tsconfig": "^3.0.0",
"@docusaurus/types": "^3.0.0",
"prettier": "^3.3.2",
"typescript": "^5.2.2"
}
}
84 changes: 35 additions & 49 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from "clsx";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
Expand All @@ -13,9 +13,9 @@ const features = [
imageUrl: "img/Browser.svg",
description: (
<Translate id="homepage.features.webBase">
NodeCG graphics are just webpages. There is absolutely nothing
special or unique about them, and this allows you to use any
framework or web graphic style you like.
NodeCG graphics are just webpages. There is absolutely nothing special
or unique about them, and this allows you to use any framework or web
graphic style you like.
</Translate>
),
},
Expand All @@ -25,54 +25,33 @@ const features = [
description: (
<div>
<Translate id="homepage.features.environments">
NodeCG is compatible with any environment that can render
HTML such as:
NodeCG is compatible with any environment that can render HTML such
as:
</Translate>
<div
className={clsx(
"container-small",
styles.environments
)}
>
<div className={clsx("container-small", styles.environments)}>
<div className="row">
<a
className={clsx(
"col",
styles.environmentItem,
styles.shadow2
)}
className={clsx("col", styles.environmentItem, styles.shadow2)}
href="https://obsproject.com/"
>
OBS Studio
</a>
<a
className={clsx(
"col",
styles.environmentItem,
styles.shadow2
)}
className={clsx("col", styles.environmentItem, styles.shadow2)}
href="http://www.vmix.com/"
>
vMix
</a>
</div>
<div className="row">
<a
className={clsx(
"col",
styles.environmentItem,
styles.shadow2
)}
className={clsx("col", styles.environmentItem, styles.shadow2)}
href="https://www.xsplit.com/"
>
xSplit
</a>
<a
className={clsx(
"col",
styles.environmentItem,
styles.shadow2
)}
className={clsx("col", styles.environmentItem, styles.shadow2)}
href="https://casparcg.com/"
>
CasparCG
Expand All @@ -88,15 +67,14 @@ const features = [
description: (
<>
<Translate id="homepage.features.sizeOfShow">
We believe that one set of tools can and should be able to
scale up from the smallest show all the way to the biggest
fathomable show.
We believe that one set of tools can and should be able to scale up
from the smallest show all the way to the biggest fathomable show.
</Translate>
<br />
<Translate id="homepage.features.sizeOfShow2">
Whether you're using OBS for everything, or a hardware
switcher with a traditional key/fill workflow, NodeCG can be
a part of any broadcast graphics system.
Whether you're using OBS for everything, or a hardware switcher with a
traditional key/fill workflow, NodeCG can be a part of any broadcast
graphics system.
</Translate>
</>
),
Expand All @@ -109,11 +87,7 @@ function Feature({ imageUrl, title, description }) {
<div className={clsx("col col--4", styles.feature)}>
{imgUrl && (
<div className="text--center">
<img
className={styles.featureImage}
src={imgUrl}
alt={title}
/>
<img className={styles.featureImage} src={imgUrl} alt={title} />
</div>
)}
<h3>{title}</h3>
Expand All @@ -129,22 +103,34 @@ function Home() {
title={`Broadcast Graphics`}
description="Browser-based broadcast graphics and controls"
>
<header
className={clsx("hero hero--primary", styles.heroBanner)}
>
<div className={styles.banner}>
<div className={styles.top}>Free Palestine!</div>
<div className={styles.center}>
Israel is committing a genocide in Gaza.
</div>
<div className={styles.bottom}>
<a target="_blank" href="https://techforpalestine.org/learn-more/">
Learn more
</a>
</div>
<svg height="100%" viewBox="0 0 2 3" className={styles.bannerTriangle}>
<polygon points="0, 0, 2, 1.5, 0, 3" fill="#ee2a35" />
</svg>
</div>

<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
<img alt="Splash" src="img/splash.png" />
<p className="hero__subtitle">
<Translate>
Create broadcast graphics using Node.js and a
browser
Create broadcast graphics using Node.js and a browser
</Translate>
</p>
<div className={styles.buttons}>
<Link
className={clsx(
"button button--contained button--secondary button--lg",
styles.getStarted
styles.getStarted,
)}
to={useBaseUrl("docs/installing")}
>
Expand Down
111 changes: 80 additions & 31 deletions src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,65 +4,114 @@
*/

.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
}

@media screen and (max-width: 966px) {
.heroBanner {
padding: 2rem;
}
.heroBanner {
padding: 2rem;
}
}

.banner {
position: relative;
display: grid;
font-weight: bold;
text-align: center;
display: grid;
grid-template-rows: repeat(3, 20px);
font-size: 15px;

& > div {
display: grid;
place-content: center;
}

& > .top {
grid-row: 1 / 2;
grid-column: 1 / -1;
background-color: #000000;
color: white;
}
& > .center {
grid-row: 2 / 3;
grid-column: 1 / -1;
background-color: #ffffff;
color: black;
}
& > .bottom {
grid-row: 3 / 4;
grid-column: 1 / -1;
background-color: #009736;
color: white;
}

& > .bannerTriangle {
grid-row: 1 / -1;
grid-column: 1 / 2;
justify-self: start;
}
}

.buttons {
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;
}

.features {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}

.featureImage {
height: 200px;
width: 200px;
height: 200px;
width: 200px;
}

.environments {
width: 75%;
margin: auto;
margin-top: 0.5rem;
width: 75%;
margin: auto;
margin-top: 0.5rem;
}

.environmentItem {
background: var(--nodecg-background-secondary);
margin: 0.2rem;
margin-bottom: 0.1rem;
padding: 0.2rem;
font-size: 1.2rem;
font-weight: 600;
text-align: center;
color: #11e2d8;
background: var(--nodecg-background-secondary);
margin: 0.2rem;
margin-bottom: 0.1rem;
padding: 0.2rem;
font-size: 1.2rem;
font-weight: 600;
text-align: center;
color: #11e2d8;
}

.environmentItem:hover {
color: #00b9b0;
color: #00b9b0;
}

.shadow1 {
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14);
box-shadow:
0px 1px 3px rgba(0, 0, 0, 0.2),
0px 2px 1px rgba(0, 0, 0, 0.12),
0px 1px 1px rgba(0, 0, 0, 0.14);
}

.shadow2 {
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2), 0px 3px 1px rgba(0, 0, 0, 0.12), 0px 2px 2px rgba(0, 0, 0, 0.14);
box-shadow:
0px 1px 5px rgba(0, 0, 0, 0.2),
0px 3px 1px rgba(0, 0, 0, 0.12),
0px 2px 2px rgba(0, 0, 0, 0.14);
}

.shadow4 {
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14);
box-shadow:
0px 2px 4px rgba(0, 0, 0, 0.2),
0px 1px 10px rgba(0, 0, 0, 0.12),
0px 4px 5px rgba(0, 0, 0, 0.14);
}
1 change: 1 addition & 0 deletions static/img/Flag_of_Palestine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading