Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanelli990 committed Oct 17, 2024
1 parent 5f8ad45 commit be95d67
Show file tree
Hide file tree
Showing 9 changed files with 208 additions and 80 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# QR code component
# Social links profile

![QR Code Component Screenshot](src/assets/screenshot.png)
![Social links profile Screenshot](src/assets/screenshot.png)

This is my solution for the [QR code component](https://www.frontendmentor.io/challenges/qr-code-component-iux_sIO_H), built using Tailwind CSS. The project was completed as part of the Frontend Mentor challenges to enhance my frontend development skills.
This is my solution for the [Social links profile](https://www.frontendmentor.io/challenges/social-links-profile-UG32l9m6dQ), built using Tailwind CSS. The project was completed as part of the Frontend Mentor challenges to enhance my frontend development skills.

You can view the live demo of the project [here](https://stefanelli990.github.io/qr-code-component/).
You can view the live demo of the project [here](https://stefanelli990.github.io/social-links-profile/).
32 changes: 21 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,33 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR code component</title>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap" rel="stylesheet">
<title>Social links profile</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<link href="src/output.css" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="src/assets/favicon-32x32.png">
</head>
<body class="bg-slate-300 p-4 text-center min-h-screen flex justify-center items-center flex-col gap-4">
<body class="p-6 min-h-screen flex justify-center items-center flex-col gap-4 text-center">
<main class="flex-1 grid place-content-center">
<div class="bg-white max-w-[320px] p-4 pb-0 rounded-[20px] shadow-custom">
<img class="rounded-[10px]" src="src/assets/image-qr-code.png" alt="QR Code">
<div class="px-4 mt-6 mb-10">
<h1 class="text-slate-900 mb-4">Improve your front-end skills by building projects</h1>
<p class="text-slate-500">Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
<div class="bg-gray-800 p-6 sm:p-8 rounded-[12px] flex items-center flex-col">
<img class="w-24 h-24 mb-8 rounded-full" src="src/assets/avatar-jessica.jpeg" alt="Avatar">
<div class="text-[24px] font-semibold mb-3" alt="Jessica Randall's profile picture">Jessica Randall</div>
<div class="text-green font-medium">London, United Kingdom</div>
<div class="px-1.5 py-6 sm:p-6 opacity-75">"Front-end developer and avid reader."</div>
<nav aria-label="Social media links" class="w-full">
<ul class="space-y-3">
<li><a href="https://www.github.com/" aria-label="Link to Jessica Randall's GitHub profile" target="_blank" class="p-3 block font-semibold bg-gray-700 rounded-[8px] cursor-pointer hover:bg-green hover:text-gray-900">GitHub</a></li>
<li><a href="https://www.frontendmentor.io/" target="_blank" class="p-3 block font-semibold bg-gray-700 rounded-[8px] cursor-pointer hover:bg-green hover:text-gray-900">Frontend Mentor</a></li>
<li><a href="https://www.linkedin.com/" aria-label="Link to Jessica Randall's Linkedin profile" target="_blank" class="p-3 block font-semibold bg-gray-700 rounded-[8px] cursor-pointer hover:bg-green hover:text-gray-900">LinkedIn</a></li>
<li><a href="https://www.twitter.com/" aria-label="Link to Jessica Randall's Twitter profile" target="_blank" class="p-3 block font-semibold bg-gray-700 rounded-[8px] cursor-pointer hover:bg-green hover:text-gray-900">Twitter</a></li>
<li><a href="https://www.instagram.com/" aria-label="Link to Jessica Randall's Instagram profile" target="_blank" class="p-3 block font-semibold bg-gray-700 rounded-[8px] cursor-pointer hover:bg-green hover:text-gray-900">Instagram</a></li>
</ul>
</nav>
</div>
</main>
<footer>
<p class="text-slate-500">Challenge by <a class="underline" href="https://www.frontendmentor.io/challenges/qr-code-component-iux_sIO_H" target="_blank">Frontend Mentor</a>. Coded by <a class="underline" href="https://github.com/stefanelli990" target="_blank">stefanelli990</a>.</p>
<footer class="max-w-[250px] sm:max-w-none">
<p>Challenge by <a class="underline" href="https://www.frontendmentor.io/challenges/social-links-profile-UG32l9m6dQ" target="_blank">Frontend Mentor</a>. Coded by <a class="underline" href="https://github.com/stefanelli990" target="_blank">stefanelli990</a>.</p>
</footer>
</body>
</html>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "qr-code-component",
"name": "social-links-profile",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down
Binary file added src/assets/avatar-jessica.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/image-qr-code.png
Binary file not shown.
12 changes: 1 addition & 11 deletions src/input.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
@tailwind base;
h1 {
font-size: 22px;
line-height: 120%;
font-weight: 700;
}
p {
font-size: 15px;
letter-spacing: 0.2px;
line-height: 140%;
}
@tailwind components;
@tailwind utilities;

@layer base {
body {
@apply font-outfit;
@apply bg-gray-900 text-white font-inter text-sm font-normal;
}
}
214 changes: 172 additions & 42 deletions src/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -555,33 +555,32 @@ video {
}

body {
font-family: Outfit, sans-serif;
}

h1 {
font-size: 22px;
line-height: 120%;
font-weight: 700;
}

p {
font-size: 15px;
letter-spacing: 0.2px;
line-height: 140%;
--tw-bg-opacity: 1;
background-color: hsl(0 0% 8% / var(--tw-bg-opacity));
font-family: Inter, sans-serif;
font-size: 0.875rem;
line-height: 1.25rem;
font-weight: 400;
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.mb-10 {
margin-bottom: 2.5rem;
.mb-3 {
margin-bottom: 0.75rem;
}

.mb-4 {
margin-bottom: 1rem;
.mb-8 {
margin-bottom: 2rem;
}

.mt-6 {
margin-top: 1.5rem;
}

.block {
display: block;
}

.flex {
display: flex;
}
Expand All @@ -590,18 +589,46 @@ p {
display: grid;
}

.h-24 {
height: 6rem;
}

.min-h-screen {
min-height: 100vh;
}

.max-w-\[320px\] {
max-width: 320px;
.w-24 {
width: 6rem;
}

.w-full {
width: 100%;
}

.max-w-lg {
max-width: 32rem;
}

.max-w-xs {
max-width: 20rem;
}

.max-w-\[200px\] {
max-width: 200px;
}

.max-w-\[250px\] {
max-width: 250px;
}

.flex-1 {
flex: 1 1 0%;
}

.cursor-pointer {
cursor: pointer;
}

.flex-col {
flex-direction: column;
}
Expand All @@ -622,57 +649,160 @@ p {
gap: 1rem;
}

.rounded-\[10px\] {
border-radius: 10px;
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.rounded-\[12px\] {
border-radius: 12px;
}

.rounded-\[20px\] {
border-radius: 20px;
.rounded-\[8px\] {
border-radius: 8px;
}

.rounded-full {
border-radius: 9999px;
}

.rounded-lg {
border-radius: 0.5rem;
}

.rounded-md {
border-radius: 0.375rem;
}

.bg-gray-700 {
--tw-bg-opacity: 1;
background-color: hsl(0 0% 20% / var(--tw-bg-opacity));
}

.bg-slate-300 {
.bg-gray-800 {
--tw-bg-opacity: 1;
background-color: rgb(213 225 239 / var(--tw-bg-opacity));
background-color: hsl(0 0% 12% / var(--tw-bg-opacity));
}

.bg-white {
.bg-gray-50 {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}

.p-4 {
padding: 1rem;
.p-3 {
padding: 0.75rem;
}

.px-4 {
padding-left: 1rem;
padding-right: 1rem;
.p-6 {
padding: 1.5rem;
}

.pb-0 {
padding-bottom: 0px;
.p-5 {
padding: 1.25rem;
}

.py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}

.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}

.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}

.px-1 {
padding-left: 0.25rem;
padding-right: 0.25rem;
}

.px-1\.5 {
padding-left: 0.375rem;
padding-right: 0.375rem;
}

.text-center {
text-align: center;
}

.text-slate-500 {
.text-\[24px\] {
font-size: 24px;
}

.font-medium {
font-weight: 500;
}

.font-semibold {
font-weight: 600;
}

.text-green {
--tw-text-opacity: 1;
color: rgb(104 119 141 / var(--tw-text-opacity));
color: hsl(75 94% 57% / var(--tw-text-opacity));
}

.text-slate-900 {
.text-gray-300 {
--tw-text-opacity: 1;
color: rgb(31 49 79 / var(--tw-text-opacity));
color: rgb(209 213 219 / var(--tw-text-opacity));
}

.text-gray-600 {
--tw-text-opacity: 1;
color: rgb(75 85 99 / var(--tw-text-opacity));
}

.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.underline {
text-decoration-line: underline;
}

.shadow-custom {
--tw-shadow: rgba(0, 0, 0, 4.77%) 0px 0px 25px;
--tw-shadow-colored: 0px 0px 25px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
.opacity-75 {
opacity: 0.75;
}

.transition {
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}

.hover\:bg-green:hover {
--tw-bg-opacity: 1;
background-color: hsl(75 94% 57% / var(--tw-bg-opacity));
}

.hover\:text-gray-900:hover {
--tw-text-opacity: 1;
color: hsl(0 0% 8% / var(--tw-text-opacity));
}

@media (min-width: 640px) {
.sm\:max-w-full {
max-width: 100%;
}

.sm\:max-w-none {
max-width: none;
}

.sm\:p-8 {
padding: 2rem;
}

.sm\:p-6 {
padding: 1.5rem;
}
}
Loading

0 comments on commit be95d67

Please sign in to comment.