-
-
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.
- Loading branch information
1 parent
ddfd698
commit a9af5a3
Showing
10 changed files
with
776 additions
and
512 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,46 @@ | ||
import * as React from "react"; | ||
import { Container } from "../util/container"; | ||
import { Section } from "../util/section"; | ||
import { Template } from "tinacms"; | ||
|
||
export const BestParmi = ({ data, parentField }) => { | ||
return ( | ||
<Section> | ||
<Container | ||
size="large" | ||
className="grid grid-cols-1 lg:grid-cols-5 gap-14 items-center justify-center" | ||
> | ||
<h2 className="text-3xl font-semibold">Best Parmi</h2> | ||
<p> | ||
{data?.restaurant?.name} - {data.score} | ||
</p> | ||
</Container> | ||
</Section> | ||
); | ||
}; | ||
|
||
export const bestParmiBlockSchema: Template = { | ||
name: "bestParmi", | ||
label: "Best Parmi", | ||
ui: { | ||
previewSrc: "/blocks/content.png", | ||
}, | ||
fields: [ | ||
{ | ||
type: "boolean", | ||
label: "Data Driven?", | ||
name: "isDataDriven", | ||
}, | ||
{ | ||
type: "reference", | ||
label: "Restaurant", | ||
name: "restaurant", | ||
collections: ["restaurant"], | ||
}, | ||
{ | ||
type: "number", | ||
label: "Score", | ||
name: "score", | ||
}, | ||
], | ||
}; |
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
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
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 |
---|---|---|
@@ -1,46 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.badge { | ||
position: relative; | ||
width: 500px; /* Adjust size as needed */ | ||
height: 500px; /* Adjust size as needed */ | ||
border-radius: 50%; | ||
background-color: #262e4c; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
color: white; | ||
font-size: 16px; | ||
padding: 1rem; | ||
margin-bottom: 3rem; | ||
} | ||
|
||
/* Yellow middle ring */ | ||
.badge::after { | ||
content: ""; | ||
position: absolute; | ||
top: -5px; | ||
left: -5px; | ||
right: -5px; | ||
bottom: -5px; | ||
border-radius: 50%; | ||
border: 40px solid #ffce00; | ||
} | ||
|
||
/* Score text */ | ||
.score { | ||
font-weight: bold; | ||
font-size: 8rem; /* Adjust size as needed */ | ||
z-index: 1; | ||
color: #ffce00; | ||
} | ||
|
||
.best { | ||
font-size: 6rem; /* Adjust size as needed */ | ||
z-index: 1; | ||
color: #ffce00; | ||
margin-top: -100px; | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.