Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qr code component #170

Open
wants to merge 7 commits into
base: qr_code_component
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
npm run test

- name: Save screenshots
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: screenshots
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 26 additions & 4 deletions challenges/qr_code_component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
<link rel="manifest" href="../site.webmanifest" />
<link rel="stylesheet" href="style.css" />
</head>
<body class="m-0">
<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
>
<body class="bg-custom-grey my-20">
<div>
<div>
<a
class="text-optimum-blue hover:text-optimum-darkblue"
Expand All @@ -58,6 +56,30 @@
>Source code</a
>
</div>
<div class="my-4 flex sm:justify-center">
<div
class="m-4 flex max-w-xs flex-col items-center justify-center gap-6 rounded-2xl border bg-white p-4"
>
<section>
<img
src="./images/image-qr-code.png"
class="rounded-xl border"
alt="Qr Code Image"
/>
</section>
<section
class="font_outfit flex w-full flex-col justify-center gap-4"
>
<h3 class="px-4 text-center font-bold">
Improve your front-end skills by building projects
</h3>
<p class="color_qr_code_text px-6 pb-6 text-center font-medium">
Scan the QR code to visit Frontend Mentor and take your coding
skills to the next level
</p>
</section>
</div>
</div>
</div>
</body>
</html>
16 changes: 16 additions & 0 deletions challenges/qr_code_component/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@import url('https://fonts.googleapis.com/css2?family=Outfit:[email protected]&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

.color_qr_code_text {
color: hsl(216, 15%, 48%);
font-size: 14px;
}

/* font-optical-sizing to none */
.font_outfit {
font-family: 'Outfit', serif;
font-optical-sizing: none;
font-weight: 700;
font-style: normal;
font-size: 21px;
}
4 changes: 4 additions & 0 deletions challenges/qr_code_component/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module.exports = {
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
},

backgroundColor: {
'custom-grey': 'hsl(212, 45%, 89%)',
},
},
},
plugins: [],
Expand Down
Loading