Compare commits
2 commits
cd4861689b
...
cc08d356ce
| Author | SHA1 | Date | |
|---|---|---|---|
| cc08d356ce | |||
| d5f68bc324 |
5 changed files with 52 additions and 20 deletions
|
|
@ -25,5 +25,5 @@ export default defineConfig({
|
||||||
assets: '_dasig',
|
assets: '_dasig',
|
||||||
inlineStylesheets: 'never',
|
inlineStylesheets: 'never',
|
||||||
},
|
},
|
||||||
site: 'http://localhost:4321',
|
site: 'https://articles.patalcala.com',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import { Padding, Column } from '../../@dasig'
|
import { Padding, Column, Page } from '../../@dasig'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string
|
title: string
|
||||||
|
|
@ -13,15 +13,17 @@ interface Props {
|
||||||
const { title, subtitle, category, date, minutes, content } = Astro.props
|
const { title, subtitle, category, date, minutes, content } = Astro.props
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="article">
|
<Page>
|
||||||
<span>{category}</span>
|
<div class="article__titles">
|
||||||
<h1>{title}</h1>
|
<span class="article__titles__category">{category}</span>
|
||||||
<h3>{subtitle}</h3>
|
<h1 class="article__titles__title">{title}</h1>
|
||||||
|
<h3 class="article__titles__subtitle">{subtitle}</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p set:html={content} />
|
<p set:html={content} />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</Page>
|
||||||
|
|
||||||
<style lang="sass">
|
<style lang="sass">
|
||||||
.article
|
.article
|
||||||
|
|
@ -30,6 +32,33 @@ const { title, subtitle, category, date, minutes, content } = Astro.props
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
justify-content: start
|
justify-content: start
|
||||||
align-items: center
|
align-items: start
|
||||||
text-align: center
|
text-align: left
|
||||||
|
|
||||||
|
&__titles
|
||||||
|
width: 100%
|
||||||
|
display: flex
|
||||||
|
gap: 1rem
|
||||||
|
flex-direction: column
|
||||||
|
flex-wrap: wrap
|
||||||
|
align-items: start
|
||||||
|
padding: 0 9rem 2rem 9rem
|
||||||
|
|
||||||
|
&__category
|
||||||
|
border: 1px solid red
|
||||||
|
border-radius: 1.5rem
|
||||||
|
padding: 0.5rem 0.75rem
|
||||||
|
font-size: 1rem
|
||||||
|
|
||||||
|
&__title
|
||||||
|
font-size: 2.625rem
|
||||||
|
margin: 0
|
||||||
|
|
||||||
|
&__subtitle
|
||||||
|
font-size: 1.375rem
|
||||||
|
opacity: 0.8
|
||||||
|
margin: 0
|
||||||
|
|
||||||
|
.content
|
||||||
|
padding: 0 15rem
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
import { Row, Column, Padding } from '../../@dasig'
|
import { Row, Column, Padding, Image } from '../../@dasig'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string
|
title: string
|
||||||
subtitle: string
|
subtitle: string
|
||||||
date: string
|
date: string
|
||||||
imageA: string
|
imageA: any
|
||||||
imageW: string
|
imageW: any
|
||||||
alt: string
|
alt: string
|
||||||
minutes: number
|
minutes: number
|
||||||
url: string
|
url: string
|
||||||
|
|
@ -20,6 +20,7 @@ const { title, subtitle, date, imageA, imageW, alt = 'article image', minutes, u
|
||||||
<section class="article">
|
<section class="article">
|
||||||
<a href={url}>
|
<a href={url}>
|
||||||
<Column gap={1} content="top">
|
<Column gap={1} content="top">
|
||||||
|
<!-- <Image avif={imageA} webp={imageW} alt={alt} /> -->
|
||||||
<picture>
|
<picture>
|
||||||
<source srcset={imageA} type="image/avif" />
|
<source srcset={imageA} type="image/avif" />
|
||||||
<source srcset={imageW} type="image/webp" />
|
<source srcset={imageW} type="image/webp" />
|
||||||
|
|
@ -69,12 +70,12 @@ const { title, subtitle, date, imageA, imageW, alt = 'article image', minutes, u
|
||||||
height: auto
|
height: auto
|
||||||
|
|
||||||
&__title
|
&__title
|
||||||
font-size: 0.8rem
|
font-size: 1rem
|
||||||
font-weight: 700
|
font-weight: 700
|
||||||
font-family: fonts.$Literata
|
font-family: fonts.$Inter
|
||||||
|
|
||||||
&__subtitle
|
&__subtitle
|
||||||
font-size: 0.65rem
|
font-size: 0.75rem
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
opacity: 0.8
|
opacity: 0.8
|
||||||
|
|
||||||
|
|
@ -82,7 +83,7 @@ const { title, subtitle, date, imageA, imageW, alt = 'article image', minutes, u
|
||||||
font-family: fonts.$Inter
|
font-family: fonts.$Inter
|
||||||
width: 100%
|
width: 100%
|
||||||
padding: 0.5rem 0 0 0
|
padding: 0.5rem 0 0 0
|
||||||
font-size: 0.5rem
|
font-size: 0.75rem
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,18 +10,20 @@ category: Technology
|
||||||
<style>
|
<style>
|
||||||
p {
|
p {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0 10rem
|
/*padding: 0 10rem*/
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
/*padding: 0 10rem*/
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<picture>
|
<picture>
|
||||||
<source srcset="../../../@dasig/images/5-tech-icons-and-their-meaning.avif" type="image/avif">
|
<source srcset="../../../@dasig/images/5-tech-icons-and-their-meaning.avif" type="image/avif">
|
||||||
<source srcset="../../../@dasig/images/5-tech-icons-and-their-meaning.webp" type="image/webp">
|
<source srcset="../../../@dasig/images/5-tech-icons-and-their-meaning.webp" type="image/webp">
|
||||||
<img alt="5 Tech Icons And Their Meaning">
|
<img class="image" alt="5 Tech Icons And Their Meaning">
|
||||||
</picture>
|
</picture>
|
||||||
|
|
||||||
An icon is a small image or symbol used to represent a concept, idea, or, in this case, a function or a technological indication. And digital icons are found everywhere, especially on software and website designs. Thanks to online resources like Material Fonts, Flaticon, Font Awesome, and many more.
|
An icon is a small image or symbol used to represent a concept, idea, or, in this case, a function or a technological indication. And digital icons are found everywhere, especially on software and website designs. Thanks to online resources like Material Fonts, Flaticon, Font Awesome, and many more.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import Layout from '../layouts/Layout.astro'
|
import { Logo, Page, Row } from '../../@dasig'
|
||||||
import { Page, Row, Logo } from '../../@dasig'
|
|
||||||
import ArticleCard from '../components/ArticleCard.astro'
|
import ArticleCard from '../components/ArticleCard.astro'
|
||||||
|
import Layout from '../layouts/Layout.astro'
|
||||||
|
|
||||||
const articles = Object.values(import.meta.glob('../content/articles/*.md', { eager: true }))
|
const articles = Object.values(import.meta.glob('../content/articles/*.md', { eager: true }))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue