Skip to content

Commit ebe9261

Browse files
Improve styling
1 parent 62c9b63 commit ebe9261

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

src/index.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@ input:focus{
9696
border-bottom:2px solid #fff;
9797
}
9898

99+
.outermain-content {
100+
display: none; /* by default, main-content is not visible until enable by the javascript menu - except content0 (see below) */
101+
}
102+
.innermain-content {
103+
margin-left: 1em;
104+
position: absolute;
105+
top: 50%;
106+
transform: translateY(-50%);
107+
}
108+
#content4 .innermain-content {
109+
width: 70%;
110+
}
99111
.main-content {
100112
display: none; /* by default, main-content is not visible until enable by the javascript menu - except content0 (see below) */
101113
flex-wrap: wrap;
@@ -308,7 +320,6 @@ img.headericon {
308320

309321
#content6 img.laptop {
310322
position: absolute;
311-
top: 20%;
312323
width: 55%;
313324
}
314325

src/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ <h1>We'd love to know which feature to focus on next.</h1>
7878
</div>
7979
</div>
8080
</div>
81-
<div class="main-content" id="content4">
82-
<div class="twocolumns column1">
81+
<div class="outermain-content" id="content4">
82+
<div class="onecolumn innermain-content">
8383
<h1>As you know, writing and maintaining quality software is not cheap...</h1>
8484
<p>We are aiming to keep this project well-maintained, bug-free, and reliable long-term.</p>
8585
<p>Therefore, your generous donations are always appreciated.</p>
@@ -93,7 +93,7 @@ <h3>You'll be able to add a comment to your donation, so use that to reach out i
9393
</div>
9494
<div class="main-content" id="content5">
9595
<div class="onecolumn">
96-
<h1 class="about">PeerViewer is a remote desktop and support solution, completely free for unlimited personal and commercial use.</h1>
96+
<h1 class="about" id="h1about">PeerViewer is a remote desktop and support solution, completely free for unlimited personal and commercial use.</h1>
9797
<p>
9898
Under the hood, it uses direct (peer-to-peer) connections between the participants. This was recently made possible by the power of the <a href="https://pears.com/" target="_blank"><img class="pearslogo" src="../images/pears-logo.svg" alt="Pear Runtime Logo"/>Pear Runtime</a>.</p>
9999
<!--
@@ -147,6 +147,8 @@ <h3>Building blocks</h3>
147147
<script>
148148
function adaptForWeb() {
149149
menuChange(null,6);
150+
let h1about = document.getElementById("h1about")
151+
if (h1about) h1about.style.fontSize = "62px";
150152
}
151153
function startup() {
152154
try {

0 commit comments

Comments
 (0)