mirror of
https://github.com/harivansh-afk/React-Portfolio.git
synced 2026-04-19 23:01:36 +00:00
chore: more chanages
This commit is contained in:
parent
0fd21602f3
commit
4114e514a2
10 changed files with 249 additions and 783 deletions
|
|
@ -3,6 +3,7 @@ import "./style.css";
|
|||
import { Helmet, HelmetProvider } from "react-helmet-async";
|
||||
import { Container, Row, Col } from "react-bootstrap";
|
||||
import { dataportfolio, meta } from "../../content_option";
|
||||
import { FaExternalLinkAlt } from "react-icons/fa";
|
||||
|
||||
export const Portfolio = () => {
|
||||
return (
|
||||
|
|
@ -21,12 +22,18 @@ export const Portfolio = () => {
|
|||
</Row>
|
||||
<div className="mb-5 project_items_ho">
|
||||
{dataportfolio.map((data, i) => {
|
||||
const title = data.description.split(",")[0];
|
||||
const description = data.description.split(",").slice(1).join(",").trim();
|
||||
|
||||
return (
|
||||
<div key={i} className="project_item">
|
||||
<img src={data.img} alt="" />
|
||||
<img src={data.img} alt={title} />
|
||||
<div className="content">
|
||||
<p>{data.description}</p>
|
||||
<a href={data.link} target="_blank" rel="noopener noreferrer">View Project</a>
|
||||
<h3>{title}</h3>
|
||||
<p>{description}</p>
|
||||
<a href={data.link} target="_blank" rel="noopener noreferrer">
|
||||
View Project <FaExternalLinkAlt size={14} />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,683 +1,128 @@
|
|||
.project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
|
||||
gap: 2.5rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
margin: 2rem auto;
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 0;
|
||||
border: 1px solid var(--card-border, var(--muted));
|
||||
border-radius: 8px;
|
||||
outline: 2px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 1;
|
||||
aspect-ratio: 16/10;
|
||||
box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
.project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
transition: transform 0.5s ease;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 0;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
aspect-ratio: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
aspect-ratio: 1;
|
||||
.project_item:hover img {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.project_item .content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
inset: 0;
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--overlay-bg, rgba(0, 0, 0, 0.7));
|
||||
backdrop-filter: blur(4px);
|
||||
justify-content: flex-end;
|
||||
align-items: flex-start;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0, 0, 0, 0.9) 0%,
|
||||
rgba(0, 0, 0, 0.7) 40%,
|
||||
rgba(0, 0, 0, 0) 100%
|
||||
);
|
||||
opacity: 0;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 1.5rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
>>>>>>>REPLACE > .project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 0;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
>>>>>>>REPLACE > .project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 1rem;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
.project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 1rem;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
max-width: 100%;
|
||||
max-height: 200px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.project_item .content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(4px);
|
||||
opacity: 0;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 1.5rem;
|
||||
box-sizing: border-box;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.project_item:hover .content {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.project_item .content p {
|
||||
color: var(--overlay-text, white);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
text-align: center;
|
||||
max-width: 90%;
|
||||
background: var(--overlay-text-bg, rgba(0, 0, 0, 0.5));
|
||||
padding: 0.5rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
>>>>>>>REPLACE > .project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 0;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
>>>>>>>REPLACE > .project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 1rem;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
.project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 1rem;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
max-width: 100%;
|
||||
max-height: 200px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.project_item .content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--overlay-bg, rgba(var(--background-rgb), 0.9));
|
||||
backdrop-filter: blur(4px);
|
||||
opacity: 0;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 1.5rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.project_item:hover .content {
|
||||
opacity: 1;
|
||||
.project_item .content h3 {
|
||||
color: #fff;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.8rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.project_item .content p {
|
||||
color: white;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
text-align: center;
|
||||
max-width: 90%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
padding: 0.5rem;
|
||||
border-radius: 4px;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 1.5rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.project_item .content a {
|
||||
background: var(--overlay-button-bg, rgba(255, 255, 255, 0.9));
|
||||
border: 1px solid var(--overlay-button-border, rgba(255, 255, 255, 0.2));
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
text-align: center;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--overlay-button-text, black);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 0.8rem 1.5rem;
|
||||
background: var(--primary-color);
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.project_item .content a:hover {
|
||||
background: var(--overlay-button-hover-bg, rgba(255, 255, 255, 1));
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||
}
|
||||
.project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 0;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
>>>>>>>REPLACE > .project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 1rem;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
background: var(--secondary-color);
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
/* Mobile Styles */
|
||||
@media (max-width: 768px) {
|
||||
.project_items_ho {
|
||||
gap: 1.5rem;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
aspect-ratio: 3/2;
|
||||
}
|
||||
|
||||
.project_item .content {
|
||||
opacity: 1;
|
||||
padding: 1.5rem;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0, 0, 0, 0.95) 0%,
|
||||
rgba(0, 0, 0, 0.8) 40%,
|
||||
rgba(0, 0, 0, 0.4) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.project_item .content h3 {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
.project_item .content p {
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.project_item .content a {
|
||||
padding: 0.6rem 1.2rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
.project_items_ho {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
gap: 2rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.project_item {
|
||||
width: calc(33% - 2rem);
|
||||
text-align: center;
|
||||
margin: 0.5rem;
|
||||
position: relative;
|
||||
background: var(--card-bg, var(--background));
|
||||
padding: 1rem;
|
||||
border: 0.5px solid var(--card-border, var(--foreground));
|
||||
border-radius: 8px;
|
||||
outline: 3px solid var(--card-outline-color, var(--primary));
|
||||
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 0;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.project_item:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--card-outline-hover, var(--primary));
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.project_item {
|
||||
width: calc(50% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.project_item {
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
||||
.project_item img {
|
||||
max-width: 100%;
|
||||
max-height: 200px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.project_item .content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.85);
|
||||
backdrop-filter: blur(4px);
|
||||
opacity: 0;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 1.5rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.project_item:hover .content {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.project_item .content p {
|
||||
color: white;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
text-align: center;
|
||||
max-width: 90%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
padding: 0.5rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.project_item .content a {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem 1rem;
|
||||
text-align: center;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.project_item .content a:hover {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue