-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools layout, incluida libreria masonry
- Loading branch information
Showing
6 changed files
with
114 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@import "../lib/_variables.sass" | ||
@import "../lib/_mixins.sass" | ||
|
||
//media queries | ||
.tool_logo { | ||
width: 40%; | ||
padding-bottom: 2rem; | ||
align-self: center; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
"use client" | ||
|
||
import Header from "@/components/Header"; | ||
import Footer from "@/components/Footer"; | ||
import React from "react" | ||
import Masonry, { ResponsiveMasonry } from "react-responsive-masonry" | ||
import Link from 'next/link'; | ||
import image from 'next/image'; | ||
import { useState, useEffect } from 'react'; | ||
import { mytools } from "@/constants/tools"; | ||
|
||
export default function Tools(props) { | ||
|
||
const [tools, setTools] = useState(mytools); | ||
|
||
useEffect(() => { | ||
window.scrollTo(0, 0); | ||
}, []); | ||
|
||
return ( | ||
<div className="tools"> | ||
<Header route="/tools" /> | ||
<div className="banner"> | ||
<h1>Tools</h1> | ||
</div> | ||
<main> | ||
|
||
<section className="our_tools lg:mx-36 md:mx-14 sm:mx-8 mx-4 lg:my-12 md:my-8 sm:my-4"> | ||
|
||
<ResponsiveMasonry | ||
columnsCountBreakPoints={{ 350: 1, 750: 2, 900: 3 }} | ||
> | ||
<Masonry gutter="24px"> | ||
|
||
{tools.map(({ title, description, route, logo }) => { | ||
return (<div> | ||
<div class="w-full"> | ||
<div className="tool_logo"> | ||
<img alt={"Project Logo"} src={logo} style={{ height: '50px' }} /> | ||
</div> | ||
</div> | ||
<div class="block justify-between"> | ||
<div className="tool_title"> | ||
<h2>{title}</h2> | ||
</div> | ||
<div className="tool_description"> | ||
<p>{description}</p> | ||
</div> | ||
</div> | ||
<CreateLink route={route}>BOTON LINK</CreateLink> | ||
|
||
|
||
</div> | ||
|
||
); | ||
})} | ||
</Masonry> | ||
</ResponsiveMasonry> | ||
</section> | ||
</main> | ||
<Footer /> | ||
</div> | ||
) | ||
|
||
|
||
} | ||
const CreateLink = (props) => { | ||
return props.route.match("http") ? ( | ||
<a target="_blank" href={props.route} rel="noopener noreferrer"> | ||
{props.children} | ||
</a> | ||
) : ( | ||
<Link to={props.route}> | ||
{props.children} | ||
</Link> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters