Skip to content

Commit

Permalink
copy card URL to clipboard, arrow for threat/interface/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukifer committed Oct 5, 2024
1 parent 6dad9c1 commit e5039c6
Show file tree
Hide file tree
Showing 11 changed files with 270 additions and 67 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Fully Operational™, but WIP/YMMV.
- Fix subroutine indendation
- Fix ID images
- Markdown-style bold formatting
- Threat/Interface arrow icon
- Persistence
- Improve template and font integration
- Improve image resizing perf
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="theme-color" content="#000000" />
<link href='//fonts.googleapis.com/css?family=Lato|Noto+Serif:400,400italic,700|Cinzel:700|Orbitron:500,900' rel='stylesheet' type='text/css'>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<title>Self-Modifying Card</title>
</head>
<body>
Expand Down
127 changes: 113 additions & 14 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
},
"dependencies": {
"@thisbeyond/solid-select": "^0.14.0",
"base62str": "^1.0.10",
"html2canvas": "^1.4.1",
"search-params": "^4.0.1",
"solid-bootstrap": "^1.0.20",
"solid-js": "^1.8.17",
"textfit": "^2.4.0",
Expand Down
Binary file added public/img/jhow1.png
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/img/jhow2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 44 additions & 2 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
label {
user-select: none;
cursor: pointer;
white-space: nowrap;
}

.form-group.checkbox {
Expand All @@ -12,6 +13,7 @@ label {
margin-bottom: 15px;
}
.card-controls {
margin: 1.5rem 0;
white-space: nowrap;
}
.card-controls label,
Expand All @@ -31,12 +33,26 @@ label {
margin-left: 0.75rem;
margin-bottom: 0;
}
.card-controls select {
.select-wrapper {
position: relative;
&:before {
font-family: "Glyphicons Halflings";
position: absolute;
font-size: 1rem;
top: 1rem;
right: 0.5rem;
content: "\e252";
}
}
.card-controls .select-wrapper {
width: auto;
padding: 6px;
display: inline-block;
vertical-align: middle;
}
.card-controls select {
width: auto;
padding: 6px;
}

@font-face {
font-family: 'Netrunner';
Expand Down Expand Up @@ -210,13 +226,39 @@ footer {
position: relative;
}

.copy-clipboard {
width: 355px;
margin-top: 1rem;
font-size: 1rem;
i {
margin-right: 0.25rem;
}
.complete {
color: green;
margin-top: 1rem;
.warning {
color: gray;
}
}
pre {
margin-top: 0.5rem;
font-size: 1rem;
padding: 0.5rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}

.card {
width: 375px;
height: 525px;
background-position: top left;
background-size: contain;
position: relative;
margin-bottom: 10px;
border: 0;
border-radius: 2rem;

&.has-image img {
cursor: move;
Expand Down
Loading

0 comments on commit e5039c6

Please sign in to comment.