Skip to content

Commit

Permalink
style: technology component
Browse files Browse the repository at this point in the history
  • Loading branch information
12Gustavo21 committed Dec 30, 2023
1 parent f70b93a commit 2dfa520
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 23 deletions.
47 changes: 31 additions & 16 deletions src/assets/components/technologies/index.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,53 @@
import React, { useEffect } from 'react';
import React, { useEffect } from "react";

//Styles
import * as S from './style';
import * as S from "./style";

//Atropos
import Atropos from 'atropos/react';
import Atropos from "atropos/react";

//AOS
import AOS from 'aos';
import 'aos/dist/aos.css';
import AOS from "aos";
import "aos/dist/aos.css";

export default function Cards({ tech }) {

useEffect(() => {
AOS.init();
});

return (
<S.ContentWrapper>
<Atropos>
{tech.technology.map((technology, index) => (
{tech.technology.map((technology, index) => (
<Atropos
data-aos="fade-up"
data-aos-duration="2000"
key={index}
rotateXMax={18}
rotateYMax={18}
>
<div className="atropos atropos-header w-full atropos-rotate-touch-scroll-y atropos-rotate-touch">
<div className='atropos-scale'>
<a href={technology.docs} target="_blank" rel="noopener noreferrer" data-aos="fade-up" data-aos-duration="2000" key={index}>
<div className='atropos-rotate'>
<div className='atropos-inner'>
<img src={technology.technologyImage} alt={technology.name} title={technology.name} width={50} data-atropos-offset="3" />
<div className="atropos-scale">
<a
href={technology.docs}
target="_blank"
rel="noopener noreferrer"
>
<div className="atropos-rotate">
<div className="atropos-inner">
<img
src={technology.technologyImage}
alt={technology.name}
title={technology.name}
width={50}
data-atropos-offset="3"
/>
</div>
</div>
</a>
</div>
</div>
))}
</Atropos>
</Atropos>
))}
</S.ContentWrapper>
);
}
}
45 changes: 38 additions & 7 deletions src/assets/components/technologies/style.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
import styled from "styled-components";

export const ContentWrapper = styled.section`
width: 100%;
height: 100%;
width: 90%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
img {
width: 5rem;
height: 5rem;
object-fit: contain;
.atropos {
width: 10rem;
height: 10rem;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 15rem;
.atropos-scale {
width: 11rem;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 11, 29, .7);
border-radius: 1.5rem;
.atropos-rotate {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
img {
width: 6rem;
height: 6rem;
object-fit: contain;
}
}
}
}
`;
`;
Binary file modified src/assets/img/dark-forest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2dfa520

Please sign in to comment.