1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

Compare commits

...

6 Commits

9 changed files with 12 additions and 14 deletions

View File

@ -1,4 +1,5 @@
{ {
"urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/blog"], "urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/blog"],
"files": ["./public/curriculum-vitae/index.html"] "files": ["./public/curriculum-vitae/index.html"],
"severities": ["error"]
} }

View File

@ -1,6 +1,6 @@
# MIT License # MIT License
Copyright (c) Théo LUDWIG Copyright (c) Théo LUDWIG <contact@theoludwig.fr>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -29,7 +29,7 @@
.prose a, .prose a,
.prose strong { .prose strong {
@apply font-semibold text-yellow dark:text-yellow-dark; @apply !font-semibold text-yellow dark:text-yellow-dark;
} }
strong, strong,

View File

@ -15,7 +15,7 @@ export const Header = (): JSX.Element => {
return ( return (
<header className="sticky top-0 z-50 flex w-full justify-between border-b-2 border-gray-600 bg-white px-6 py-2 dark:border-gray-400 dark:bg-black"> <header className="sticky top-0 z-50 flex w-full justify-between border-b-2 border-gray-600 bg-white px-6 py-2 dark:border-gray-400 dark:bg-black">
<Link href="/"> <Link href="/">
<div className="flex items-center justify-center"> <h1 className="flex items-center justify-center">
<Image <Image
quality={100} quality={100}
className="size-16" className="size-16"
@ -23,10 +23,10 @@ export const Header = (): JSX.Element => {
alt="Théo LUDWIG" alt="Théo LUDWIG"
priority priority
/> />
<strong className="ml-1 hidden font-headline font-semibold text-yellow dark:text-yellow-dark xs:block sm:text-xl"> <strong className="ml-1 hidden font-headline font-semibold text-yellow dark:text-yellow-dark sm:block sm:text-xl">
Théo LUDWIG Théo LUDWIG
</strong> </strong>
</div> </h1>
</Link> </Link>
<div className="flex justify-between"> <div className="flex justify-between">
<div className="flex flex-col items-center justify-center px-6"> <div className="flex flex-col items-center justify-center px-6">

View File

@ -53,7 +53,7 @@ describe("Common > Header", () => {
cy.get("[data-cy=locales-list]").should("not.be.visible") cy.get("[data-cy=locales-list]").should("not.be.visible")
cy.get("[data-cy=locale-click]").click() cy.get("[data-cy=locale-click]").click()
cy.get("[data-cy=locales-list]").should("be.visible") cy.get("[data-cy=locales-list]").should("be.visible")
cy.get("h1").click() cy.get("main h1").click()
cy.get("[data-cy=locales-list]").should("not.be.visible") cy.get("[data-cy=locales-list]").should("not.be.visible")
}) })
}) })

View File

@ -2,7 +2,7 @@ describe("Page /blog/[slug]", () => {
it("should displays the first blog post (`hello-world`)", () => { it("should displays the first blog post (`hello-world`)", () => {
cy.visit("/blog/hello-world") cy.visit("/blog/hello-world")
cy.get("[data-cy=locale-flag-text]").should("not.exist") cy.get("[data-cy=locale-flag-text]").should("not.exist")
cy.get("h1").should("have.text", "👋 Hello, world!") cy.get("main h1").should("have.text", "👋 Hello, world!")
cy.get(".prose a:visible").should("have.attr", "target", "_blank") cy.get(".prose a:visible").should("have.attr", "target", "_blank")
}) })

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "theoludwig", "name": "theoludwig",
"version": "3.2.0", "version": "3.2.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "theoludwig", "name": "theoludwig",
"version": "3.2.0", "version": "3.2.1",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@fontsource/montserrat": "5.0.16", "@fontsource/montserrat": "5.0.16",

View File

@ -1,6 +1,6 @@
{ {
"name": "theoludwig", "name": "theoludwig",
"version": "3.2.0", "version": "3.2.1",
"private": true, "private": true,
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -8,9 +8,6 @@ const tailwindConfig = {
darkMode: "class", darkMode: "class",
theme: { theme: {
extend: { extend: {
screens: {
xs: "380px",
},
colors: { colors: {
black: "#181818", black: "#181818",
gray: { gray: {