First pass at a styled front page. Have some ideas of things to do, which are mentioned in the CSS file :)

This commit is contained in:
Robert McGovern 2020-09-24 00:36:00 +01:00
parent 24a7398cc8
commit 7310427c8e
2 changed files with 136 additions and 14 deletions

View File

@ -9,27 +9,50 @@
<body>
<header>
<!-- some logo here -->
<h1>Practice Projects</h1>
<div class="header">
<h1 class="test">Practice Projects</h1>
</div>
<!-- consider a menu for jumping down page -->
</header>
<main>
<div class="blurb">
<p>These are projects completed to practice using HTML, CSS and Javascript. They come from different services, and most are freely available for anyone to practice with.</p>
<p>These are completed projects done to practice using HTML, CSS & Javascript. They come from different services, and most are freely available for anyone to practice with.</p>
&nbsp;
<p>I have put them all into a single GIT repository rather than litter my github page with many different projects. This may change in future depending on how many of these that I do.</p>
&nbsp;
<p>Robert McGovern</p>
</div>
<div class="projectsDiv">
<div class="frontEndMentorChallenges">
<h2>Frontend Mentor Challenges</h2>
<div class="newbieChallenges">
<h3>Newbie Challenges</h3>
<ul>
<li><a href="./FrontendMentor/huddle-landing-page-with-single-introductory-section-master/index.html">Huddle Landing Page with a Single Introductory Section</a></li>
<li><a href="./FrontendMentor/ping-coming-soon-page-master/index.html">Ping Coming-Soon page</a></li>
<li><a href="./FrontendMentor/single-price-grid-component-master/index.html">Single Price Grid Component page</a></li>
<li><a href="./FrontendMentor/four-card-feature-section/index.html">Four Card Feature Section page</a></li>
</ul>
</div>
</div>
<div class="freecodeCampProjects">
<h2>FreecodeCamp</h2>
<p>coming soon</p>
</div>
<div class="completeWebDev2020Projects">
<h2>Complete Web Development 2020</h2>
<p>coming soon</p>
</div>
<div class="vanillaJSProjects">
<h2>Vanilla JS Projects</h2>
<p>coming soon</p>
</div>
</div>
<ul>
<li>Frontend Mentor Challenges</li>
<ol>
<li><a href="./FrontendMentor/huddle-landing-page-with-single-introductory-section-master/index.html">Huddle Landing Page with a Single Introductory Section</a></li>
<li><a href="./FrontendMentor/ping-coming-soon-page-master/index.html">Ping Coming-Soon page</a></li>
<li><a href="./FrontendMentor/single-price-grid-component-master/index.html">Single Price Grid Component page</a></li>
</ol>
<li>FreecodeCamp</li>
<li>Complete Web Development 2020</li>
<li>Vanilla JS Projects</li>
</ul>
</main>
<footer>
<!-- some blurb here -->
<p>All projects are the work of Robert McGovern, 2020. <a href="emailto:work@tarasis.net">Email</a>, <a href="https://tarasis.net">Website/Blog</a></p>
<a href='http://www.heropatterns.com/'>Background SVG provided by Steve Schoger @ Hero Patterns</a>
</footer>
</body>
</html>

103
style.css
View File

@ -1,3 +1,102 @@
body {
background-color: whitesmoke;
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');
/*
* Hi, thank you for checking out my CSS. Layout is currently Rev 1.
* Plan is to do more interesting ones as I feel more comfortable doing things.
*
* For instance was thinking of swapping to a 3 column afair, with the title running
* vertically in the first column. Second column is the projects, third the blurb
*
* I'd like to add some animations and transitions, and a light and dark theme.
*/
:root {
font-size: 20px;
--marginTop: 0.5rem;
}
* {
margin: 0;
}
body {
/* background-color: whitesmoke; */
background-color: #f2f2f2;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ac2e2e' fill-opacity='0.24'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-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v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.header, .blurb, .projectsDiv {
background-color: rgba(0, 0, 0, 0.1);
border: 5px solid;
margin: 0 auto;
width: 50%;
box-sizing: border-box;
border-radius: 10px;
}
.blurb, .projectsDiv {
padding: 10px 20px;
}
.header {
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
border-color: lightcoral;
}
.header > h1 {
font-family: 'Black Ops One', cursive;
font-size: 3rem;
}
.blurb {
margin-top: 2rem;
border-color: rgba(216, 81, 201, 0.632);
font-family: 'Source Sans Pro', sans-serif;
}
.projectsDiv {
margin-top: 2rem;
font-family: 'Source Sans Pro', sans-serif;
border-color: rgba(0, 0, 0, 0.7);
}
.frontEndMentorChallenges, .freecodeCampProjects, .completeWebDev2020Projects, .vanillaJSProjects {
margin-top: var(--marginTop);
}
.projectsDiv h2 {
font-weight: 400;
}
.frontEndMentorChallenges {
}
.frontEndMentorChallenges .newbieChallenges {
margin-left: 1rem;
}
.newbieChallenges h3 {
font-weight: 600;
}
.freecodeCampProjects {
}
.completeWebDev2020Projects {
}
.vanillaJSProjects {
}
footer {
margin-top: 3rem;
text-align: center;
}
footer * {
margin-top: 1rem;
}
footer > a {
display: block;
}