Skip to content

Commit 43a68fa

Browse files
committed
refactor: change NewsletterSection -> NewsLetter
1 parent da7411a commit 43a68fa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/.vitepress/theme/components/NewsletterSection.vue renamed to src/.vitepress/theme/components/NewsLetter.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { VTLink } from '@vue/theme'
33
</script>
44

55
<template>
6-
<section id="newsletter" class="NewsletterSection">
6+
<section id="newsletter" class="NewsLetter">
77
<div class="container">
88
<h2 class="title">Subscribe to our weekly newsletter.</h2>
99

@@ -47,22 +47,22 @@ import { VTLink } from '@vue/theme'
4747
</template>
4848

4949
<style scoped>
50-
.NewsletterSection {
50+
.NewsLetter {
5151
border-top: 1px solid transparent;
5252
border-bottom: 1px solid var(--vt-c-divider-light);
5353
padding: 32px 24px;
5454
background: var(--vt-c-bg-soft);
5555
transition: border-color 0.5s, background-color 0.5s;
5656
}
5757
58-
.dark .NewsletterSection {
58+
.dark .NewsLetter {
5959
border-top-color: var(--vt-c-divider-light);
6060
border-bottom-color: transparent;
6161
background: var(--vt-c-bg);
6262
}
6363
6464
@media (min-width: 768px) {
65-
.NewsletterSection {
65+
.NewsLetter {
6666
padding: 48px 32px;
6767
}
6868
}

src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ page: true
33
---
44

55
<script setup>
6-
import NewsLetter from './.vitepress/theme/components/NewsletterSection.vue'
6+
import NewsLetter from './.vitepress/theme/components/NewsLetter.vue'
77
</script>
88

99
<section id="hero">
@@ -54,7 +54,7 @@ page: true
5454
<!-- TODO show tooling screenshots -->
5555
</section>
5656

57-
<NewsLetter/>
57+
<NewsLetter />
5858

5959
<style scoped>
6060
section {

0 commit comments

Comments
 (0)