Skip to content

Commit

Permalink
Updated default link styles
Browse files Browse the repository at this point in the history
  • Loading branch information
fgatti675 committed Dec 6, 2024
1 parent 8dc078d commit 54e2eba
Show file tree
Hide file tree
Showing 20 changed files with 126 additions and 95 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,6 @@ https://firecms.co/docs/changelog

## License

The Core of FireCMS is licensed under the MIT license. We also refer to it as FireCMS Community.
Some packages, used in FireCMS Pro and Cloud, are licensed under the Business Source License 1.1 (BSL). Check the full [License here](https://github.com/firecmsco/firecms?tab=License-1-ov-file#readme).
The core of FireCMS is licensed under the MIT license.
Some packages, used in FireCMS Pro and Cloud, are licensed under the Business Source License 1.1 (BSL).
Check the full [License here](https://github.com/firecmsco/firecms?tab=License-1-ov-file#readme).
2 changes: 1 addition & 1 deletion examples/example/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ body {
}

a {
@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}
2 changes: 1 addition & 1 deletion examples/example_cloud/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {
}

a {
@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}

:root {
Expand Down
33 changes: 17 additions & 16 deletions examples/example_next/src/app/(website)/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,65 @@ export function Footer() {
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Company</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className=" hover:underline">About</a>
<a href="#" className="text-inherit hover:underline">About</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Careers</a>
<a href="#" className="text-inherit hover:underline">Careers</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Brand Center</a>
<a href="#" className="text-inherit hover:underline">Brand Center</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Blog</a>
<a href="#" className="text-inherit hover:underline">Blog</a>
</li>
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Help center</h2>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Help
center</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className="hover:underline">Discord Server</a>
<a href="#" className="text-inherit hover:underline">Discord Server</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Twitter</a>
<a href="#" className="text-inherit hover:underline">Twitter</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Facebook</a>
<a href="#" className="text-inherit hover:underline">Facebook</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Contact Us</a>
<a href="#" className="text-inherit hover:underline">Contact Us</a>
</li>
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Legal</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className="hover:underline">Privacy Policy</a>
<a href="#" className="text-inherit hover:underline">Privacy Policy</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Licensing</a>
<a href="#" className="text-inherit hover:underline">Licensing</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Terms &amp; Conditions</a>
<a href="#" className="text-inherit hover:underline">Terms &amp; Conditions</a>
</li>
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Download</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className="hover:underline">iOS</a>
<a href="#" className="text-inherit hover:underline">iOS</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Android</a>
<a href="#" className="text-inherit hover:underline">Android</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Windows</a>
<a href="#" className="text-inherit hover:underline">Windows</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">MacOS</a>
<a href="#" className="text-inherit hover:underline">MacOS</a>
</li>
</ul>
</div>
Expand Down
2 changes: 2 additions & 0 deletions examples/example_next/src/app/cms/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export function App() {
getConfigForPath: ({ path }) => {
if (path === "products")
return true;
if (path === "books")
return true;
return false;
}
});
Expand Down
4 changes: 2 additions & 2 deletions examples/example_next/src/app/cms/collections/locales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const locales = buildEnumValues({
});

export const localeCollection = buildCollection<Locale>({
id: "locale",
path: "locale",
id: "locales",
path: "locales",
customId: locales,
name: "Locales",
singularName: "Locales",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ export function CustomLoginView(props: FirebaseLoginViewProps) {
<Typography className={"mb-4"} variant={"body2"}>
This is a demo application that showcases the capabilities of FireCMS.
Check the sample frontend application built with Next.js
in <a href={"/"} target={"_blank"} rel={"noreferrer"}>this link <OpenInNewIcon
in <a className={"inline"} href={"/products"} target={"_blank"} rel={"noreferrer"}>this link <OpenInNewIcon
className={"inline align-text-top"}
size={"smallest"}
className={"inline"}/></a>.
/></a>.
</Typography>

{/*<Link*/}
Expand Down
2 changes: 1 addition & 1 deletion examples/example_next/src/app/common/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ body {
}

a {
@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}

@layer utilities {
Expand Down
12 changes: 6 additions & 6 deletions examples/example_next/src/app/common/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/example_pro/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body {
}

a {
@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}
/*.typography-body1 {*/
/* @apply text-lg;*/
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/template/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ body {
}
a {

@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,65 @@ export function Footer() {
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Company</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className=" hover:underline">About</a>
<a href="#" className="text-inherit hover:underline">About</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Careers</a>
<a href="#" className="text-inherit hover:underline">Careers</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Brand Center</a>
<a href="#" className="text-inherit hover:underline">Brand Center</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Blog</a>
<a href="#" className="text-inherit hover:underline">Blog</a>
</li>
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Help center</h2>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Help
center</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className="hover:underline">Discord Server</a>
<a href="#" className="text-inherit hover:underline">Discord Server</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Twitter</a>
<a href="#" className="text-inherit hover:underline">Twitter</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Facebook</a>
<a href="#" className="text-inherit hover:underline">Facebook</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Contact Us</a>
<a href="#" className="text-inherit hover:underline">Contact Us</a>
</li>
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Legal</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className="hover:underline">Privacy Policy</a>
<a href="#" className="text-inherit hover:underline">Privacy Policy</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Licensing</a>
<a href="#" className="text-inherit hover:underline">Licensing</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Terms &amp; Conditions</a>
<a href="#" className="text-inherit hover:underline">Terms &amp; Conditions</a>
</li>
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-surface-900 uppercase dark:text-white">Download</h2>
<ul className="text-surface-500 dark:text-surface-400 font-medium">
<li className="mb-4">
<a href="#" className="hover:underline">iOS</a>
<a href="#" className="text-inherit hover:underline">iOS</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Android</a>
<a href="#" className="text-inherit hover:underline">Android</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">Windows</a>
<a href="#" className="text-inherit hover:underline">Windows</a>
</li>
<li className="mb-4">
<a href="#" className="hover:underline">MacOS</a>
<a href="#" className="text-inherit hover:underline">MacOS</a>
</li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ body {
}

a {
@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}
12 changes: 6 additions & 6 deletions packages/cli/templates/template_next_pro/src/app/common/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/cli/templates/template_pro/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ body {
}

a {
@apply text-primary dark:text-primary hover:underline
@apply text-primary dark:text-primary
}
2 changes: 1 addition & 1 deletion packages/ui/src/components/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function Autocomplete({
<div ref={autocompleteRef}
className={cls(
open ? paperMixin : "",
"bg-surface-accent-50 dark:bg-surface-accent-900 py-2"
"bg-surface-50 dark:bg-surface-900 py-2"
)}>
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/icons/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export const Icon = React.forwardRef<HTMLSpanElement, IconProps & { iconKey: str
ref={ref} // Attach the ref to the span
style={{
fontSize: `${sizeInPx}px`,
display: "block",
...style
}}
className={
cls("material-icons",
"block",
color ? colorClassesMapping[color] : "",
"select-none",
className)}
Expand Down
Binary file modified website/.yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 54e2eba

Please sign in to comment.