This repository was archived by the owner on Mar 4, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Oruga as UI framework option (#635)
- Loading branch information
Showing
8 changed files
with
184 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"@oruga-ui/oruga": "^0.2.2" | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
packages/cna-template/template/frameworks/oruga/pages/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<template> | ||
<div class="container"> | ||
<img class="logo" src="~/assets/oruga.png"> | ||
<h1 class="title"> | ||
Oruga | ||
</h1> | ||
<p class="subtitle"> | ||
Oruga UI is like a caterpillar, minimal and yet functional.<br>It's in your hands turning it into a butterfly. | ||
</p> | ||
<div class="buttons"> | ||
<o-button size="large" variant="primary" @click="goToDocs()"> | ||
Documentation | ||
</o-button> | ||
<o-button size="large" variant="info" @click="goToGithub()"> | ||
GitHub | ||
</o-button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'HomePage', | ||
methods: { | ||
goToDocs () { | ||
window.location = 'https://oruga.io/documentation/' | ||
}, | ||
goToGithub () { | ||
window.location = 'https://github.com/oruga-ui/oruga' | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
.logo { | ||
max-width: 300px; | ||
} | ||
.o-button { | ||
padding: 10px 30px; | ||
} | ||
.container { | ||
margin: 0 auto; | ||
min-height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
flex-direction: column; | ||
} | ||
.title { | ||
font-family: | ||
'Quicksand', | ||
'Source Sans Pro', | ||
-apple-system, | ||
BlinkMacSystemFont, | ||
'Segoe UI', | ||
Roboto, | ||
'Helvetica Neue', | ||
Arial, | ||
sans-serif; | ||
display: block; | ||
font-weight: 300; | ||
font-size: 100px; | ||
color: #35495e; | ||
letter-spacing: 1px; | ||
} | ||
.subtitle { | ||
font-weight: 300; | ||
font-size: 42px; | ||
color: #526488; | ||
word-spacing: 5px; | ||
padding-bottom: 15px; | ||
} | ||
.buttons { | ||
padding-top: 15px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+233 Bytes
(100%)
packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters