-
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.
Co-authored-by: michal-karalus <[email protected]> Co-authored-by: Jędrzej Ratajczak <[email protected]>
- Loading branch information
1 parent
94194be
commit 81726f5
Showing
10 changed files
with
121 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
command_exists () { | ||
command -v "$1" >/dev/null 2>&1 | ||
} | ||
|
||
# Workaround for Windows 10, Git Bash and Yarn | ||
if command_exists winpty && test -t 1; then | ||
exec < /dev/tty | ||
fi |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
export { PressCard } from './PressCard'; |
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,31 @@ | ||
import { hexToRGB } from '@/utils/colorUtils'; | ||
|
||
type PressColorsProps = { | ||
color: string; | ||
title: string; | ||
hex: string; | ||
}; | ||
|
||
export const PressColors = ({ color, title, hex }: PressColorsProps) => { | ||
const rgb = hexToRGB(hex); | ||
|
||
return ( | ||
<div className="h-48 align-center flex w-[171px] flex-1 flex-col p-0 md:w-[222px]"> | ||
<div | ||
className="w-56 md:w-72 h-20 rounded-lg p-4 shadow-2xl shadow-lg" | ||
style={{ backgroundColor: color }} | ||
/> | ||
<div className="h-48 flex flex-col items-center p-0 pb-8"> | ||
<p className="mb-2 p-4 text-xl font-semibold">{title}</p> | ||
<div className="font-semibold uppercase"> | ||
<p className="text-base uppercase leading-normal text-primary"> | ||
hex: {hex} | ||
</p> | ||
<p className="text-base uppercase leading-normal text-primary"> | ||
rgb: {rgb} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
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 @@ | ||
export { PressColors } from './PressColors'; |
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,73 @@ | ||
import { SectionWrapper } from '@/components'; | ||
import { PressCard } from '@/components/PressCard'; | ||
import { PressColors } from '@/components/PressColors'; | ||
import { hexToRGB } from '@/utils/colorUtils'; | ||
|
||
const colorData = [ | ||
{ title: 'Biały', hex: '#ffffff' }, | ||
{ title: 'Niebieski', hex: '#1a90ff' }, | ||
{ title: 'Czarny', hex: '#292929' } | ||
]; | ||
|
||
const PressPack = () => ( | ||
<SectionWrapper className="grid items-center overflow-hidden "> | ||
<div className="flex flex-col gap-y-10"> | ||
<div className="items-left flex flex-col gap-4"> | ||
<h1 className="mb-6 text-3.5xl font-bold leading-tight md:mb-10 md:text-5xl"> | ||
PressPack | ||
</h1> | ||
<p className="items-left text-xl leading-normal"> | ||
Tutaj możesz pobrać nasz logotyp w różnych wersjach, w zależności od | ||
potrzeb. Dołożyliśmy również oficjalne kolory wykorzystywane w | ||
komunikacji wizualnej naszego stowarzyszenia. | ||
</p> | ||
</div> | ||
<div className="align-center flex flex-col items-center"> | ||
<div className="items-left flex max-w-3xl flex-col justify-center"> | ||
<h2 className="mb-4 ml-3 items-center text-2xl md:font-bold">Logo</h2> | ||
<div className="w-360 rounded-8 flex flex-col items-center justify-center gap-2 p-0 pb-8 md:flex-row"> | ||
<PressCard | ||
src="/pressPack/logotypCiemny.png" | ||
alt="Logotyp ciemny" | ||
title="Logotyp ciemny" | ||
/> | ||
<PressCard | ||
src="/pressPack/logotypBiały.png" | ||
alt="Logotyp biały" | ||
title="Logotyp biały" | ||
/> | ||
</div> | ||
<div className="w-360 rounded-8 flex flex-col items-center justify-center gap-2 p-0 pb-20 md:flex-row"> | ||
<PressCard | ||
src="/pressPack/logotypCzarnyDruk.png" | ||
alt="Logotyp czarny druk" | ||
title="Logotyp czarny druk" | ||
/> | ||
<PressCard | ||
src="/pressPack/logotypBiałyDruk.png" | ||
alt="Logotyp biały druk" | ||
title="Logotyp biały druk" | ||
/> | ||
</div> | ||
<div className="flex max-w-6xl flex-col"> | ||
<h2 className="mb-4 items-center text-2xl font-bold"> | ||
Kolory CodersCrew | ||
</h2> | ||
<div className="flex flex-col gap-10 p-4 md:flex-row"> | ||
{colorData.map(({ title, hex }) => ( | ||
<PressColors | ||
key={hex} | ||
color={`rgb(${hexToRGB(hex)})`} | ||
title={title} | ||
hex={hex} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</SectionWrapper> | ||
); | ||
|
||
export default PressPack; |
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,7 @@ | ||
export const hexToRGB = (hex: string) => { | ||
const red = parseInt(hex.slice(1, 3), 16); | ||
const green = parseInt(hex.slice(3, 5), 16); | ||
const blue = parseInt(hex.slice(5, 7), 16); | ||
|
||
return `${red}, ${green}, ${blue}`; | ||
}; |
81726f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
coderscrew-website – ./
coderscrew-website-coderscrew.vercel.app
coderscrew-website-git-main-coderscrew.vercel.app
coderscrew-website.vercel.app