Compare commits

..

No commits in common. "main" and "3.0test" have entirely different histories.

74 changed files with 403 additions and 2390 deletions

View File

@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node-version: [20.x]
node-version: [17.x]
steps:
- uses: actions/checkout@v2

226
package-lock.json generated
View File

@ -17,8 +17,7 @@
"open-props": "^1.3.9"
},
"devDependencies": {
"@11ty/eleventy": "3.0.0-alpha.4",
"lightningcss-cli": "^1.24.0"
"@11ty/eleventy": "3.0.0-alpha.4"
}
},
"node_modules/@11ty/dependency-tree": {
@ -1346,229 +1345,6 @@
"node": ">=6"
}
},
"node_modules/lightningcss-cli": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli/-/lightningcss-cli-1.24.0.tgz",
"integrity": "sha512-doj/5w6LlZUjDDg3RCRKwTu5duQCrKEHGL8DXLi0rEau58aehmKgf2dfj+9zshCkJTj+a+OpHDyPU1J2GO/aBg==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
"detect-libc": "^1.0.3"
},
"bin": {
"lightningcss": "lightningcss"
},
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
},
"optionalDependencies": {
"lightningcss-cli-darwin-arm64": "1.24.0",
"lightningcss-cli-darwin-x64": "1.24.0",
"lightningcss-cli-freebsd-x64": "1.24.0",
"lightningcss-cli-linux-arm-gnueabihf": "1.24.0",
"lightningcss-cli-linux-arm64-gnu": "1.24.0",
"lightningcss-cli-linux-arm64-musl": "1.24.0",
"lightningcss-cli-linux-x64-gnu": "1.24.0",
"lightningcss-cli-linux-x64-musl": "1.24.0",
"lightningcss-cli-win32-x64-msvc": "1.24.0"
}
},
"node_modules/lightningcss-cli-darwin-arm64": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-darwin-arm64/-/lightningcss-cli-darwin-arm64-1.24.0.tgz",
"integrity": "sha512-ryzm4Sc0JP4Dsz3L6GLpVCd8UQD5dY/skMy5WXIIMpMX+YwNfm02vgAwjddk3y0zENCHVyY/K0cnszVvhK65uQ==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-darwin-x64": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-darwin-x64/-/lightningcss-cli-darwin-x64-1.24.0.tgz",
"integrity": "sha512-CmJSNmKwfFIbzbK0TBQpJsnEYczed8Y9U5hFGSxVE4CTcQXFAJXvMbj5ST4lv/VxcnvyfyJNPl78cfUfA24M/Q==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-freebsd-x64": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-freebsd-x64/-/lightningcss-cli-freebsd-x64-1.24.0.tgz",
"integrity": "sha512-c/qRQahVMq5T+N9p6ct01QN2PZfM65Kxc91EQGSvBmYVDBJK8Z/EOIwu11F6asNbe7V/2OCTmAa29if5lXl9RA==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-linux-arm-gnueabihf": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-linux-arm-gnueabihf/-/lightningcss-cli-linux-arm-gnueabihf-1.24.0.tgz",
"integrity": "sha512-JebGRmOMfestjpu/74LgvzLC6blzNQjL2PeUpz43d5O/WT0ssaygZuo6VqzZt3nYGW0NueZQwWIMSyryh3LW0A==",
"cpu": [
"arm"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-linux-arm64-gnu": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-linux-arm64-gnu/-/lightningcss-cli-linux-arm64-gnu-1.24.0.tgz",
"integrity": "sha512-0Q6WflV2Q+Y0TjkBbegt/2oQbyFhpERMiR3YcoLaulUN/pnesCKmlC08cPDQ/vX5xQF9Y9sYHcd2QXs2cLhpMA==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-linux-arm64-musl": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-linux-arm64-musl/-/lightningcss-cli-linux-arm64-musl-1.24.0.tgz",
"integrity": "sha512-m1mi/+TaVFZ44l9pMfMn3u1soZOINdljJ8bCUWN+cqeOyZrNY8hUIy7dZXd+HWkrdzUaMYjdzlgEV0PB7wwSBA==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-linux-x64-gnu": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-linux-x64-gnu/-/lightningcss-cli-linux-x64-gnu-1.24.0.tgz",
"integrity": "sha512-4SL/ogzO9iVK6fHEZ7qaCrKgZck3uFJFAPOEKYbA7d+lzByiOG+e9tW/8t+JpbNHu693X32u502AG9ZyXrxurg==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-linux-x64-musl": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-linux-x64-musl/-/lightningcss-cli-linux-x64-musl-1.24.0.tgz",
"integrity": "sha512-u7lgtntJZH/8AWwT5+TBS3fj2OO/tcYJsrxZHzWumz7UaT6Etogh9Vehzlxb/U9yUl/yfeAfLQp93g0nM7ZyaA==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli-win32-x64-msvc": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/lightningcss-cli-win32-x64-msvc/-/lightningcss-cli-win32-x64-msvc-1.24.0.tgz",
"integrity": "sha512-i90UzVhYMwYYKQQqkjsGv6whr2RHuBFPzh4k9N8sg+jI5JwskXAnSBattQPCt+lICJoaBdT0gBSRvepGUMVf4w==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-cli/node_modules/detect-libc": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
"integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==",
"dev": true,
"bin": {
"detect-libc": "bin/detect-libc.js"
},
"engines": {
"node": ">=0.10"
}
},
"node_modules/linkify-it": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",

View File

@ -17,8 +17,7 @@
"author": "Robert McGovern",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "3.0.0-alpha.4",
"lightningcss-cli": "^1.24.0"
"@11ty/eleventy": "3.0.0-alpha.4"
},
"dependencies": {
"@11ty/eleventy-img": "^3.1.8",

View File

@ -1,16 +0,0 @@
# Avoid accidental upload of the Sketch and Figma design files
#####################################################
## Please do not remove lines 5 and 6 - thanks! 🙂 ##
#####################################################
*.sketch
*.fig
# Avoid accidental XD upload if you convert the design file
###############################################
## Please do not remove line 12 - thanks! 🙂 ##
###############################################
*.xd
# Avoid your project being littered with annoying .DS_Store files!
.DS_Store
.prettierignore

View File

@ -1,16 +0,0 @@
{
"extends": [
"development"
],
"hints": {
"compat-api/css": [
"default",
{
"ignore": [
"@layer",
"@layer"
]
}
]
}
}

View File

@ -1,3 +0,0 @@
{
"cSpell.ignoreWords": ["figtree", "wght"]
}

View File

@ -1,93 +0,0 @@
# Frontend Mentor - Blog preview card
![Design preview for the Blog preview card coding challenge](./design/desktop-preview.jpg)
## Welcome! 👋
Thanks for checking out this front-end coding challenge.
[Frontend Mentor](https://www.frontendmentor.io) challenges help you improve your coding skills by building realistic projects.
**To do this challenge, you need a basic understanding of HTML and CSS.**
## The challenge
Your challenge is to build out this blog preview card and get it looking as close to the design as possible.
You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.
Your users should be able to:
- See hover and focus states for all interactive elements on the page
Want some support on the challenge? [Join our community](https://www.frontendmentor.io/community) and ask questions in the **#help** channel.
## Where to find everything
Your task is to build out the project to the designs inside the `/design` folder. You will find both a mobile and a desktop version of the design.
The designs are in JPG static format. Using JPGs will mean that you'll need to use your best judgment for styles such as `font-size`, `padding` and `margin`.
If you would like the design files (we provide Sketch & Figma versions) to inspect the design in more detail, you can [subscribe as a PRO member](https://www.frontendmentor.io/pro).
All the required assets for this project are in the `/assets` folder. The images are already exported for the correct screen size and optimized.
We also include variable and static font files for the required fonts for this project. You can choose to either link to Google Fonts or use the local font files to host the fonts yourself. Note that we've removed the static font files for the font weights that aren't needed for this project.
There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts.
## Building your project
Feel free to use any workflow that you feel comfortable with. Below is a suggested process, but do not feel like you need to follow these steps:
1. Initialize your project as a public repository on [GitHub](https://github.com/). Creating a repo will make it easier to share your code with the community if you need help. If you're not sure how to do this, [have a read-through of this Try Git resource](https://try.github.io/).
2. Configure your repository to publish your code to a web address. This will also be useful if you need some help during a challenge as you can share the URL for your project with your repo URL. There are a number of ways to do this, and we provide some recommendations below.
3. Look through the designs to start planning out how you'll tackle the project. This step is crucial to help you think ahead for CSS classes to create reusable styles.
4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content.
5. Write out the base styles for your project, including general content styles, such as `font-family` and `font-size`.
6. Start adding styles to the top of the page and work down. Only move on to the next section once you're happy you've completed the area you're working on.
## Deploying your project
As mentioned above, there are many ways to host your project for free. Our recommend hosts are:
- [GitHub Pages](https://pages.github.com/)
- [Vercel](https://vercel.com/)
- [Netlify](https://www.netlify.com/)
You can host your site using one of these solutions or any of our other trusted providers. [Read more about our recommended and trusted hosts](https://medium.com/frontend-mentor/frontend-mentor-trusted-hosting-providers-bf000dfebe).
## Create a custom `README.md`
We strongly recommend overwriting this `README.md` with a custom one. We've provided a template inside the [`README-template.md`](./README-template.md) file in this starter code.
The template provides a guide for what to add. A custom `README` will help you explain your project and reflect on your learnings. Please feel free to edit our template as much as you like.
Once you've added your information to the template, delete this file and rename the `README-template.md` file to `README.md`. That will make it show up as your repository's README file.
## Submitting your solution
Submit your solution on the platform for the rest of the community to see. Follow our ["Complete guide to submitting solutions"](https://medium.com/frontend-mentor/a-complete-guide-to-submitting-solutions-on-frontend-mentor-ac6384162248) for tips on how to do this.
Remember, if you're looking for feedback on your solution, be sure to ask questions when submitting it. The more specific and detailed you are with your questions, the higher the chance you'll get valuable feedback from the community.
## Sharing your solution
There are multiple places you can share your solution:
1. Share your solution page in the **#finished-projects** channel of our [community](https://www.frontendmentor.io/community).
2. Tweet [@frontendmentor](https://twitter.com/frontendmentor) and mention **@frontendmentor**, including the repo and live URLs in the tweet. We'd love to take a look at what you've built and help share it around.
3. Share your solution on other social channels like LinkedIn.
4. Blog about your experience building your project. Writing about your workflow, technical choices, and talking through your code is a brilliant way to reinforce what you've learned. Great platforms to write on are [dev.to](https://dev.to/), [Hashnode](https://hashnode.com/), and [CodeNewbie](https://community.codenewbie.org/).
We provide templates to help you share your solution once you've submitted it on the platform. Please do edit them and include specific questions when you're looking for feedback.
The more specific you are with your questions the more likely it is that another member of the community will give you feedback.
## Got feedback for us?
We love receiving feedback! We're always looking to improve our challenges and our platform. So if you have anything you'd like to mention, please email hi[at]frontendmentor[dot]io.
This challenge is completely free. Please share it with anyone who will find it useful for practice.
**Have fun building!** 🚀

View File

@ -1,71 +0,0 @@
# Frontend Mentor - Blog preview card solution
This is a solution to the [Blog preview card challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/blog-preview-card-ckPaj01IcS). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Frontend Mentor - Blog preview card solution](#frontend-mentor---blog-preview-card-solution)
- [Table of contents](#table-of-contents)
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
## Overview
### The challenge
Users should be able to:
- See hover and focus states for all interactive elements on the page
### Screenshot
Mobile
![](./screenshots/mobile.png)
Desktop
![](./screenshots/desktop.png)
### Links
- Solution URL: [Github](https://github.com/tarasis/tarasis.github.io/tree/main/projects/FrontendMentor/newbie/blog-preview-card)
- Live Site URL: [Tarasis Github.io](https://tarasis.github.io/projects/FrontendMentor/newbie/blog-preview-card)
## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Fluid Sizing (so no media queries)
- Nesting & `@layer`
### What I learned
Main thing I learnt is that I find it difficult to split out css across multiple files. I understand the principle but working out what goes where is tricky.
### Continued development
### Useful resources
- [Utopia](https://utopia.fyi/space/calculator) for its wonderful fluid space calculator.
- [Polypane](https://polypane.app/) for making it super easy to see how the build looks at mobile & desktop sizes.
## Author
- Website - [Robert McGovern](https://tarasis.net)
- Frontend Mentor - [@tarasis](https://www.frontendmentor.io/profile/tarasis)
- Twitter/X - [@tarasis](https://www.twitter.com/tarasis)

View File

@ -1,18 +0,0 @@
body {
min-height: 100dvh;
display: grid;
place-content: center;
background-color: var(--clr-yellow);
}
.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}

View File

@ -1,27 +0,0 @@
/* Layer architecture */
/* Best practice to put @layer at top of the import file for organization */
@layer reset, variables, base, properties, typography, theme, layouts, components, utilities;
/* Base */
@import 'reset.css' layer(reset);
/* @import '../css/base/normalize.css' layer(base); */
@import 'variables.css' layer(variables);
@import 'base.css' layer(base);
@import 'properties.css' layer(properties);
@import 'theme.css' layer(theme); /* theme variables */
@import 'typography.css' layer(typography); /* theme typography */
@import 'utilities.css' layer(utilities);
/* Layouts */
@import 'layout.css' layer(layouts);
/* Components */
@import 'blog-preview-card.css' layer(components);
/*! important */
/*? Question */
/** Note */
/*TODO todo */

View File

@ -1,44 +0,0 @@
article {
padding: 1.5rem;
* + * {
margin-top: 0.75rem;
}
a {
display: block;
}
img {
height: 200px;
object-fit: cover;
}
/* Size between: 327px → 384px */
width: var(--sizing-article-width);
.author-section {
display: flex;
flex-direction: row;
align-items: center;
margin-top: 1.5rem;
img {
margin-top: 0;
width: 2rem;
height: 2rem;
}
p {
margin-top: 0;
margin-left: 0.75rem;
}
}
.category {
margin-top: 1.5rem;
padding: 0.25rem 0.75rem;
width: -moz-fit-content;
width: fit-content;
}
}

View File

@ -1,96 +0,0 @@
/*
Mixture of different resets
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
Kevin Powell
*/
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin & padding
*/
* {
margin: 0;
padding: 0;
}
/* Set core root defaults */
html {
scroll-behavior: smooth;
}
/*
Typographic tweaks!
3. Add accessible line-height
4. Improve text rendering
*/
body {
text-rendering: optimizeSpeed;
/* line-height: 1.6; KP */
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/*
6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/*
8. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}

View File

@ -1,35 +0,0 @@
body {
background-color: var(--clr-yellow);
}
article {
background-color: var(--clr-white);
border-radius: 20px;
border: black 1px solid;
/* shadow scales from 8px at 375, to 16 at 1440 */
box-shadow: var(--sizing-box-shadow) var(--sizing-box-shadow) black;
/*! design shows desktop active with 16px, but desktop inactive with 8px */
/* box-shadow: 8px 8px black; */
img {
border-radius: 10px;
}
a {
color: var(--clr-black);
text-decoration: none;
}
a:has(:hover, :focus) {
color: var(--clr-yellow);
}
.category {
background-color: var(--clr-yellow);
border-radius: 4px;
}
}
article:hover {
--sizing-box-shadow: 16px;
}

View File

@ -1,32 +0,0 @@
@font-face {
font-family: 'FigTree';
src: url('../fonts/figtree/Figtree-VariableFont_wght.ttf');
}
article {
font-family: var(--ff-figtree);
font-size: var(--fs-12-14px);
font-weight: var(--fw-800);
line-height: var(--lh-150);
h2 {
font-size: var(--fs-post-title);
}
.category,
.title,
.author-name {
font-weight: var(--fw-800);
}
.date {
font-weight: var(--fw-500);
}
.excerpt {
color: var(--clr-grey);
font-weight: var(--fw-500);
font-size: var(--fs-post-excerpt);
}
}

View File

@ -1,43 +0,0 @@
:root {
/** Font related */
/* Font Family */
--ff-figtree: 'FigTree', sans-serif;
/* Font Weights */
--fw-500: 500;
--fw-600: 600;
--fw-700: 700;
--fw-800: 800;
/* Font Sizes */
/* * 36px * 375, 40px @ 1440px */
--fs-post-title: var(--fs-20-24px);
--fs-post-date: var(--fs-12-14px);
--fs-post-author: var(--fs-14px);
--fs-post-excerpt: var(--fs-14-16px);
--fs-post-category: var(--fs-12-14px);
--fs-12-14px: clamp(0.75rem, 0.706rem + 0.1878vw, 0.875rem);
--fs-14-16px: clamp(0.875rem, 0.831rem + 0.1878vw, 1rem);
--fs-20-24px: clamp(1.25rem, 1.162rem + 0.3756vw, 1.5rem);
--fs-14px: 0.875rem;
/* Line Heights */
--lh-150: 1.5;
/** Colors */
--clr-yellow: hsl(47, 88%, 63%);
--clr-white: hsl(0, 0%, 100%);
--clr-grey: hsl(0, 0%, 50%);
--clr-black: hsl(0, 0%, 7%);
/** Sizing */
/* shadow scales from 8px at 375, to 16 at 1440 */
/* --sizing-box-shadow: clamp(0.5rem, 0.3239rem + 0.7512vi, 1rem); */
--sizing-box-shadow: 8px;
/* Size between: 327px → 384px */
--sizing-article-width: clamp(20.4375rem, 19.1831rem + 5.3521vi, 24rem);
}

View File

@ -1,93 +0,0 @@
Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -1,77 +0,0 @@
Figtree Variable Font
=====================
This download contains Figtree as both variable fonts and static fonts.
Figtree is a variable font with this axis:
wght
This means all the styles are contained in these files:
Figtree-VariableFont_wght.ttf
Figtree-Italic-VariableFont_wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Figtree:
static/Figtree-Light.ttf
static/Figtree-Regular.ttf
static/Figtree-Medium.ttf
static/Figtree-SemiBold.ttf
static/Figtree-Bold.ttf
static/Figtree-ExtraBold.ttf
static/Figtree-Black.ttf
static/Figtree-LightItalic.ttf
static/Figtree-Italic.ttf
static/Figtree-MediumItalic.ttf
static/Figtree-SemiBoldItalic.ttf
static/Figtree-BoldItalic.ttf
static/Figtree-ExtraBoldItalic.ttf
static/Figtree-BlackItalic.ttf
Get started
-----------
1. Install the font files you want to use
2. Use your app's font picker to view the font family and all the
available styles
Learn more about variable fonts
-------------------------------
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts
In desktop apps
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
Online
https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
Installing fonts
MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
Android Apps
https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.
You can use them in your products & projects print or digital,
commercial or otherwise.
This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="336" height="201" fill="none" viewBox="0 0 336 201"><g clip-path="url(#a)"><path fill="#F4D04E" d="M0 .5h336v200H0z"/><rect width="139" height="95" x="87.996" y="77.729" fill="#fff" rx="47.5" transform="rotate(-45 87.996 77.729)"/><rect width="139" height="95" x="54.055" y="77.729" fill="#111" rx="47.5" transform="rotate(-45 54.055 77.729)"/><path fill="#111" d="M234.864 209.036 451.4-7.5l67.175 67.175-216.536 216.536z"/><rect width="139" height="95" x="20.114" y="77.729" fill="#fff" rx="47.5" transform="rotate(-45 20.114 77.729)"/><rect width="204.19" height="270.554" fill="#111" rx="102.095" transform="scale(-1 1) rotate(45 -103.887 14.564)"/><path stroke="#fff" stroke-width="3" d="m6.69-357.5 135.583 135.727c12.481 12.494 12.481 32.737 0 45.231L-45.544 11.475c-12.481 12.494-12.481 32.737 0 45.23L107.088 209.5"/><path stroke="#111" stroke-width="3" d="M69.965 71.719v23.334h23.334M136.079 52.273V28.94h-23.334M102.845 38.838v46.67M210.364-37.5l60.873 60.873c12.497 12.496 12.497 32.758 0 45.254l-77.745 77.746c-12.497 12.496-12.497 32.758 0 45.254l69.872 69.873"/><path stroke="#111" stroke-width="3" d="m253.339 149.574-12.144 12.145 14.256 14.257v12.672h12.673l13.729 13.729 12.145-12.145M278.685 124.228l-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145M304.031 98.883l-12.145 12.144 14.257 14.257v12.673h12.673l13.729 13.729 12.144-12.145M329.376 73.537l-12.145 12.145 14.257 14.257v12.672h12.673l13.729 13.729 12.145-12.144"/><path stroke="#fff" stroke-width="5" d="m354.722 48.191-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145"/><mask id="b" width="285" height="285" x="234" y="-8" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#111" d="M234.864 209.036 451.4-7.5l67.175 67.175-216.536 216.536z"/></mask><g stroke="#fff" mask="url(#b)"><path stroke-width="3" d="m253.339 149.574-12.144 12.145 14.256 14.257v12.672h12.673l13.729 13.729 12.145-12.145M278.685 124.228l-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145M304.031 98.883l-12.145 12.144 14.257 14.257v12.673h12.673l13.729 13.729 12.144-12.145M329.376 73.537l-12.145 12.145 14.257 14.257v12.672h12.673l13.729 13.729 12.145-12.145"/><path stroke-width="5" d="m354.722 48.191-12.145 12.145 14.257 14.257v12.673h12.673l13.729 13.729 12.145-12.145"/></g></g><defs><clipPath id="a"><path fill="#fff" d="M0 .5h336v200H0z"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1,57 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<link rel="stylesheet" href="assets/css/index.css">
<title>Frontend Mentor | Blog preview card</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<!-- <style>
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style> -->
</head>
<body>
<header>
<h1 class="visually-hidden">Blog Preview Card Frontend Mentor Challenge Solution</h1>
</header>
<main>
<article>
<figure><img src="assets/images/illustration-article.svg" alt="Image of something"></figure>
<div class="category">Learning</div>
<p class="date">Published 21 Dec 2023</p>
<a href="#">
<h2>HTML &amp; CSS foundations</h2>
</a>
<p class="excerpt">These languages are the backbone of every website, defining structure, content, and
presentation.</p>
<div class="author-section">
<img src="assets/images/image-avatar.webp" alt="Professional looking picture of Greg Hooper">
<p class="author-name">Greg Hooper</p>
</div>
</article>
</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://tarasis.net">Robert McGovern</a>.
</div> -->
</footer>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

View File

@ -1,31 +0,0 @@
# Front-end Style Guide
## Layout
The designs were created to the following widths:
- Mobile: 375px (x 812px)
- Desktop: 1440px (x 960)
## Colors
### Primary
- Yellow: hsl(47, 88%, 63%)
### Neutral
- White: hsl(0, 0%, 100%)
- Grey: hsl(0, 0%, 50%)
- Black: hsl(0, 0%, 7%)
## Typography
### Body Copy
- Font size (paragraph): 16px
### Font
- Family: [Figtree](https://fonts.google.com/specimen/Figtree)
- Weights: 600, 800

View File

@ -1,16 +0,0 @@
# Avoid accidental upload of the Sketch and Figma design files
#####################################################
## Please do not remove lines 5 and 6 - thanks! 🙂 ##
#####################################################
*.sketch
*.fig
# Avoid accidental XD upload if you convert the design file
###############################################
## Please do not remove line 12 - thanks! 🙂 ##
###############################################
*.xd
# Avoid your project being littered with annoying .DS_Store files!
.DS_Store
.prettierignore

View File

@ -1,89 +0,0 @@
# Frontend Mentor - Recipe page
![Design preview for the Recipe page coding challenge](./design/desktop-preview.jpg)
## Welcome! 👋
Thanks for checking out this front-end coding challenge.
[Frontend Mentor](https://www.frontendmentor.io) challenges help you improve your coding skills by building realistic projects.
**To do this challenge, you need a basic understanding of HTML and CSS.**
## The challenge
Your challenge is to build out this recipe page and get it looking as close to the design as possible.
You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.
Want some support on the challenge? [Join our community](https://www.frontendmentor.io/community) and ask questions in the **#help** channel.
## Where to find everything
Your task is to build out the project to the designs inside the `/design` folder. You will find both a mobile and a desktop version of the design.
The designs are in JPG static format. Using JPGs will mean that you'll need to use your best judgment for styles such as `font-size`, `padding` and `margin`.
If you would like the design files (we provide Sketch & Figma versions) to inspect the design in more detail, you can [subscribe as a PRO member](https://www.frontendmentor.io/pro).
All the required assets for this project are in the `/assets` folder. The images are already exported for the correct screen size and optimized.
We also include variable and static font files for the required fonts for this project. You can choose to either link to Google Fonts or use the local font files to host the fonts yourself. Note that we've removed the static font files for the font weights that aren't needed for this project.
There is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts.
## Building your project
Feel free to use any workflow that you feel comfortable with. Below is a suggested process, but do not feel like you need to follow these steps:
1. Initialize your project as a public repository on [GitHub](https://github.com/). Creating a repo will make it easier to share your code with the community if you need help. If you're not sure how to do this, [have a read-through of this Try Git resource](https://try.github.io/).
2. Configure your repository to publish your code to a web address. This will also be useful if you need some help during a challenge as you can share the URL for your project with your repo URL. There are a number of ways to do this, and we provide some recommendations below.
3. Look through the designs to start planning out how you'll tackle the project. This step is crucial to help you think ahead for CSS classes to create reusable styles.
4. Before adding any styles, structure your content with HTML. Writing your HTML first can help focus your attention on creating well-structured content.
5. Write out the base styles for your project, including general content styles, such as `font-family` and `font-size`.
6. Start adding styles to the top of the page and work down. Only move on to the next section once you're happy you've completed the area you're working on.
## Deploying your project
As mentioned above, there are many ways to host your project for free. Our recommend hosts are:
- [GitHub Pages](https://pages.github.com/)
- [Vercel](https://vercel.com/)
- [Netlify](https://www.netlify.com/)
You can host your site using one of these solutions or any of our other trusted providers. [Read more about our recommended and trusted hosts](https://medium.com/frontend-mentor/frontend-mentor-trusted-hosting-providers-bf000dfebe).
## Create a custom `README.md`
We strongly recommend overwriting this `README.md` with a custom one. We've provided a template inside the [`README-template.md`](./README-template.md) file in this starter code.
The template provides a guide for what to add. A custom `README` will help you explain your project and reflect on your learnings. Please feel free to edit our template as much as you like.
Once you've added your information to the template, delete this file and rename the `README-template.md` file to `README.md`. That will make it show up as your repository's README file.
## Submitting your solution
Submit your solution on the platform for the rest of the community to see. Follow our ["Complete guide to submitting solutions"](https://medium.com/frontend-mentor/a-complete-guide-to-submitting-solutions-on-frontend-mentor-ac6384162248) for tips on how to do this.
Remember, if you're looking for feedback on your solution, be sure to ask questions when submitting it. The more specific and detailed you are with your questions, the higher the chance you'll get valuable feedback from the community.
## Sharing your solution
There are multiple places you can share your solution:
1. Share your solution page in the **#finished-projects** channel of our [community](https://www.frontendmentor.io/community).
2. Tweet [@frontendmentor](https://twitter.com/frontendmentor) and mention **@frontendmentor**, including the repo and live URLs in the tweet. We'd love to take a look at what you've built and help share it around.
3. Share your solution on other social channels like LinkedIn.
4. Blog about your experience building your project. Writing about your workflow, technical choices, and talking through your code is a brilliant way to reinforce what you've learned. Great platforms to write on are [dev.to](https://dev.to/), [Hashnode](https://hashnode.com/), and [CodeNewbie](https://community.codenewbie.org/).
We provide templates to help you share your solution once you've submitted it on the platform. Please do edit them and include specific questions when you're looking for feedback.
The more specific you are with your questions the more likely it is that another member of the community will give you feedback.
## Got feedback for us?
We love receiving feedback! We're always looking to improve our challenges and our platform. So if you have anything you'd like to mention, please email hi[at]frontendmentor[dot]io.
This challenge is completely free. Please share it with anyone who will find it useful for practice.
**Have fun building!** 🚀

View File

@ -1,59 +0,0 @@
# Frontend Mentor - Recipe page solution
This is a solution to the [Recipe page challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/recipe-page-KiTsR8QQKm). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Frontend Mentor - Recipe page solution](#frontend-mentor---recipe-page-solution)
- [Table of contents](#table-of-contents)
- [Overview](#overview)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
## Overview
### Screenshot
Mobile
![](./screenshots/mobile.png)
Desktop
![](./screenshots/desktop.png)
### Links
- Solution URL: [Github](https://github.com/tarasis/tarasis.github.io/tree/main/projects/FrontendMentor/newbie/recipe-page)
- Live Site URL: [Tarasis Github.io](https://tarasis.github.io/FrontendMentor/newbie/recipe-page/)
## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
### What I learned
### Continued development
### Useful resources
## Author
- Website - [Robert McGovern](https://tarasis.net)
- Frontend Mentor - [@tarasis](https://www.frontendmentor.io/profile/tarasis)
- Twitter/X - [@tarasis](https://www.twitter.com/tarasis)

View File

@ -1,16 +0,0 @@
body {
/* -webkit-user-select: none; */
/* user-select: none; */
/* position: relative; */
min-height: 100dvh;
/* ! TEMP REMOVE */
@media (min-width: 50ch) {
height: 1955px;
}
display: grid;
place-content: center;
background-color: var(--off-black);
}

View File

@ -1,27 +0,0 @@
/* Layer architecture */
/* Best practice to put @layer at top of the import file for organization */
@layer reset, variables, base, properties, typography, theme, layouts, components, utilities;
/* Base */
@import 'reset.css' layer(reset);
/* @import '../css/base/normalize.css' layer(base); */
@import 'variables.css' layer(variables);
@import 'base.css' layer(base);
@import 'properties.css' layer(properties);
@import 'theme.css' layer(theme); /* theme variables */
@import 'typography.css' layer(typography); /* theme typography */
@import 'utilities.css' layer(utilities);
/* Layouts */
@import 'layout.css' layer(layouts);
/* Components */
@import 'recipe-page.css' layer(components);
/* ! important */
/* ? Question */
/* * Note */
/* TODO todo */

View File

@ -1,120 +0,0 @@
main {
display: grid;
place-content: center;
}
article {
padding: 0 2rem 2.5rem 2rem;
@media (min-width: 50ch) {
max-width: 46rem;
padding: 40px;
border-radius: var(--border-radius-card);
}
> * + * {
margin-top: 2rem;
}
header {
width: 100%;
@media (min-width: 50ch) {
width: 100%;
}
img {
margin-bottom: 40px;
/* width: 100%; */
left: 50%;
margin-left: -50vw;
margin-right: -50vw;
max-width: 100vw;
position: relative;
right: 50%;
width: 100vw;
@media (min-width: 50ch) {
width: 100%;
border-radius: var(--border-radius-img);
left: initial;
margin-left: initial;
margin-right: initial;
max-width: initial;
position: initial;
right: initial;
}
}
h1 + p {
margin-top: 1.5rem;
}
}
ul,
ol {
/*
using inside means you can't adjust
the padding of both into position
ended up searching and coming across this article about it https://css-tricks.com/everything-you-need-to-know-about-the-gap-after-the-list-marker/
*/
/* list-style-position: inside; */
padding-inline-start: 24px;
}
li {
padding-inline-start: 16px;
}
li + li {
padding-top: 0.5rem;
}
table {
border-collapse: collapse;
width: 100%;
tr:first-child td {
/* padding-top: 0px; */
padding-block-end: 12px;
}
tr:not(:first-child) > * + * {
padding-block: 12px;
}
tr:not(:last-child) {
border-bottom: 1px solid var(--white-coffee);
}
tr td:first-child {
padding-inline-start: 2rem;
}
tr td:last-child {
padding-inline-end: 2rem;
}
}
section > * + * {
margin-top: 1.5rem;
}
.preparation {
padding: 1.5rem;
ul {
margin-top: 1rem;
}
@media (min-width: 50ch) {
padding: 1.75rem;
border-radius: var(--border-radius-callout);
}
}
}

View File

@ -1,5 +0,0 @@
.emphasized,
li::marker {
font-weight: var(--fw-700);
color: var(--brandy-red);
}

View File

@ -1,96 +0,0 @@
/*
Mixture of different resets
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
Kevin Powell
*/
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin & padding
*/
* {
margin: 0;
padding: 0;
}
/* Set core root defaults */
html {
scroll-behavior: smooth;
}
/*
Typographic tweaks!
3. Add accessible line-height
4. Improve text rendering
*/
body {
text-rendering: optimizeSpeed;
/* line-height: 1.6; KP */
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/*
6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/*
8. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}

View File

@ -1,32 +0,0 @@
body {
color: var(--wenge-brown);
background-color: var(--eggshell);
}
article {
background-color: var(--white);
h1 {
color: var(--dark-charcoal);
}
h2 {
color: var(--brandy-red);
}
h3 {
color: var(--dark-raspberry);
}
li:before {
color: var(--brandy-red);
}
hr {
height: 1px;
color: var(--white-coffee);
}
.preparation {
background-color: var(--snow);
}
}

View File

@ -1,44 +0,0 @@
@font-face {
font-family: 'YoungSerif';
src: url('../fonts/young-serif/YoungSerif-Regular.ttf');
}
@font-face {
font-family: 'Outfit';
src: url('../fonts/outfit/Outfit-VariableFont_wght.ttf');
}
body,
h3 {
font-family: var(--ff-outfit);
font-size: var(--fs-16);
font-weight: var(--fw400);
line-height: var(--lh-150);
}
h1,
h2 {
font-weight: var(--fw-400);
font-family: var(--ff-young);
line-height: var(--lh-100);
}
h1 {
font-size: var(--fs-title);
}
h2 {
font-size: var(--fs-28);
}
h3 {
font-weight: var(--fw-600);
line-height: var(--lh-100);
font-size: var(--fs-20);
}
li > span {
font-weight: var(--fw-700);
}

View File

@ -1,11 +0,0 @@
/* https://gomakethings.com/how-to-break-an-image-out-of-its-parent-container-with-css/ */
.full-width {
left: 50%;
margin-left: -50vw;
margin-right: -50vw;
max-width: 100vw;
position: relative;
right: 50%;
width: 100vw;
}

View File

@ -1,41 +0,0 @@
:root {
/*! @media doesn't support variables, grr */
/* --min-width: 45ch; */
--border-radius-card: 24px;
--border-radius-img: 12px;
--border-radius-callout: 12px;
/* * Colors */
--dark-charcoal: #312e2c;
--dark-raspberry: #7a284e;
--brandy-red: #854632;
--wenge-brown: #5f564d;
--eggshell: #f3e5d7;
--white-coffee: #e3ddd7;
--snow: #fff7fb;
--white: #fff;
/** Font Stuff */
/* Font Family */
--ff-outfit: 'Outfit', sans-serif;
--ff-young: 'YoungSerif', sans-serif;
/* Font Weights */
--fw-400: 400;
--fw-600: 600;
--fw-700: 700;
/* Font Sizes */
/* * 36px * 375, 40px @ 1440px */
--fs-title: clamp(2.25rem, 2.162rem + 0.3756vi, 2.5rem);
--fs-16: 1rem;
--fs-20: 1.25rem;
--fs-28: 1.75rem;
--fs-default: var(--fs-16);
/* Line Heights */
--lh-100: 1;
--lh-150: 1.5;
}

View File

@ -1,93 +0,0 @@
Copyright 2021 The Outfit Project Authors (https://github.com/Outfitio/Outfit-Fonts)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -1,71 +0,0 @@
Outfit Variable Font
====================
This download contains Outfit as both a variable font and static fonts.
Outfit is a variable font with this axis:
wght
This means all the styles are contained in a single file:
Outfit-VariableFont_wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Outfit:
static/Outfit-Thin.ttf
static/Outfit-ExtraLight.ttf
static/Outfit-Light.ttf
static/Outfit-Regular.ttf
static/Outfit-Medium.ttf
static/Outfit-SemiBold.ttf
static/Outfit-Bold.ttf
static/Outfit-ExtraBold.ttf
static/Outfit-Black.ttf
Get started
-----------
1. Install the font files you want to use
2. Use your app's font picker to view the font family and all the
available styles
Learn more about variable fonts
-------------------------------
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts
In desktop apps
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
Online
https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
Installing fonts
MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
Android Apps
https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.
You can use them in your products & projects print or digital,
commercial or otherwise.
This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.

View File

@ -1,93 +0,0 @@
Copyright 2023 The Young Serif Project Authors (https://github.com/noirblancrouge/YoungSerif)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

View File

@ -1,136 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png" />
<link rel="stylesheet" href="./assets/css/index.css" />
<title>Frontend Mentor | Recipe page</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
</head>
<body>
<main>
<article>
<header>
<figure>
<img src="./assets/images/image-omelette.jpeg"
alt="A folded crepe with on a plate, filled with vegetable matter. Also on the plate is some orange humus" />
</figure>
<h1>Simple Omelette Recipe</h1>
<p>
An easy and quick dish, perfect for any meal. This
classic omelette combines beaten eggs cooked to
perfection, optionally filled with your choice of
cheese, vegetables, or meats.
</p>
</header>
<section class="preparation">
<h3>Preparation time</h3>
<ul>
<li><span>Total:</span> Approximately 10 minutes</li>
<li><span>Preparation:</span> 5 minutes</li>
<li><span>Cooking:</span> 5 minutes</li>
</ul>
</section>
<section>
<h2>Ingredients</h2>
<ul>
<li>2-3 large eggs</li>
<li>Salt, to taste</li>
<li>Pepper, to taste</li>
<li>1 tablespoon of butter or oil</li>
<li>
Optional fillings: cheese, diced vegetables, cooked
meats, herbs
</li>
</ul>
</section>
<hr />
<section>
<h2>Instructions</h2>
<ol>
<li>
<span>Beat the eggs:</span> In a bowl, beat the eggs
with a pinch of salt and pepper until they are well
mixed. You can add a tablespoon of water or milk for
a fluffier texture.
</li>
<li>
<span>Heat the pan:</span> Place a non-stick frying
pan over medium heat and add butter or oil.
</li>
<li>
<span>Cook the omelette:</span> Once the butter is
melted and bubbling, pour in the eggs. Tilt the pan
to ensure the eggs evenly coat the surface.
</li>
<li>
<span>Add fillings (optional):</span> When the eggs begin to set at the
edges but are still slightly runny in the middle, sprinkle your chosen fillings over one half of
the omelette.
</li>
<li>
<span>Fold and serve:</span>As the omelette continues to cook, carefully lift one edge and fold
it over the fillings. Let it cook for another minute, then slide it onto a plate.
</li>
<li>
<span>Enjoy:</span> Serve hot, with additional salt
and pepper if needed.
</li>
</ol>
</section>
<hr />
<section>
<h2>Nutrition</h2>
<p>
The table below shows nutritional values per serving
without the additional fillings.
</p>
<table>
<tr>
<td>Calories</td>
<td class="emphasized">277kcal</td>
</tr>
<tr>
<td>Carbs</td>
<td class="emphasized">0g</td>
</tr>
<tr>
<td>Protein</td>
<td class="emphasized">20g</td>
</tr>
<tr>
<td>Fat</td>
<td class="emphasized">22g</td>
</tr>
</table>
</section>
</article>
</main>
<footer>
<!-- <div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank" rel="noopener">Frontend
Mentor</a>.
Coded by <a href="https://rmcg.dev">Robert McGovern</a>.
</div> -->
</footer>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 826 KiB

View File

@ -1,38 +0,0 @@
# Front-end Style Guide
## Layout
The designs were created to the following widths:
- Mobile: 375px
- Desktop: 1440px
## Colors
### Primary
- Nutmeg: hsl(14, 45%, 36%)
- Dark Raspberry: hsl(332, 51%, 32%)
### Neutral
- White: hsl(0, 0%, 100%)
- Rose White: hsl(330, 100%, 98%)
- Eggshell: hsl(30, 54%, 90%)
- Light Grey: hsl(30, 18%, 87%)
- Wenge Brown: hsl(30, 10%, 34%)
- Dark Charcoal: hsl(24, 5%, 18%)
## Typography
### Body Copy
- Font size (paragraph): 16px
### Fonts
- Family: [Young Serif](https://fonts.google.com/specimen/Young+Serif)
- Weights: 400
- Family: [Outfit](https://fonts.google.com/specimen/Outfit)
- Weights: 400, 600, 700

View File

@ -1,4 +1,4 @@
@font-face {
font-family: "Inter";
src: url("../fonts/Inter-VariableFont_slnt\,wght.ttf");
src: url("/assets/fonts/Inter-VariableFont_slnt\,wght.ttf");
}

View File

@ -29,28 +29,6 @@
"title": "Newbie",
"cssClass": "frontEndMentorChallenges",
"challenges": [
{
"title": "Recipe Page",
"url": "/FrontendMentor/newbie/recipe-page/",
"description": "",
"techUsed": [
"html5",
"css3"
],
"screenshotURL": "/FrontendMentor/newbie/recipe-page/screenshots/desktop.png",
"screenshotAltText": "Screenshot of my completed mobile version of the Recipe Page challenge from Frontend Mentor"
},
{
"title": "Blog Preview Card",
"url": "/FrontendMentor/newbie/blog-preview-card/",
"description": "",
"techUsed": [
"html5",
"css3"
],
"screenshotURL": "/FrontendMentor/newbie/blog-preview-card/screenshots/desktop.png",
"screenshotAltText": "Screenshot of my completed mobile version of the Blog Preview Card challenge from Frontend Mentor"
},
{
"title": "Social Links Profile",
"url": "/FrontendMentor/newbie/social-links-profile/",