forked from ElMassimo/vite_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the logo to the demo to showcase vite_asset_path
- Loading branch information
Showing
12 changed files
with
77 additions
and
250 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
*, ::after, ::before { | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
font-family: ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | ||
line-height: 1.5; | ||
} | ||
|
||
body { | ||
font-family: inherit; | ||
line-height: inherit; | ||
margin: 0; | ||
} | ||
|
||
header { | ||
display: grid; | ||
height: 100vh; | ||
margin: 0 auto; | ||
padding-bottom: 20vh; | ||
place-content: center; | ||
} | ||
|
||
.logo { | ||
height: 0; | ||
opacity: 0; | ||
} | ||
|
||
.hero { | ||
box-sizing: border-box; | ||
font-size: clamp(4rem, 10vw, 4.5rem); | ||
line-height: 1; | ||
font-weight: 800; | ||
height: 128px; | ||
margin: 0 0 0 1rem; | ||
text-align: center; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
.hero > span { | ||
transition: all 0.3s ease; | ||
letter-spacing: -0.025em; | ||
text-shadow: 1px 1px 2px #00000063; | ||
} | ||
|
||
.logo { | ||
transition: all 0.3s ease; | ||
opacity: 1; | ||
height: clamp(6rem, 20vw, 8rem); | ||
margin: 0 auto 1.5rem; | ||
} | ||
|
||
.rails { | ||
color: #cc0000; | ||
} | ||
|
||
.vite { | ||
color: #ffac33; | ||
} | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<header class="h-screen max-w-screen-lg xl:max-w-screen-xl mx-auto grid place-content-center"> | ||
<h1 class="hero text-center text-4xl sm:text-6xl lg:text-7xl -mt-32 leading-none font-extrabold tracking-tight"> | ||
Vite ⚡️ Rails | ||
<header> | ||
<img class="logo" src="<%= vite_asset_path 'logo.svg' %>"/> | ||
<h1 class="hero"> | ||
<span class="vite">Vite</span> <span class="rails">Rails</span> | ||
</h1> | ||
</header> |
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
Oops, something went wrong.