added more to layout, and a test image

added some css classes, one for the main image and a spare one to add orange to anything.
This commit is contained in:
Nye Evans 2020-12-27 13:21:53 +00:00
parent 0182ccffb1
commit 4aa080aa0b
3 changed files with 51 additions and 6 deletions

BIN
Images/TestImage.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -18,23 +18,61 @@ body{
max-height: 100rem; max-height: 100rem;
display: grid; display: grid;
grid-template-columns: repeat(12, 1fr); grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(10, 1fr); grid-template-rows: repeat(20, 1fr);
gap: 1%; gap: 1%;
} }
h1{ h1, h2, h3{
font-size: 500%;
padding-left: 6;
background-color: #ffa500; background-color: #ffa500;
background: radial-gradient(#E39823 40%, #8D5001); background: radial-gradient(#E39823 40%, #8D5001);
border-radius: 5px; border-radius: 5px;
/*url("C:/Users/Nye/Documents/GitHub/Portfolio-Site/Images/NoiseFilter.png");*/ /*url("C:/Users/Nye/Documents/GitHub/Portfolio-Site/Images/NoiseFilter.png");*/
}
h1{
font-size: 500%;
padding-left: 6;
grid-column-start: 1; grid-column-start: 1;
grid-column-end: 5; grid-column-end: 5;
grid-row-start: 2; grid-row-start: 2;
grid-row-end: 4; grid-row-end: 4;
} }
h2{
padding: 5;
letter-spacing: 0.05rem;
line-height: 1.2rem;
grid-column-start: 2;
grid-column-end: 12;
grid-row-start: 8;
grid-row-end: 11;
}
.titleScreenArea{ /*the large empty space around the title*/
grid-column-start: 1;
grid-column-end: 13;
grid-row-start: 4;
grid-row-end: 8;
}
.mainImage{ /*image between first and second paragraph, only image on page but using class just incase i need another one later*/
grid-column-start: 2;
grid-column-end: 12;
grid-row-start: 12;
grid-row-end: 14;
width: 100%;
height: auto;
}
.orangeBack{ /*for anything that isnt a <h> tag*/
background-color: #ffa500;
background: radial-gradient(#E39823 40%, #8D5001);
border-radius: 5px;
}

View file

@ -1,11 +1,18 @@
<HTML> <HTML>
<header> <header>
<link rel="stylesheet" href="Mainpage.css"> <link rel = "stylesheet" href = "Mainpage.css">
</header> </header>
<body> <body>
<h1 class="positioned"> <h1 class = "positioned">
Nye Evans Nye Evans
<div style = "font-size: 30%; padding-top: 10;">Portfolio</div> <div style = "font-size: 30%; padding-top: 10;">Portfolio</div>
</h1> </h1>
<div class = "titleScreenArea"> </div>
<h2>
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"
</h2>
<div class = "orangeBack mainImage">
<img src = "Images\TestImage.jpg" style = "padding: 10;">
</div>
</body> </body>
</HTML> </HTML>