File tree 4 files changed +21
-23
lines changed
4 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 7
7
</script >
8
8
9
9
<header class =" header" >
10
- <h1 class =" heading" >
11
- <a class =" home" href =" /" >
12
- <Nais />
13
- <span class =" name" >Nais</span >
14
- </a >
15
- </h1 >
10
+ <a class =" home" href =" /" >
11
+ <Nais />
12
+ <span class =" name" >Nais</span >
13
+ </a >
16
14
<button class ="main-menu-toggle" class:isOpen onclick ={() => (isOpen = ! isOpen )}>
17
15
<svg
18
16
class =" open-icon"
105
103
color-mix(in srgb , var (--color-spectrum-5 ) 14.5% , transparent )
106
104
);
107
105
}
108
- .heading {
109
- margin : 0 ;
110
- }
111
106
.home {
112
107
text-decoration : none ;
113
108
transition : color 50ms ;
116
111
grid-template-columns : auto 1fr ;
117
112
gap : 4px ;
118
113
align-items : baseline ;
114
+ font-size : 2rem ;
119
115
}
120
116
.name {
121
117
font-size : 2.3rem ;
122
118
color : var (--color-black );
119
+ font-weight : bold ;
123
120
}
124
121
.main-menu-toggle {
125
122
grid-area : button;
Original file line number Diff line number Diff line change 3
3
4
4
<div class =" hero" >
5
5
<div class =" content" >
6
- <h2 class =" heading" >
6
+ <h1 class =" heading" >
7
7
En plattform laget av Nav for å gi fart og flyt til utviklerne av det offentlige Norge
8
- </h2 >
8
+ </h1 >
9
9
<p class =" text" >
10
10
Vi mener at det skal være lett å gjøre rett. Utviklere bør kunne fokusere på det som betyr noe
11
11
- å lage gode applikasjoner.
35
35
max-width : 55ch ;
36
36
}
37
37
.heading {
38
+ font-size : 1.5em ;
38
39
margin : 0 ;
39
40
}
40
41
.cloud {
Original file line number Diff line number Diff line change 6
6
let { data }: { data: PageData } = $props ();
7
7
</script >
8
8
9
- <ul class =" list " >
9
+ <div class =" articles " >
10
10
{#each data .posts as post }
11
- <li class = "item" lang ={post .metadata .language }>
12
- <h2 class =" heading" >
11
+ <article lang ={post .metadata .language }>
12
+ <h1 class =" heading" >
13
13
<a class ="link" href ={` /blog/posts/${post .slug } ` }>
14
14
{post .metadata .title }
15
15
</a >
16
- </h2 >
16
+ </h1 >
17
17
<div class =" byline" >
18
18
{post .metadata .language === " en"
19
19
? ` ${format (post .metadata .date , " MMMM d, yyyy" )} by ${post .metadata .author } `
20
20
: ` ${format (post .metadata .date , " d. MMMM yyyy" , { locale: nb })} av ${post .metadata .author } ` }
21
21
</div >
22
22
<div class ="description" >{post .metadata .description }</div >
23
- </li >
23
+ </article >
24
24
{/each }
25
- </ul >
25
+ </div >
26
26
27
27
<style >
28
28
.byline {
29
29
font-style : italic ;
30
30
font-size : 1rem ;
31
31
}
32
- .list {
32
+ .articles {
33
33
margin : 0 ;
34
- margin-top : 1.34 em ;
34
+ margin-top : 3 em ;
35
35
list-style : none ;
36
36
margin-inline : auto ;
37
37
display : flex ;
49
49
.link :hover {
50
50
text-decoration : none ;
51
51
}
52
- .item {
52
+ article {
53
53
display : flex ;
54
54
flex-direction : column ;
55
55
align-items : start ;
Original file line number Diff line number Diff line change 12
12
{#if i > 0 }
13
13
<hr />
14
14
{/if }
15
- <div lang ={metadata .language }>
16
- <h2 class ="heading" id ={slug }><a class ="anchorLink" href ="# {slug }" >{metadata .title }</a ></h2 >
15
+ <article lang ={metadata .language }>
16
+ <h1 class ="heading" id ={slug }><a class ="anchorLink" href ="# {slug }" >{metadata .title }</a ></h1 >
17
17
<div class =" byline" >
18
18
{metadata .language === " en"
19
19
? ` ${format (metadata .date , " MMMM d, yyyy" )} by ${metadata .author } `
22
22
<div class =" post" >
23
23
<Post />
24
24
</div >
25
- </div >
25
+ </article >
26
26
{/each }
27
27
28
28
<style >
You can’t perform that action at this time.
0 commit comments