Skip to content

Commit

Permalink
fix: Mise à jours des liens d'images
Browse files Browse the repository at this point in the history
  • Loading branch information
victorraguin committed Apr 9, 2024
1 parent 2418cff commit 03f954e
Show file tree
Hide file tree
Showing 18 changed files with 2,865 additions and 6,508 deletions.
9,250 changes: 2,772 additions & 6,478 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "skult",
"name": "ex-skult-landing-page",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -10,10 +10,7 @@
"lint": "next lint",
"lint-fix": "eslint --fix \"src/**/*.{js,jsx,tsx,ts}\"",
"prettier-check": "prettier ./.prettierrc.js --check 'src/**/*.{js,jsx,ts,tsx}' --no-error-on-unmatched-pattern",
"prettier-run": "prettier ./.prettierrc.js --write \"src/**/*.{js,jsx,ts,tsx}\" --no-error-on-unmatched-pattern",
"co:login:skultgg": "aws codeartifact login --tool npm --repository lib --domain skultgg --domain-owner 129095079376 --namespace @skultgg",
"co:login:skultgg-config": "aws codeartifact login --tool npm --repository eslint-config-skult --domain skultgg --domain-owner 129095079376 --namespace @skultgg-config",
"co:login": "npm run co:login:skultgg && npm run co:login:skultgg-config"
"prettier-run": "prettier ./.prettierrc.js --write \"src/**/*.{js,jsx,ts,tsx}\" --no-error-on-unmatched-pattern"
},
"husky": {
"hooks": {
Expand All @@ -29,7 +26,6 @@
"@emotion/styled": "^11.9.3",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.6.1",
"@skultgg/lib": "^1.23.0",
"beautiful-react-hooks": "^1.2.0",
"dotenv": "^16.0.0",
"framer-motion": "^6.2.9",
Expand All @@ -43,7 +39,6 @@
},
"devDependencies": {
"@material-ui/core": "^4.12.3",
"@skultgg-config/eslint-config-skult": "^1.5.0",
"@types/node": "^16.11.26",
"@types/qs": "^6.9.7",
"@types/react": "^17.0.42",
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion src/components/partials/CollectiblesBlockFirst.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const CollectiblesBlockFirst = () => {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.5 }}
src="https://cdn.skult.gg/Landing+Page/skult-streamer-cards.png"
src="/skult-streamer-cards.png"
alt="SKULT Streamer Cards"
className="mx-auto mb-12 hidden h-72 sm:flex lg:h-80 xl:h-96"
/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/partials/CollectiblesUseCaseEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ export const CollectiblesUseCaseEvents = () => {

const events: Event[] = [
{
image: 'https://cdn.skult.gg/Landing+Page/wow.png',
image: '/wow.png',
name: t('collectiblesUseCases.events.iryanne.name'),
description: t('collectiblesUseCases.events.iryanne.description'),
social: 'https://www.twitch.tv/iryanne',
quote: '- Iryanne, WoW Streamer',
},
{
image: 'https://cdn.skult.gg/Landing+Page/rtx3080.png',
image: '/rtx3080.png',
name: t('collectiblesUseCases.events.gpu.name'),
description: t('collectiblesUseCases.events.gpu.description'),
quote: '- WaieNot, Mutligaming Streamer',
},
{
image: 'https://cdn.skult.gg/Landing+Page/worlds.png',
image: '/worlds.png',
name: t('collectiblesUseCases.events.worlds.name'),
description: t('collectiblesUseCases.events.worlds.description'),
quote: '- Midbeast, LoL Streamer',
Expand Down
6 changes: 1 addition & 5 deletions src/components/partials/CollectiblesUseCaseLeagues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ const HowTo = () => {
const router = useRouter();
return (
<Image
src={
router.locale == 'fr'
? 'https://cdn.skult.gg/Landing+Page/skult-league-fr.svg'
: 'https://cdn.skult.gg/Landing+Page/league.svg'
}
src={'/league.svg'}
alt="league rules"
layout="intrinsic"
height={384}
Expand Down
3 changes: 3 additions & 0 deletions src/components/partials/ContactForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const ContactForm = ({ className, inputClassname }: { className?: string;
placeholder={t('form.contact.firstname')}
value={firstname}
onChange={e => setFirstname(e.target.value)}
disabled
/>
<input
className={`
Expand All @@ -53,6 +54,7 @@ export const ContactForm = ({ className, inputClassname }: { className?: string;
placeholder={t('form.contact.email')}
value={email}
onChange={e => setEmail(e.target.value)}
disabled
/>
{isStreamer && (
<input
Expand All @@ -65,6 +67,7 @@ export const ContactForm = ({ className, inputClassname }: { className?: string;
placeholder={t('form.contact.twitchLink')}
value={twitchLink}
onChange={e => setTwitchLink(e.target.value)}
disabled
/>
)}
<input
Expand Down
2 changes: 1 addition & 1 deletion src/components/partials/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Footer = () => {
<div className="mx-1 flex flex-row flex-wrap justify-around py-5">
<div className="hidden flex-col items-center justify-center md:flex">
<Link href="#top" passHref>
<img className="mx-4 h-[38px] cursor-pointer" src="https://cdn.skult.gg/Landing+Page/SKULT.png" alt="SKULT" />
<img className="mx-4 h-[38px] cursor-pointer" src="/elements/SKULT.png" alt="SKULT" />
</Link>
<div className="relative w-[140px]">
<p className="absolute right-0 top-0 w-32 text-center font-poppins text-xs text-[#a9a9a9]">© 2022 - SKULT</p>
Expand Down
4 changes: 3 additions & 1 deletion src/components/partials/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Link from 'next/link';
import { useRouter } from 'next/router';
import { FlagIcon } from 'react-flag-kit';
import { useTranslation } from 'next-i18next';
import SKULTLogo from '../../../public/elements/logo-skult.png';
import Image from 'next/image';

const Header = () => {
const router = useRouter();
Expand All @@ -23,7 +25,7 @@ const Header = () => {
<Link href="#top" passHref>
<img
className="mx-10 mt-6 h-8 cursor-pointer transition duration-100 ease-in-out md:mx-auto md:mt-5 xl:mx-auto xl:mt-7 xl:h-12 2xl:h-14 4xl:h-16"
src={`https://cdn.skult.gg/Landing+Page/SKULT.png`}
src="/elements/logo-skult.png"
alt="SKULT"
/>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/partials/HeaderStreamer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Header = () => {
<Link href="#top" passHref>
<img
className=" mx-auto mt-6 h-8 cursor-pointer transition duration-100 ease-in-out md:mx-auto md:mt-5 xl:mx-auto xl:mt-7 xl:h-12 2xl:h-14 4xl:h-16"
src={`https://cdn.skult.gg/Landing+Page/SKULT.png`}
src={`/elements/SKULT.png`}
alt="SKULT"
/>
</Link>
Expand Down
1 change: 0 additions & 1 deletion src/components/partials/PresentationBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const PresentationBlock = () => {
muted
controls
>
<source src="https://cdn.skult.gg/SKULT.mp4" type="video/mp4" />
</motion.video>
<motion.div
animate={controls}
Expand Down
2 changes: 1 addition & 1 deletion src/components/partials/SocialBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SocialBlock = () => {
return (
<motion.div className="relative h-screen w-full flex-auto bg-[#222222] xl:h-screen" ref={ref}>
<motion.div
style={{ backgroundImage: `url("https://cdn.skult.gg/Landing+Page/skult-social.webp")` }}
style={{ backgroundImage: `url("/elements/skult-social.webp")` }}
className="flex h-full w-full items-end justify-center bg-cover bg-center bg-no-repeat"
animate={controls}
initial="hidden"
Expand Down
2 changes: 1 addition & 1 deletion src/components/partials/StartBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const StartBlock = () => {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 3.5, duration: 1 }}
src="https://cdn.skult.gg/Landing+Page/skult-streamer-cards.png"
src="/skult-streamer-cards.png"
alt="SKULT Streamer Cards"
className="xl:mt-[5rem] xl:scale-[90%] 3xl:mt-[3rem] 3xl:ml-10 3xl:scale-[90%]"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/partials/StreamerBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default StreamerBlock;

const Title = () => (
<div className="flex flex-row flex-wrap items-baseline justify-center gap-x-4 pb-16">
<img src="https://cdn.skult.gg/SKULT_logo.png" alt="SKULT Logo" className="h-10" />
<img src="/elements/SKULT.png" alt="SKULT Logo" className="h-10" />
<Trans i18nKey="benefits.title" ns="streamers">
<div className="text-center font-poppins text-5xl font-light leading-none text-[#E7E7E7]">
for
Expand Down
4 changes: 2 additions & 2 deletions src/components/partials/StreamerExperience.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const StreamerExperiences = () => {
`}
>
<Experience
icon="https://cdn.skult.gg/Landing+Page/EVENTS.png"
icon="/elements/streamer/EVENTS.png"
title={
<Trans i18nKey="experience.events.title" ns="streamers">
<span>
Expand All @@ -25,7 +25,7 @@ export const StreamerExperiences = () => {
description={t('experience.events.description')}
/>
<Experience
icon="https://cdn.skult.gg/Landing+Page/CARD-PLAY-EARN.png"
icon="/elements/streamer/CARD-PLAY-EARN.png"
title={
<Trans i18nKey="experience.title" ns="streamers">
<span>
Expand Down
6 changes: 3 additions & 3 deletions src/components/partials/StreamerRanks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const Title = () => (

const ranks = [
{
icon: 'https://cdn.skult.gg/Landing+Page/1stars.png',
icon: '/elements/streamer/1stars.png',
name: 'ROOKIE',
},
{
icon: 'https://cdn.skult.gg/Landing+Page/2stars.png',
icon: '/elements/streamer/2stars.png',
name: 'HERO',
},
{
icon: 'https://cdn.skult.gg/Landing+Page/3stars.png',
icon: '/elements/streamer/3stars.png',
name: 'LEGEND',
},
];
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
70 changes: 69 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,69 @@
module.exports = require('@skultgg/lib/dist/tailwind.config');
/* eslint-disable unicorn/prefer-module */
module.exports = {
mode: 'jit',
content: ['./src/**/*.{js,ts,jsx,tsx}', './node_modules/@skultgg/**/*.js'],
theme: {
extend: {
screens: {

sm: '640px',
// => @media (min-width: 640px) { ... }
md: '768px',
// => @media (min-width: 768px) { ... }
lg: '1024px',
// => @media (min-width: 1024px) { ... }
xl: '1280px',
// => @media (min-width: 1280px) { ... }
'2xl': '1536px',
// => @media (min-width: 1536px) { ... }
'3xl': '1920px',
// => @media (min-width: 1920px) { ... }
'4xl': '2560px',
// => @media (min-width: 2560px) { ... }
'5xl': '3440px',
// => @media (min-width: 3440px) { ... }
'6xl': '3840px',
// => @media (min-width: 3840px) { ... }
},
colors: {
primary: {
500: '#FFD000',
DEFAULT: '#FFC000',
700: '#FFB000',
},
secondary: {
DEFAULT: '#242731',
},
disabled: '#E4E4E4',
barShartStat: '#FF544D',
'bg-1': '#1F2128',
'grey-neutral': '#808191',
'grey-50': '#E4E4E4',
},
backgroundImage: {
'img-1': "url('/resources/images/full-bg.png')",
},
fontFamily: {
sans: ['Inter'],
poppins: ['Poppins', 'Inter', 'sans-serif'],
},
keyframes: {
wiggle: {
'0%, 100%': {
transform: 'rotate(-3deg)',
},
'50%': {
transform: 'rotate(3deg)',
},
},
},
animation: {
wiggle: 'wiggle 200ms ease-in-out',
},
},
},
variants: {
extend: {},
},
plugins: [require('tailwind-scrollbar')],
};

0 comments on commit 03f954e

Please sign in to comment.