some additional tweaks to CSS + addressed some accessibility concerns

This commit is contained in:
Robert McGovern 2021-09-11 15:02:40 +01:00
parent 75c631c7ef
commit 0b65465793
3 changed files with 50 additions and 45 deletions

View File

@ -8,20 +8,17 @@
}
:root {
--site-color: hsl(185, 75%, 39%);
--dark-cyan: hsl(185, 75%, 39%);
--dark-grayish-blue: hsl(227, 10%, 46%);
--very-dark-desaturated-blue: hsl(229, 23%, 23%);
--dark-gray: hsl(0, 0%, 59%);
--border-gray: hsla(228, 9%, 92%, 1);
/* default font stuff */
--page-base-font-size: 16px; /* for rem calculations*/
--default-font-size: 18px;
--location-font-size: 14px;
--label-font-size: 10px;
}
html {
@ -30,7 +27,7 @@ html {
}
body {
background-color: var(--site-color);
background-color: var(--dark-cyan);
font-size: var(--default-font-size);
font-weight: 700;
font-family: 'Kumbh Sans', sans-serif;
@ -78,6 +75,12 @@ body {
.nameAndAge {
margin-top: 4.5rem;
display: inline-flex;
padding-bottom: 0.25rem;
}
.border {
border: 1px solid var(--border-gray);
margin-top: 1.5rem;
}
.stats {
@ -98,11 +101,7 @@ body {
font-size: var(--location-font-size);
margin-top: 0.5rem;
}
.border {
border: 1px solid var(--border-gray);
margin-top: 1.5rem;
padding-bottom: 0.25rem;
}
.label {
@ -111,6 +110,7 @@ body {
color: var(--dark-grayish-blue);
margin-top: 0.5625rem;
padding-bottom: 0.1875rem;
}
.topCircle, .bottomCircle {

View File

@ -17,46 +17,50 @@
</style> -->
</head>
<body>
<div class="page">
<div class="topCircle"></div>
<div class="card">
<div class="details">
<div class="cardHeader">
<div class="photo"></div>
</div>
<div class="nameAndAge">
<div class="name">
Victor Crest
<main>
<div class="page">
<div class="topCircle"></div>
<div class="card">
<div class="details">
<div class="cardHeader">
<div class="photo"></div>
</div>
<div class="age">
26
<div class="nameAndAge">
<div class="name">
Victor Crest
</div>
<div class="age">
26
</div>
</div>
<div class="location">
London
</div>
</div>
<div class="location">
London
</div>
</div>
<div class="border"></div>
<div class="stats">
<div class="followers">
<div class="stat">80K</div>
<div class="label">Followers</div>
</div>
<div class="likes">
<div class="stat">803K</div>
<div class="label">Likes</div>
</div>
<div class="photos">
<div class="stat">1.4K</div>
<div class="label">Photos</div>
<div class="border"></div>
<div class="stats">
<div class="followers">
<div class="stat">80K</div>
<div class="label">Followers</div>
</div>
<div class="likes">
<div class="stat">803K</div>
<div class="label">Likes</div>
</div>
<div class="photos">
<div class="stat">1.4K</div>
<div class="label">Photos</div>
</div>
</div>
</div>
<div class="bottomCircle"></div>
</div>
<div class="bottomCircle"></div>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/tarasis">Robert McGovern</a>.
</div>
</main>
<footer>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/tarasis">Robert McGovern</a>.
</div>
</footer>
</body>
</html>

View File

@ -34,6 +34,7 @@
<li><a href="./FrontendMentor/newbie/four-card-feature-section/index.html">Four Card Feature Section page</a></li>
<li><a href="./FrontendMentor/newbie/article-preview-component/index.html">Article Preview Component</a></li>
<li><a href="./FrontendMentor/newbie/stats-preview-card-component/index.html">Stats Preview Card Component</a></li>
<li><a href="./FrontendMentor/newbie/profile-card-component/">Profile Card Component</a></li>
</ul>
</div>
</div>