Skip to content

Commit

Permalink
chore: remove src folder and fix contrast (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Aug 7, 2023
1 parent 33536c8 commit abcc779
Show file tree
Hide file tree
Showing 44 changed files with 20 additions and 262 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default async function Episode({
</h1>
<FormattedDate
date={date}
className="order-first font-mono text-sm leading-7 text-slate-500"
className="order-first font-mono text-sm leading-7 text-accent-gray"
/>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/layout.tsx → app/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Link from 'next/link'
import { AboutSection } from '@/components/AboutSection'
import { AudioProvider } from '@/components/AudioProvider'
import { AudioPlayer } from '@/components/player/AudioPlayer'
import posterImage from '@/images/logo-erreur-200-home.png'
import posterImage from '@/public/images/logo-erreur-200-home.png'
import {
ApplePodcastIcon,
OvercastIcon,
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function MainLayout({ children }: { children: ReactNode }) {
<AudioProvider>
<header className="bg-primary-dark lg:fixed lg:inset-y-0 lg:left-0 lg:flex lg:w-112 lg:items-start lg:overflow-y-auto xl:w-120">
<div className="hidden lg:sticky lg:top-0 lg:flex lg:w-16 lg:flex-none lg:items-center lg:whitespace-nowrap lg:py-12 lg:text-sm lg:leading-7 lg:[writing-mode:vertical-rl]">
<span className="font-mono text-slate-500">Animé par</span>
<span className="font-mono text-accent-gray">Animé par</span>
<span className="mt-6 flex gap-6 font-bold text-white">
{HOSTS.map((host, hostIndex) => (
<Fragment key={host}>
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/page.tsx → app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function EpisodeEntry({ episode }: EpisodeEntryProps) {
</h2>
<FormattedDate
date={date}
className="order-first font-mono text-sm leading-7 text-slate-500"
className="order-first font-mono text-sm leading-7 text-accent-gray"
/>
<p className="mt-1 text-base leading-7 text-light-gray">
{episode.description}
Expand Down Expand Up @@ -83,7 +83,7 @@ export default async function Home() {
Épisodes du podcast
</h1>
</Container>
<div className="divide-y border-border-dark sm:mt-4 lg:mt-8 lg:border-t lg:border-border-dark">
<div className="divide-y divide-border-dark border-border-dark sm:mt-4 lg:mt-8 lg:border-t lg:border-border-dark">
{episodes?.map((episode) => (
<EpisodeEntry key={episode.slug} episode={episode} />
))}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/layout.tsx → app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default async function RootLayout({
</head>
<link
rel="icon"
href="../images/icons/favicon-32x32.png"
href="../public/images/icons/favicon-32x32.png"
type="image/png"
sizes="32x32"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/app/not-found.tsx → app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function NotFound() {
return (
<main className="relative flex h-full items-center py-36 lg:px-8">
<div className="relative mx-auto flex w-full max-w-2xl flex-col items-center px-4 sm:px-6 lg:px-0">
<p className="font-mono text-sm leading-7 text-slate-500">404</p>
<p className="font-mono text-sm leading-7 text-accent-gray">404</p>
<h1 className="mt-4 text-lg font-bold text-white">Page not found</h1>
<p className="mt-2 text-base leading-7 text-light-gray">
Sorry, we couldn’t find the page you’re looking for.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import clsx from 'clsx'
import { useState } from 'react'
import david from '@/images/david-dias.png'
import jr from '@/images/jean-remy-duboc.jpg'
import david from '@/public/images/david-dias.png'
import jr from '@/public/images/jean-remy-duboc.jpg'
import Image from 'next/image'

export function AboutSection(props) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function PlaybackRateButton({ player }) {
return (
<button
type="button"
className="relative flex h-6 w-6 items-center justify-center rounded-md text-slate-500 hover:bg-slate-100 hover:text-light-gray focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2"
className="relative flex h-6 w-6 items-center justify-center rounded-md text-accent-gray hover:bg-slate-100 hover:text-light-gray focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2"
onClick={() => {
setPlaybackRate((rate) => {
let existingIdx = playbackRates.indexOf(rate)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function Slider(props) {
state.getThumbMaxValue(0) === 0 && 'opacity-0',
isFocusVisible || state.isThumbDragging(0)
? 'bg-slate-100 text-white'
: 'text-slate-500'
: 'text-accent-gray'
)}
>
{formatTime(currentTime, totalTime)}
Expand All @@ -148,7 +148,7 @@ export function Slider(props) {
</span>
<span
className={clsx(
'hidden rounded-md px-1 py-0.5 font-mono text-sm leading-6 text-slate-500 md:block',
'hidden rounded-md px-1 py-0.5 font-mono text-sm leading-6 text-accent-gray md:block',
state.getThumbMaxValue(0) === 0 && 'opacity-0'
)}
>
Expand Down
79 changes: 0 additions & 79 deletions config/plop/component.plopfile.js

This file was deleted.

46 changes: 0 additions & 46 deletions config/plop/context.plopfile.js

This file was deleted.

46 changes: 0 additions & 46 deletions config/plop/hook.plopfile.js

This file was deleted.

6 changes: 0 additions & 6 deletions config/plop/plopfile.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
// eslint-disable
const componentPlop = require('./component.plopfile')
const hookPlop = require('./hook.plopfile')
const contextPlop = require('./context.plopfile')
const testPlop = require('./test.plopfile')
const episodePlop = require('./episode.plopfile')

const plopFile = plop => {
componentPlop(plop),
hookPlop(plop),
contextPlop(plop),
testPlop(plop),
episodePlop(plop)
}
Expand Down
File renamed without changes.
28 changes: 0 additions & 28 deletions data/site-config.js

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
9 changes: 6 additions & 3 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ const defaultTheme = require('tailwindcss/defaultTheme')

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{ts,tsx}'],
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}"
],
theme: {
extend: {
fontFamily: {
Expand All @@ -26,8 +29,8 @@ module.exports = {
colors: {
'primary-dark': '#1a2940',
'secondary-dark': '#0f172a',
'accent-red': '#e63946',
'accent-gray': '#374151',
'accent-red': '#ff6b6b',
'accent-gray': '#a3a3a3',
'light-gray': '#d1d5db',
'border-dark': '#2d3748',
'white': '#ffffff'
Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
],
"~/*": [
"./*"
],
"contentlayer/generated": ["./.contentlayer/generated"]
Expand Down
39 changes: 1 addition & 38 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,3 @@
{
"headers": [
{
"source": "/fonts/oswald.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/fonts/SourceSansPro-Light.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/fonts/SourceSansPro-Regular.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/fonts/SourceSansPro-Bold.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
"headers": []
}
Loading

0 comments on commit abcc779

Please sign in to comment.