Skip to content

Commit

Permalink
hotfix para deploy!
Browse files Browse the repository at this point in the history
  • Loading branch information
roomNdev committed Jun 8, 2024
1 parent 6e608cc commit 1e19e98
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 177 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
.cache/
public
src/gatsby-types.d.ts
.env
6 changes: 3 additions & 3 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ const config: GatsbyConfig = {
},{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Lee up",
short_name: "Lee up",
name: "CIFUP",
short_name: "CIFUP",
start_url: "/",
// background_color: "#6b37bf",
// theme_color: "#6b37bf",
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: "standalone",
icon: "src/images/icon.svg", // This path is relative to the root of the site.
icon: "src/images/icon.png" // This path is relative to the root of the site.
// An optional attribute which provides support for CORS check.
// If you do not provide a crossOrigin option, it will skip CORS for manifest.
// Any invalid keyword or empty string defaults to `anonymous`
Expand Down
4 changes: 2 additions & 2 deletions sanity-config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
"projectID": process.env.GATSBY_SANITY_PROJECT_ID,
"dataset": process.env.GATSBY_SANITY_DATASET,
"projectID": "ihd1obi1",
"dataset": "production",
};
158 changes: 1 addition & 157 deletions src/components/author/MembersItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,163 +76,7 @@ function MembersItem({members}) {

</AuthorItemStyles>
})
}{
members
.filter((member) => member.area.slug.current === item.slug.current)
.map(member => {
const splittedName = member.name.split(' ')

return <AuthorItemStyles className="author-item" >
{/* <Link to={`/miembros/${member.slug.current}`}> */}
<section className='image__wrapper'>
<GatsbyImage
image={member.profileImage.asset.gatsbyImageData}
alt={member.name}
className="profileImage"
/>
</section>
<section className='data'>
<Link to={`/miembros/${member.slug.current}`}
className="title">
{
splittedName.map(i => (
<Title
tag={'h2'}
className="title">
{i}
</Title>

))
}
</Link>
<ParagraphText className="role">
{member.role}
</ParagraphText>
</section>
<div className='author_socialList'>
{ member.linkedin ? <a href={`${member.linkedin}`}><FaLinkedin className='icon' size={20}></FaLinkedin></a> : <></>} </div>
{/* </Link> */}

</AuthorItemStyles>
})
}{
members
.filter((member) => member.area.slug.current === item.slug.current)
.map(member => {
const splittedName = member.name.split(' ')

return <AuthorItemStyles className="author-item" >
{/* <Link to={`/miembros/${member.slug.current}`}> */}
<section className='image__wrapper'>
<GatsbyImage
image={member.profileImage.asset.gatsbyImageData}
alt={member.name}
className="profileImage"
/>
</section>
<section className='data'>
<Link to={`/miembros/${member.slug.current}`}
className="title">
{
splittedName.map(i => (
<Title
tag={'h2'}
className="title">
{i}
</Title>

))
}
</Link>
<ParagraphText className="role">
{member.role}
</ParagraphText>
</section>
<div className='author_socialList'>
{ member.linkedin ? <a href={`${member.linkedin}`}><FaLinkedin className='icon' size={20}></FaLinkedin></a> : <></>} </div>
{/* </Link> */}

</AuthorItemStyles>
})
}{
members
.filter((member) => member.area.slug.current === item.slug.current)
.map(member => {
const splittedName = member.name.split(' ')

return <AuthorItemStyles className="author-item" >
{/* <Link to={`/miembros/${member.slug.current}`}> */}
<section className='image__wrapper'>
<GatsbyImage
image={member.profileImage.asset.gatsbyImageData}
alt={member.name}
className="profileImage"
/>
</section>
<section className='data'>
<Link to={`/miembros/${member.slug.current}`}
className="title">
{
splittedName.map(i => (
<Title
tag={'h2'}
className="title">
{i}
</Title>

))
}
</Link>
<ParagraphText className="role">
{member.role}
</ParagraphText>
</section>
<div className='author_socialList'>
{ member.linkedin ? <a href={`${member.linkedin}`}><FaLinkedin className='icon' size={20}></FaLinkedin></a> : <></>} </div>
{/* </Link> */}

</AuthorItemStyles>
})
}{
members
.filter((member) => member.area.slug.current === item.slug.current)
.map(member => {
const splittedName = member.name.split(' ')

return <AuthorItemStyles className="author-item" >
{/* <Link to={`/miembros/${member.slug.current}`}> */}
<section className='image__wrapper'>
<GatsbyImage
image={member.profileImage.asset.gatsbyImageData}
alt={member.name}
className="profileImage"
/>
</section>
<section className='data'>
<Link to={`/miembros/${member.slug.current}`}
className="title">
{
splittedName.map(i => (
<Title
tag={'h2'}
className="title">
{i}
</Title>

))
}
</Link>
<ParagraphText className="role">
{member.role}
</ParagraphText>
</section>
<div className='author_socialList'>
{ member.linkedin ? <a href={`${member.linkedin}`}><FaLinkedin className='icon' size={20}></FaLinkedin></a> : <></>} </div>
{/* </Link> */}

</AuthorItemStyles>
})
}
}
</section>
</details>
})
Expand Down
21 changes: 17 additions & 4 deletions src/components/author/Persons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,33 @@ function Persons() {
}
`);

const areas = data.allSanityAuthor.group
const authorsData = data.sanityPageContent
const [section, setsection] = useState('directiva');

const handleChangeSections = (section) => {
setsection(section)
}
console.log(areas);

const order = ['Directiva', 'Miembro', 'Honorarios', 'ExMiembros'];

let rearrangedAreas = areas.sort((a, b) => {
return order.indexOf(a.fieldValue) - order.indexOf(b.fieldValue);
const areas = data.allSanityAuthor.group; // Suponiendo que este es el array inicial

// Crear un objeto auxiliar para encontrar elementos por fieldValue
let areasMap = {};
areas.forEach(area => {
areasMap[area.fieldValue] = area;
});

// Crear un nuevo array asegurando que tenga las 4 posiciones necesarias
let rearrangedAreas = order.map(fieldValue => {
return areasMap[fieldValue] || { totalCount: 0, fieldValue, nodes: [] };
});

console.log(rearrangedAreas);
// let rearrangedAreas = areas.sort((a, b) => {
// return order.indexOf(a.fieldValue) - order.indexOf(b.fieldValue);
// });

rearrangedAreas[0].fieldDesc = authorsData.members_directiva
rearrangedAreas[1].fieldDesc = authorsData.members_miembros
rearrangedAreas[2].fieldDesc = authorsData.members_honorarios
Expand Down
11 changes: 0 additions & 11 deletions src/pages/podcast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ const IndexPage: React.FC<PageProps> = () => {
return <div dangerouslySetInnerHTML={{__html: item.url}}></div>
})
}

{
urls.map(item => {
return <div dangerouslySetInnerHTML={{__html: item.url}}></div>
})
}
{
urls.map(item => {
return <div dangerouslySetInnerHTML={{__html: item.url}}></div>
})
}
</div>
</div>
</PodcastsStyles>
Expand Down
1 change: 1 addition & 0 deletions src/styles/homePage/HeroSectionStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled from 'styled-components';
export const HeroSectionStyles = styled.div`
height: calc(70vh - 100px);
.bg-image {
width: 100%;
position: absolute;
top: 0;
z-index: -10;
Expand Down

0 comments on commit 1e19e98

Please sign in to comment.