diff --git a/FrontendMentor/newbie/profile-card-component/css/style.css b/FrontendMentor/newbie/profile-card-component/css/style.css index 0ba4501..3e001b6 100644 --- a/FrontendMentor/newbie/profile-card-component/css/style.css +++ b/FrontendMentor/newbie/profile-card-component/css/style.css @@ -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; @@ -66,18 +63,39 @@ body { position: relative; margin: 0 auto; background: url(../images/image-victor.jpg); + background-size: contain; width: 96px; height: 96px; - border: 5px solid #FFFFFF; border-radius: 50%; - /* left: calc(50% - 96px/2); */ top: calc(100% - 96px/2); } +.photo:after { + border-radius: 50%; + padding: 5px; + border: 5px solid white; + position: absolute; + content: ''; + top: -5px; + left: -5px; + bottom: -5px; + right: -5px; + } + .nameAndAge { margin-top: 4.5rem; display: inline-flex; + padding-bottom: 0.25rem; +} + +.name, .stat { + font-weight: bold; +} + +.border { + border: 1px solid var(--border-gray); + margin-top: 1.5rem; } .stats { @@ -98,19 +116,17 @@ 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 { font-weight: 400; font-size: var(--label-font-size); color: var(--dark-grayish-blue); + letter-spacing: 1.5px; margin-top: 0.5625rem; + padding-bottom: 0.1875rem; } .topCircle, .bottomCircle { @@ -137,14 +153,14 @@ body { left: 100%; } -.attribution { +footer { position: absolute; + bottom: 1rem; +} + +.attribution { font-size: 11px; text-align: center; bottom: 1rem; } .attribution a { color: hsl(228, 45%, 44%); } - -@media screen and (min-width: 1100px) { - -} diff --git a/FrontendMentor/newbie/profile-card-component/index.html b/FrontendMentor/newbie/profile-card-component/index.html index 5b6ebb4..0b53c90 100644 --- a/FrontendMentor/newbie/profile-card-component/index.html +++ b/FrontendMentor/newbie/profile-card-component/index.html @@ -17,46 +17,50 @@ --> -
-
-
-
-
-
-
-
-
- Victor Crest +
+
+
+
+
+
+
+
+
+
+ Victor Crest +
+
+ 26 +
+
+
+ London
-
- 26 -
-
- London -
-
-
-
-
-
80K
-
Followers
-
- -
-
1.4K
-
Photos
+
+
+
+
80K
+
Followers
+
+ +
+
1.4K
+
Photos
+
+
-
-
-
- Challenge by Frontend Mentor. - Coded by Robert McGovern. -
+
+ \ No newline at end of file diff --git a/README.md b/README.md index 263824c..3dc58e5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # tarasis.github.io -Temporary store for various completed Web Development exercises +A repo for completed Web Development exercises diff --git a/playground.css b/css/playground.css similarity index 100% rename from playground.css rename to css/playground.css diff --git a/css/reset.css b/css/reset.css new file mode 100644 index 0000000..c55d559 --- /dev/null +++ b/css/reset.css @@ -0,0 +1,76 @@ +/* Andy Bell CSS Modern Reset https://piccalil.li/blog/a-modern-css-reset/ */ + +/* Box sizing rules */ +*, +*::before, +*::after { + box-sizing: border-box; +} + +/* Remove default margin */ +body, +h1, +h2, +h3, +h4, +p, +figure, +blockquote, +dl, +dd { + margin: 0; +} + +/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ +ul[role='list'], +ol[role='list'] { + list-style: none; +} + +/* Set core root defaults */ +html:focus-within { + scroll-behavior: smooth; +} + +/* Set core body defaults */ +body { + min-height: 100vh; + text-rendering: optimizeSpeed; + line-height: 1.5; +} + +/* A elements that don't have a class get default styles */ +a:not([class]) { + text-decoration-skip-ink: auto; +} + +/* Make images easier to work with */ +img, +picture { + max-width: 100%; + display: block; +} + +/* Inherit fonts for inputs and buttons */ +input, +button, +textarea, +select { + font: inherit; +} + +/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ +@media (prefers-reduced-motion: reduce) { + html:focus-within { + scroll-behavior: auto; + } + + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } +} diff --git a/style.css b/css/style.css similarity index 54% rename from style.css rename to css/style.css index cd862aa..aa3a562 100644 --- a/style.css +++ b/css/style.css @@ -1,7 +1,7 @@ -@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'); +@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. +* Hi, thank you for checking out my CSS. Layout is currently Rev 2. * Plan is to do more interesting ones as I feel more comfortable doing things. * * For instance was thinking of swapping to a 3 column affair, with the title running @@ -11,8 +11,12 @@ */ :root { - font-size: 20px; + font-size: 1.25rem; --marginTop: 0.5rem; + + --pinky-color: rgba(216, 81, 201, 0.632); + --lightcoral-color: lightcoral; + --projects-border-color: green; } * { @@ -25,49 +29,56 @@ body { 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-1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 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); } -.header, .blurb, .projectsDiv { +.header, +.blurb, +.projectsDiv { background-color: rgba(0, 0, 0, 0.1); border: 5px solid; margin: 0 auto; width: 90%; max-width: 700px; box-sizing: border-box; - border-radius: 10px; + border-radius: 10px; } -.blurb, .projectsDiv { +.blurb, +.projectsDiv { padding: 10px 20px; margin-top: 2rem; - font-family: 'Source Sans Pro', sans-serif; + font-family: "Source Sans Pro", sans-serif; } .header { text-align: center; padding-top: 10px; padding-bottom: 10px; - border-color: lightcoral; + border-color: var(--lightcoral-color); } .header > h1 { - font-family: 'Black Ops One', cursive; + font-family: "Black Ops One", cursive; /* scale the font from size used on mobile to "desktop" */ font-size: min(max(2.5rem, 8vw), 3rem); } .blurb { - border-color: rgba(216, 81, 201, 0.632); + border-color: var(--pinky-color); } .projectsDiv { border-color: rgba(0, 0, 0, 0.7); } -.frontEndMentorChallenges, .freecodeCampProjects, .completeWebDev2020Projects, .vanillaJSProjects { +.frontEndMentorChallenges, +.freecodeCampProjects, +.completeWebDev2020Projects, +.vanillaJSProjects { margin-top: var(--marginTop); } -.projectsDiv h2 { - font-weight: 400; +.projectsSection__title { + font-weight: 600; + font-size: 1.8rem; } /* .frontEndMentorChallenges {} */ @@ -76,8 +87,10 @@ body { margin-left: 1rem; } -.newbieChallenges h3 { +.newbieChallenges > h3, +.responsiveProjects > h3 { font-weight: 600; + font-size: 1.3rem; } /* .freecodeCampProjects {} */ @@ -87,7 +100,7 @@ body { footer { margin-top: 3rem; text-align: center; - font-size: 16px; + font-size: 0.9rem; margin-left: auto; margin-right: auto; width: 85%; @@ -99,4 +112,118 @@ footer * { footer > a { display: block; -} \ No newline at end of file +} + +.alignedHeader { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + margin-bottom: 1rem; +} + +.alignedHeader img { + /* /* width: 100%; */ + height: 100%; + + /* margin-left: auto; */ +} + +.stacked { + display: grid; +} + +.stacked > * { + grid-column: 1/2; + grid-row: 1/2; +} + +.card__content { + z-index: 10; + background: rgba(255, 255, 255, 0.9); + backdrop-filter: blur(100px); + -webkit-backdrop-filter: blur(100px); + align-self: end; + margin: 0.5rem; /*.5rem 2rem;*/ + padding: 0.5rem; + + box-shadow: 0 0.25rem 1rem rgba(0 0 0 / 0.1); + border: gray 2px dashed; + border-radius: 5px; +} + +.projects-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); + gap: 0.25rem; + margin-top: 0.5rem; +} + +.projectsDiv > * { + margin-bottom: 1rem; +} + +.project-card { + border: 3px solid var(--projects-border-color); + border-radius: 10px; + aspect-ratio: 1 / 1.4; + overflow: hidden; +} + +.card__img { + width: 100%; + aspect-ratio: 1 / 1.25; + object-fit: cover; +} + +.card__techUsed { + list-style: none; + display: flex; + /* align-content: space-evenly; */ + justify-content: space-evenly; + align-items: center; + + /* font-size: 0.625rem; */ +} + +/* .card__techUsed > li { + margin: 0; +} */ + +.card__techUsed img { + margin-top: 0.25rem; + width: 100%; + height: 100%; +} + +.card__title { + font-size: 0.75rem; + font-weight: 600; + line-height: 1.1; + color: darkred; + text-align: center; +} + +.card__description { + font-size: 0.625rem; + line-height: 1.2; +} + +@media (min-width: 38em) { + .card__img { + aspect-ratio: 1 / 1; + } + + .project-card.featured { + grid-row: span 2; + grid-column: span 2; + } + + .project-card.featured .card__img { + aspect-ratio: 1 / 1.33; + } + + .project-card.featured .card__title { + font-size: 1.25rem; + } +} diff --git a/index.html b/index.html index 3e33f5e..8d69cff 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,14 @@ + - - + + Practice Projects - + + +
@@ -16,63 +19,328 @@
-

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.

+

+ 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. +

  -

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.

+

+ 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. +

 

Robert McGovern

-
- -
-

FreecodeCamp

-
-

Responsive Web Design Projects

-

Note: As of 11 Oct 2020, these require a partial rework to look good on mobile. 1-3 where written much earlier in my learning, so while they fufill all the requirements, they don't look great on mobile.

- -
-
-
-

Complete Web Development 2020

-

coming soon

-
-
-

Vanilla JS Projects

-

coming soon

-
-
-

Playground

-

Intended for just little snippets of code that look useful

- The Playground -
+
+
+

Frontend Mentor

+ Frontend Mentor +
+

Collection of challenges I completed for Frontend Mentor

+
+

Newbie Challenges

+ +
+ + +
+ + Ping Coming-Soon Challenge from FrontendMentor + +
+

Ping Coming-Soon

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
  • + JavaScript +
  • +
+
+
+ +
+ + Single Price Grid Component Challenge from FrontendMentor + +
+

+ Single Price Grid Component +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+ +
+ + Four Card Feature Section Challenge from FrontendMentor + +
+

+ Four Card Feature Section +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+ +
+ + Article Preview Component Challenge from FrontendMentor + +
+

+ Article Preview Component +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+ +
+ + Stats Preview Card Component Challenge from FrontendMentor + +
+

+ Stats Preview Card Component +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+ +
+ + Profile Card Component Challenge from FrontendMentor + +
+

+ Profile Card Component +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+
+
+
+ +
+
+

Freecodecamp

+ Freecodecamp +
+
+

Responsive Web Design Projects

+

+ Note: As of 11 Oct 2020, these require a partial rework + to look good on mobile. 1-3 where written much earlier + in my learning, so while they fufill all the + requirements, they don't look great on mobile. +

+
+
+ + Project 1 - Tribute Page + +
+

+ Project 1 - Tribute Page +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+
+ + Project 2 - Build A Survey Form + +
+

+ Project 2 - Build A Survey Form +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+
+ + Project 3 - Product Landing Page + +
+

+ Project 3 - Product Landing Page +

+ +
    +
  • + HTML5 +
  • +
  • + CSS3 +
  • +
+
+
+
+
+
+ +
+ +
+

+ The Complete 2022 Web Development Bootcamp +

+ The Complete 2022 Web Development Bootcamp Udemy Course +
+

coming soon

+
+ +
+

Vanilla JS Projects

+

coming soon

+
+ +
+

Playground

+

+ Intended for just little snippets of code that look useful +

+ The Playground
+ - + + \ No newline at end of file diff --git a/js/script.js b/js/script.js new file mode 100644 index 0000000..605f081 --- /dev/null +++ b/js/script.js @@ -0,0 +1,3 @@ +// use strict + +// An empty JS for the moment :) Shh diff --git a/notes.md b/notes.md index 9961955..9f3ad08 100644 --- a/notes.md +++ b/notes.md @@ -1,66 +1,73 @@ # Notes ## Overview + --- Aim of this document is to make notes of various things as I encounter them. Consider it learning from working through specific challenges or other exercises. Probably should be in a note app, or a wiki, or something, but for now they are here. -Think of it as a combination of learning, and tips and tricks. They will start unorganised, and then should be put into some semblance of order; where that is possible. +Think of it as a combination of learning, and tips and tricks. They will start unorganised, and then should be put into some semblance of order; where that is possible. Note took far to long, but site now using main for branch. ## The Notes Themselves (unorganised) + --- -* Now little difference between `` and `