Skip to content

Instantly share code, notes, and snippets.

@koolkishan
Last active March 28, 2023 10:33
Show Gist options
  • Save koolkishan/3d7b1eea8e316417fda410c53392c8b1 to your computer and use it in GitHub Desktop.
Save koolkishan/3d7b1eea8e316417fda410c53392c8b1 to your computer and use it in GitHub Desktop.
Next.js Portfolio Files
.projects {
margin: 15rem 0;
.title {
font-family: var(--raleway);
color: var(--lightest-slate);
position: relative;
h2 {
margin-bottom: 2rem;
font-size: var(--tx2large);
font-weight: 700;
&::before {
counter-increment: title;
content: "0" counter(title) ".";
margin-right: 0.5rem;
color: var(--theme-color);
}
&::after {
content: "";
display: block;
position: absolute;
top: 20px;
width: 300px;
height: 2px;
margin-left: 420px;
background-color: var(--lightest-navy);
}
}
}
&-container {
display: flex;
flex-direction: column;
gap: 5rem;
.project {
position: relative;
display: flex;
justify-content: flex-end;
&-image {
&-container {
position: relative;
width: 600px;
height: 300px;
}
position: absolute;
top: 0;
left: 0;
&:hover {
.project-image-overlay {
background-color: #00000000;
}
img {
filter: none;
}
}
&-overlay {
transition: 0.3s ease-in-out;
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
background-color: #9d00ff4d;
}
img {
z-index: 0;
filter: grayscale(100%);
transition: 0.3s ease-in-out;
}
}
&-info {
z-index: 5;
width: 600px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.5rem;
&-overline {
color: var(--theme-color);
font-family: var(--fira-code);
}
&-title {
width: max-content;
color: var(--lightest-slate);
font-size: var(--txlarge);
font-family: var(--raleway);
cursor: pointer;
transition: 0.3s ease-in-out;
&:hover {
color: var(--theme-color);
}
}
&-description {
background-color: var(--light-navy);
border-radius: 0.2rem;
p {
color: var(--light-slate);
font-family: var(--raleway);
padding: 2rem;
text-align: end;
}
}
&-tech-list {
display: flex;
list-style-type: none;
gap: 1rem;
flex-wrap: wrap;
&-item {
color: var(--light-slate);
font-family: var(--raleway);
}
}
&-links {
font-size: var(--tlarge2);
list-style-type: none;
display: flex;
gap: 1rem;
&-item {
transition: 0.3s ease-in-out;
display: flex;
justify-content: center;
align-items: center;
&-link {
padding: 10px;
color: var(--lightest-slate);
transition: 0.3s ease-in-out;
outline: 2px dashed transparent;
&:hover {
color: var(--theme-color);
}
&:focus {
outline-color: var(--theme-color);
transform: translateY(-4px);
color: var(--theme-color);
}
}
}
}
}
&:nth-of-type(even) {
justify-content: flex-start;
.project-image {
right: 0;
left: initial;
}
.project-info {
align-items: flex-start;
&-description {
p {
text-align: start;
}
}
}
}
}
}
@media screen and (max-width: 1100px) {
&-container {
align-items: center;
.project {
justify-content: flex-start;
.project-info {
width: 600px;
height: 300px;
background-color: rgba(31, 10, 44, 0.592);
align-items: flex-start;
padding: 1rem;
&-description {
background-color: transparent;
p {
padding: 0;
text-align: start;
}
}
}
&:nth-of-type(even) {
.project-image {
left: 0;
right: initial;
}
}
}
}
}
@media screen and (max-width: 680px) {
margin: 5rem 0;
&-container {
.project {
&-image {
&-container {
width: 500px;
height: 300px;
}
}
.project-info {
width: 500px;
height: 300px;
}
}
}
}
@media screen and (max-width: 600px) {
&-container {
.project {
&-image {
&-container {
width: 350px;
height: 400px;
}
}
.project-info {
width: 350px;
height: 400px;
}
}
}
}
@media screen and (max-width: 968px) {
.title {
h2 {
&::after {
width: 100px;
}
}
}
}
@media screen and (max-width: 600px) {
.title {
h2 {
&::after {
display: none;
}
}
}
}
}
import React from "react";
function Logo() {
return (
<svg id="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<title>Logo</title>
<g>
<g id="K" transform="translate(35.000000, 35.000000)">
<path
fill="currentColor"
d="M 23.363281 24.847656 L 15.269531 13.421875 L 22.847656 4.730469 C 22.972656 4.582031 23.003906 4.375 22.925781 4.199219 C 22.847656 4.019531 22.675781 3.90625 22.488281 3.90625 L 18.683594 3.90625 C 18.546875 3.90625 18.417969 3.964844 18.324219 4.066406 L 10.429688 12.9375 L 10.429688 4.398438 C 10.429688 4.128906 10.210938 3.90625 9.945312 3.90625 L 6.566406 3.90625 C 6.300781 3.90625 6.085938 4.128906 6.085938 4.398438 L 6.085938 25.140625 C 6.085938 25.410156 6.300781 25.632812 6.566406 25.632812 L 9.945312 25.632812 C 10.210938 25.632812 10.429688 25.410156 10.429688 25.140625 L 10.429688 18.976562 L 12.644531 16.433594 L 19.007812 25.429688 C 19.097656 25.558594 19.246094 25.632812 19.398438 25.632812 L 22.972656 25.632812 C 23.15625 25.632812 23.320312 25.527344 23.402344 25.363281 C 23.484375 25.199219 23.472656 25 23.363281 24.847656 Z M 23.363281 24.847656 "
/>
</g>
<path
stroke="currentColor"
strokeWidth="5"
strokeLinecap="round"
strokeLinejoin="round"
d="M 50, 5
L 11, 27
L 11, 72
L 50, 95
L 89, 73
L 89, 28 z"
/>
</g>
</svg>
);
}
export default Logo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment