Skip to content

Commit

Permalink
Merge pull request #116 from DeepDoge/master
Browse files Browse the repository at this point in the history
Organized Files, Remade YTtoLBRY page, And some refactoring
  • Loading branch information
kodxana authored May 1, 2022
2 parents 6b8f193 + 5d9d041 commit cf85b39
Show file tree
Hide file tree
Showing 46 changed files with 412 additions and 626 deletions.
2 changes: 1 addition & 1 deletion src/global.d.ts → global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '*.md' {
var _: string
export default _
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"build:assets": "cpx \"src/**/*.{json,png,svg}\" dist/",
"watch:assets": "cpx --watch -v \"src/**/*.{json,png,svg}\" dist/",
"build:parcel": "cross-env NODE_ENV=production parcel build --no-source-maps --no-minify \"src/scripts/*.{js,jsx,ts,tsx}\" \"src/**/*.html\"",
"watch:parcel": "parcel watch --no-hmr --no-source-maps \"src/scripts/*.{js,jsx,ts,tsx}\" \"src/**/*.html\"",
"build:parcel": "cross-env NODE_ENV=production parcel build --no-source-maps --no-minify \"src/**/*.{js,jsx,ts,tsx}\" \"src/**/*.html\"",
"watch:parcel": "parcel watch --no-hmr --no-source-maps \"src/**/*.{js,jsx,ts,tsx}\" \"src/**/*.html\"",
"build:webext": "web-ext build --source-dir ./dist --overwrite-dest",
"build": "npm-run-all -l -p build:parcel build:assets",
"watch": "npm-run-all -l -p watch:parcel watch:assets",
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
77 changes: 63 additions & 14 deletions src/common/common.css → src/assets/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
}

:root {
font-size: .95rem;
font-family: Arial, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue, sans-serif;
letter-spacing: .2ch;
}

body#page {
--root-smallest-font-size: .95rem;
--root-font-size-relative-to-screen: 1;
font-size: max(var(--root-smallest-font-size), calc(min(1vw, 2vh) * var(--root-font-size-relative-to-screen)));
}

body {
background: linear-gradient(to left top, var(--color-master), var(--color-slave));
background-attachment: fixed;
Expand All @@ -24,7 +31,7 @@ body {

body::before {
content: "";
position: absolute;
position: fixed;
inset: 0;
background: rgba(19, 19, 19, 0.75);
}
Expand All @@ -36,6 +43,30 @@ body::before {
position: relative;
}

a {
cursor: pointer;
}

p,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
}

.options {
display: grid;
width: 100%;
grid-template-columns: repeat(auto-fit, minmax(3em, 1fr));
justify-content: center;
gap: .25em;
padding: 0 1.5em;
}

.button {
display: inline-flex;
Expand All @@ -48,14 +79,9 @@ body::before {
color: var(--color-light);

border-radius: .5em;
}
border: unset;

.filled {
background: var(--color-gradient-0);
background-clip: text;
-webkit-background-clip: text;
font-weight: bold;
color: transparent;
font-size: inherit;
}

.button.active {
Expand All @@ -77,13 +103,36 @@ body::before {
pointer-events: none;
}

.options {
.filled {
background: var(--color-gradient-0);
background-clip: text;
-webkit-background-clip: text;
font-weight: bold;
color: transparent;
}

.error {
display: grid;
width: 100%;
grid-template-columns: repeat(auto-fit, minmax(3em, 1fr));
justify-content: center;
gap: .25em;
padding: 0 1.5em;
grid-auto-flow: column;
gap: .5em;
align-items: center;
justify-content: start;
color: var(--color-error);
}

.error::before {
content: "!";
width: 2em;
aspect-ratio: 1/1;

display: grid;
place-items: center;
letter-spacing: 0;
line-height: 0;

border: .1em solid currentColor;
border-radius: 100000vw;
font-weight: bold;
}

.overlay {
Expand Down
21 changes: 0 additions & 21 deletions src/common/components/ButtonRadio.sass

This file was deleted.

31 changes: 0 additions & 31 deletions src/common/components/ButtonRadio.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/common/lbry-url.spec.ts

This file was deleted.

142 changes: 0 additions & 142 deletions src/common/lbry-url.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/common/style.sass

This file was deleted.

Loading

0 comments on commit cf85b39

Please sign in to comment.