Skip to content

Commit

Permalink
feat: styling logo
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth committed Jan 5, 2024
1 parent 0c7805a commit 6721e57
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 12 deletions.
43 changes: 43 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,49 @@ html body.light {
--cutout: #052b65;
}

/* override logo */
html body a.home-link {
background-image: none !important;
padding: 0 !important;
}

#cow-logo {
display: flex;
align-items: center;
justify-content: center;
padding: 0 0 0 1rem;
}

#cow-logo>img {
object-fit: contain;
width: 100%;
height: 3.5rem;
margin: 0 1.5rem 0 0;
}

html body.dark #cow-logo>img {
content: url(/cow_logo_light.svg);
}

#cow-logo-small {
display: flex;
align-items: center;
justify-content: center;
padding: 0 0 0 2rem;
}

#cow-logo-small>img {
object-fit: contain;
width: 100%;
height: 3.5rem;
margin: 0;
;
}

html body.dark #cow-logo-small>img {
content: url(/cow_icon_light.svg);
}

input,
button {
border: 2px solid transparent;
Expand Down
13 changes: 7 additions & 6 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@
<Shell>
<Nav title="" links={data.links} slot="top-nav">
<svelte:fragment slot="home-large">
<strong id="cow-word">CoW</strong> tutorials
<span id="cow-logo">
<img src="/cow_logo_dark.svg" alt="CoW Logo" />
tutorials
</span>
</svelte:fragment>

<svelte:fragment slot="home-small">
<strong>CoW</strong>
<span id="cow-logo-small">
<img src="/cow_icon_dark.svg" alt="CoW Logo" />
</span>
</svelte:fragment>

<svelte:fragment slot="search">
Expand Down Expand Up @@ -64,10 +69,6 @@
display: none;
}
#cow-word {
text-transform: none;
}
@media (min-width: 800px) {
span {
height: 100%;
Expand Down
1 change: 1 addition & 0 deletions static/cow_icon_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/cow_icon_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/cow_logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/cow_logo_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"short_name": "Learn Svelte",
"short_name": "CoW Tutorials",
"name": "learn.svelte.dev",
"description": "An interactive Svelte/SvelteKit tutorial",
"description": "An interactive CoW tutorial",
"icons": [
{
"src": "/svelte-logo-square.svg",
"src": "/cow_logo_dark.svg",
"type": "image/svg+xml",
"sizes": "512x512"
},
{
"src": "/svelte-logo-square.png",
"src": "/favicon.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any maskable"
Expand Down
Binary file removed static/svelte-logo-square.png
Binary file not shown.
1 change: 0 additions & 1 deletion static/svelte-logo-square.svg

This file was deleted.

1 change: 0 additions & 1 deletion static/svelte-logo.svg

This file was deleted.

0 comments on commit 6721e57

Please sign in to comment.