Skip to content

Commit

Permalink
feat: 初始化样式
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzi committed Dec 30, 2022
1 parent ec8b6b1 commit 1021455
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 118 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>eoefans</title>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
// import HelloWorld from './components/HelloWorld.vue'
// import TheWelcome from './components/TheWelcome.vue'
import Layout from './views/Layout/index.vue'
import Layout from './views/Layout.vue'
</script>

<template>
Expand Down
74 changes: 0 additions & 74 deletions src/assets/base.css

This file was deleted.

Binary file added src/assets/img/asasfansnew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/home-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/logo.svg

This file was deleted.

35 changes: 0 additions & 35 deletions src/assets/main.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createApp } from 'vue'
import App from './App.vue'

import './assets/main.css'
import './style/index.less'

createApp(App).mount('#app')
2 changes: 1 addition & 1 deletion src/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
#app {
// max-width: @maxWidth;
min-height: 100vh;
background-color: #f1f1f1;
background-color: #fefefe;
margin: 0 auto;
overflow: hidden;
}
Expand Down
7 changes: 6 additions & 1 deletion src/views/Layout/index.vue → src/views/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import { ref, reactive, onMounted } from 'vue'
import Fullpage from 'fullpage.js'
import 'fullpage.js/dist/fullpage.min.css'
import Page1 from './Page1/Page1.vue'
onMounted(() => {
Object.freeze(
new Fullpage('#fullpage', {
Expand All @@ -20,7 +23,9 @@ onMounted(() => {
</script>
<template>
<div id="fullpage">
<div class="section">Some section1</div>
<div class="section">
<Page1></Page1>
</div>
<div class="section">Some section2</div>
<div class="section">Some section3</div>
<div class="section">Some section4</div>
Expand Down
39 changes: 39 additions & 0 deletions src/views/Page1/Page1.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script setup lang="ts">
import { ref, reactive } from 'vue'
const mainIntroduce = ref('介绍主文案')
</script>
<template>
<div class="Page1">
<section class="introduce-section">
<div class="main-introduce" :data-word="mainIntroduce"></div>
<!-- <div class="">
"一个魂儿"系A-SOUL女子偶像团体粉丝名 本app非商业用途,仅提供A-soul及相关社区服务 官方B站:《A-SOUL_Official》、抖音:《五个魂儿啊》
</div>
<div class="to-download">前往下载</div> -->
</section>
</div>
</template>
<style scoped lang="less">
.Page1 {
// border: 1px solid black;
width: 100%;
height: 100vh;
}
.main-introduce {
position: relative;
font-size: 30px;
&::before {
content: attr(data-word);
position: absolute;
top: 0;
left: 0;
}
&::after {
content: attr(data-word);
position: absolute;
top: 0;
left: -3px;
}
}
</style>

0 comments on commit 1021455

Please sign in to comment.