You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[6 CSS snippets every front-end developer should know in 2023](https://web.dev/6-css-snippets-every-front-end-developer-should-know-in-2023/)
53
+
54
+
### At Container Query
55
+
56
+
`@container` is a new css selector
57
+
58
+
```css
59
+
.panel {
60
+
container: layers-panel / inline-size;
61
+
}
62
+
63
+
.card {
64
+
padding: 1rem;
65
+
}
66
+
67
+
@container layers-panel (min-width: 20rem) {
68
+
.card {
69
+
padding: 2rem;
70
+
}
71
+
}
72
+
```
73
+
74
+
## Scroll Snap
75
+
76
+
Well orchestrated scroll experiences set your experience apart from the rest, and [scroll snap](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type)
77
+
is the perfect way to match system scroll UX while providing meaningful stopping points.
You probably have seen this if you are using TailwindCSS
123
+
124
+
```css
125
+
/* file buttons.css */
126
+
@layer components.buttons {
127
+
.btn.primary {
128
+
…
129
+
}
130
+
}
131
+
```
132
+
133
+
## Memorize less and reach more with logical properties
134
+
135
+
Memorize this [one new box model](notion://www.notion.so/learn/css/logical-properties/) and [never have to worry](https://css-tricks.com/late-to-logical/) about changing left and right padding or margin for international [writing modes](https://developer.mozilla.org/docs/Web/CSS/writing-mode) and [document directions](https://developer.mozilla.org/docs/Web/CSS/direction) again. Adjust your styles from physical properties to logical ones like [padding-inline](https://developer.mozilla.org/docs/Web/CSS/padding-inline), [margin-inline](https://developer.mozilla.org/docs/Web/CSS/margin-inline), [inset-inline](https://developer.mozilla.org/docs/Web/CSS/inset-inline), and now the browser will do the adjusting work.
Copy file name to clipboardExpand all lines: apps/codingcatdev/src/routes/(content-single)/(non-course)/post/content-modeling-in-a-headless-cms-vs-a-traditional-webcms/+page.md
@@ -29,7 +29,7 @@ Like many of you, my first experience with a content management system (CMS) was
29
29
30
30
In a traditional CMS, the front and back ends are like two cats in a trench coat trying to pass as one human. They're both working towards the same goal, but they're constantly tripping over each other and getting in each other's way. The marketers and content editors are in the front end, trying to create a beautiful and engaging website for the users. The developers are in the back end, trying to keep the website running smoothly and securely. But because they're all sharing the same space, it's a constant battle of who can get their work done first. It's a mess, but somehow it worked in the past.
@@ -54,7 +54,7 @@ A headless CMS is a content management system that does not have a built-in fron
54
54
55
55
As a frontend developer you know the landscape moves very fast and with meta-frameworks like [Astro](https://astro.build/), [Next.js](https://nextjs.org/), [Nuxt](https://nuxtjs.org/), and [SvelteKit](https://kit.svelte.dev/) adding features at a lightning pace, it is hard to keep a Traditional CMS updated with these changes.
@@ -141,7 +141,7 @@ When you start to think about this type of modeling start to think of these as b
141
141
Amplience provides a very strong set of <a href="https://amplience.com/developers/docs/apis/" target="_blank" rel="noopener noreferrer">API's</a>, that make delivering Media a breeze!
@@ -154,7 +154,7 @@ When you start to think about this type of modeling start to think of these as b
154
154
Contentful is API-first, which means that it can be integrated with other systems and applications. It is also designed to be scalable, so it can be used by businesses of all sizes. Contentful is a popular choice for businesses that want to create and deliver content quickly and easily. It is also a good choice for businesses that need to integrate content with other systems and applications.
@@ -167,7 +167,7 @@ When you start to think about this type of modeling start to think of these as b
167
167
Contentstack is a composable digital experience platform (DXP) that empowers marketers and developers to deliver digital experiences at the speed of their imagination. It is a cloud-based, API-first platform that offers a wide range of features and capabilities, including content management, delivery, and personalization.
@@ -180,7 +180,7 @@ When you start to think about this type of modeling start to think of these as b
180
180
Hygraph is a federated content platform that allows you to build digital experiences the way you envisioned them. Hygraph gives you instant <a href="https://hygraph.com/graphql-headless-cms" target="_blank" rel="noopener noreferrer">GraphQL Content APIs</a> to create, enrich, unify, and deliver your content across platforms. It is a GraphQL-based federated content management system for digital creators and digital products.
@@ -193,7 +193,7 @@ When you start to think about this type of modeling start to think of these as b
193
193
Its authoring experience supports content production, modular content reuse, and real-time collaboration and approvals to drive content that's consistent, optimized, and engaging.
@@ -207,7 +207,7 @@ When you start to think about this type of modeling start to think of these as b
207
207
You can see hear more on two of our podcast episode's <a href="/podcast/0-4-sanity-io">Sanity.io</a> and <a href="/podcast/1-42-using-content-as-data-with-sanity-io">Using Content as Data with Sanity.io</a>.
@@ -220,7 +220,7 @@ When you start to think about this type of modeling start to think of these as b
220
220
Storyblok is a cloud-native, enterprise-grade content management system that is built to scale. Storyblok also has a visual editing experience that makes it easy for anyone to create content, regardless of their technical expertise. Huge thanks goes to Storyblok for being such an amazing <a href="/sponsor/storyblok">sponsor</a>!
0 commit comments