Skip to content

Commit

Permalink
added pictures and logos
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapatadia committed Dec 17, 2024
1 parent c579408 commit 06229f2
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 5 deletions.
9 changes: 8 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import '../styles.css'
import { Inter } from "next/font/google";
const inter = Inter({ subsets: ["latin"] });
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
return (
<main className={inter.className}>
<Component {...pageProps} />
</main>
)
}
2 changes: 1 addition & 1 deletion pages/encryption.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Yes, you read it correctly. The video is divided into 4 or 8-second chunks and o

The advantage of subsample encryption is that encryption and decryption are extremely fast and consume a lot less CPU resources (around 10% of resources compared to encrypting an entire file).

**INSERT graphics of subsample encryption here**
![Subsample Encryption](/subsample-encryption.png)

IV is [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector) and it’s almost always openly shared when files are distributed. This means if anyone obtains the KEY 🔑, they can decrypt the media.

Expand Down
2 changes: 1 addition & 1 deletion pages/key-exchange.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The key server receives the encrypted payload and decrypts using its own private
3. Encrypt the Key and other information about how to decode the media using the CDM’s public key provided.
4. Send the encrypted payload back.

** INSERT GRAPHIC EXPLAINING THIS**
![Key Exchange Process](/key-exchange.png)

Once CDM receives the response it was waiting for, it can just decrypt the payload using its own private key and retrieve the media Key 🔑. yay!

Expand Down
Binary file added public/key-exchange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/round-logo-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/subsample-encryption.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
font-size: 1.1rem;
}
38 changes: 36 additions & 2 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,47 @@ import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'

const config: DocsThemeConfig = {
logo: <span>Howdrm.works</span>,
color: {
hue: {
dark: 258,
light: 243,
},
saturation: {
dark: 90,
light: 75,
},
lightness: {
dark: 66,
light: 59
},

},
backgroundColor:{
dark: "000,000,000"
},
logo: (
<>
<img src="/round-logo-bg.svg" alt="Howdrm Logo" style={{ height: '1.5em' }} />
<span style={{ marginLeft: '.4em', fontWeight: 500 }}>
Howdrm.works
</span>
</>
),
project: {
link: 'https://github.com/gumlet/howdrm.works',
},
docsRepositoryBase: 'https://github.com/gumlet/howdrm.works/blob/main',
footer: {
content: 'Nextra Docs Template',
content: (
<>
<a href="https://nextra.site" target="_blank">
<img src='https://assets.gumlet.io/assets/logo.svg' alt='Gumlet Logo' style={{ height: '1.5em' }} />
</a>
<span>
©{' '} {new Date().getFullYear()}
</span>
</>
),
},
search: {
placeholder: "Search Howdrm.works"
Expand Down

0 comments on commit 06229f2

Please sign in to comment.