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

Resolve SVG rendering as black rectangle #109

Merged
merged 7 commits into from
Sep 18, 2024
Merged
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: 1 addition & 0 deletions app/frontend/advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<include src="./partials/head-content.html"></include>
<link rel="stylesheet" href="styles/table.css" />
<link rel="stylesheet" href="styles/advanced.css" />
<link rel="stylesheet" href="styles/model-diagram.css" />
<script src="scripts/advanced-default.js"></script>
<script src="scripts/api.js"></script>
<script src="scripts/questions-object.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/content/definitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2>Learn about DiAGRAM</h2>
<p>DiAGRAM tells you how well you are managing your digital preservation risks. It does this by calculating two probabilities:</p>

<ol>
<li>intellectual control defined as the probability that you have full knowledge of the files content, provenance and conditions of use</li>
<li>intellectual control defined as the probability that you have full knowledge of the file's content, provenance and conditions of use</li>
<li>renderability defined as the probability that you can provide a sufficiently useful representation of the original file</li>
</ol>

Expand Down
6 changes: 3 additions & 3 deletions app/frontend/content/home.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<main id="main" tabindex="-1">
<div class="box-body">
<h2 align="center" class="main-title">
<h2 class="main-title text-center">
DiAGRAM - The <b>Di</b>gital <b>A</b>rchiving <b>G</b>raphical <b>R</b>isk <b>A</b>ssessment <b>M</b>odel
</h2>
<div style="text-align:center">
<div class="text-center">
<img src="www/diagram_logo_transparent.png" srcset="www/diagram_logo_transparent.png 1x, www/[email protected] 2x, www/[email protected] 3x" width="400px" alt="" class="block">
</div>
<h3 align="center">Version 1.0.0</h3>
<h3 class="text-center">Version 1.0.0</h3>
<p>DiAGRAM is an online tool designed to help archivists manage the risks to their digital collections. By answering a <a href="www/final_questions.pdf" target="_blank" download="">set of questions</a> relating to archives such as storage media, system security and technical skills, the tool will use statistical methods to calculate the probability that your digital material is preserved.</p>

<h4>Who created it?</h4>
Expand Down
5 changes: 3 additions & 2 deletions app/frontend/definitions.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Learn about DiAGRAM - DiAGRAM</title>
<include src="./partials/head-content.html"></include>
<title>Learn about DiAGRAM - DiAGRAM</title>
<include src="./partials/head-content.html"></include>
<link rel="stylesheet" href="styles/model-diagram.css" />
</head>
<body data-page="definitions">
<div class="outer-wrapper">
Expand Down
5 changes: 3 additions & 2 deletions app/frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home page - DiAGRAM</title>
<include src="./partials/head-content.html"></include>
<title>Home page - DiAGRAM</title>
<include src="./partials/head-content.html"></include>
<link rel="stylesheet" href="styles/model-diagram.css" />
</head>
<body data-page="index">
<div class="outer-wrapper">
Expand Down
107 changes: 107 additions & 0 deletions app/frontend/styles/model-diagram.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
figure > svg#diagram-network .st1 {
fill: #f9f6e2;
stroke: none;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st2 {
fill: #48cd00;
marker-end: url(#mrkr13-6);
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st3 {
fill: #000000;
fill-opacity: 1;
stroke: #000000;
stroke-opacity: 1;
stroke-width: 0.22935779816514
}

figure > svg#diagram-network .st4 {
fill: #000000;
font-family: Roboto Mono;
font-size: 1.25em
}

figure > svg#diagram-network .st5 {
font-size: 1em
}

figure > svg#diagram-network .st6 {
fill: #48cd00;
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st7 {
fill: #ffffff;
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st8 {
marker-end: url(#mrkr13-6);
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st9 {
fill: #ffffff;
marker-end: url(#mrkr13-6);
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st10 {
fill: #5400cd;
marker-end: url(#mrkr13-6);
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st11 {
fill: #ffffff;
font-family: Roboto Mono;
font-size: 1.25em
}

figure > svg#diagram-network .st12 {
fill: #ff6e3a;
stroke: #000000;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 0.75
}

figure > svg#diagram-network .st13 {
fill: none;
fill-rule: evenodd;
font-size: 12px;
overflow: visible;
stroke-linecap: square;
stroke-miterlimit: 3
}

figure > svg#diagram-network text {
user-select: none
}

figure > svg#diagram-network .noStroke {
stroke: none;
}
4 changes: 4 additions & 0 deletions app/frontend/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ h1, h2, h3, h4, h5, h6 {
font-weight: bold;
}

.text-center {
text-align: center;
}

.box-body h1,
.box-body h2,
Expand All @@ -49,6 +52,7 @@ h1, h2, h3, h4, h5, h6 {

h2.main-title {
font-family: 'supria-sans-condensed', sans-serif;
font-weight: normal;
}

.outer-wrapper, .main-and-foot {
Expand Down
20 changes: 1 addition & 19 deletions app/frontend/www/diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading