-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Website update with download button and updates to text #66
Open
katetaylormoz
wants to merge
2
commits into
main
Choose a base branch
from
websiteupdate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Your Page Title</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<div class="content"> | ||
<img class="logo" src="logo.png" alt="MemoryCache Logo"> | ||
<nav> | ||
<ul> | ||
<li><a href="#">Blog</a></li> | ||
<li><a href="#">Docs</a></li> | ||
<li><a href="#">About</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
|
||
<main"> | ||
<section class="hero"> | ||
<!-- <h1 class="heading-1">MemoryCache</h1> --> | ||
<h1 class="heading-1">MemoryCache is an experimental development project to turn a local desktop environment into a personal on-device AI agent.</h1> | ||
<button class="primary-button">Download MemoryCache</button> | ||
</section> | ||
|
||
<div class="banner-bar"> | ||
|
||
<section> | ||
<h2 class="heading-2">What's included?</h2> | ||
</section> | ||
<section class="features"> | ||
<article> | ||
<h3 class="heading-3">Locally-hosted privateGPT instance</h3> | ||
</article> | ||
<article> | ||
<h3 class="heading-3">Browser-based interface for working with your insights</h3> | ||
</article> | ||
<article> | ||
<h3 class="heading-3">Firefox extension for adding to your cache from the browser</h3> | ||
</article> | ||
<article> | ||
<h3 class="heading-3">Llamafile LLM options for finding the right model for your usecase</h3> | ||
</article> | ||
</section> | ||
|
||
|
||
</div> | ||
|
||
|
||
<section class="faq"> | ||
<h2 class="heading-2">Frequently Asked Questions</h2> | ||
|
||
<div class="accordion"> | ||
<button class="accordion-button heading-3">Q: Does MemoryCache send my data anywhere?</button> | ||
<div class="accordion-content"> | ||
<p>No. One of the core principles of MemoryCache is that you have full control over the system, and that it all stays on your device. If you’re a developer or someone who just likes to tinker with your computer applications, and you want to cloud-ify this, feel free! But we’re looking to stay entirely local. The software will form a link with folders that you point to on your computer and will utilize the contents to generate new forms of text intended to augment your existing workflows</p> | ||
</div> | ||
</div> | ||
<div class="accordion"> | ||
<button class="accordion-button heading-3">Q: How does MemoryCache work?</button> | ||
<div class="accordion-content"> | ||
<p>Install the MemoryCache application on your computer. Run the program to start the locally-run server which will also load an interface in your browser to interact with your cache and personal AI agent. Create a new project and point to a folder (or multiple folders) on your computer for the AI to access. A process called ‘ingestion’ will make those files available to the AI to provide answers to queries and surface generated insights based on what you provide to the software</p> | ||
</div> | ||
</div> | ||
<div class="accordion"> | ||
<button class="accordion-button heading-3">Q: Is this a Firefox project?</button> | ||
<div class="accordion-content"> | ||
<p>No. MemoryCache is a hackathon-style project by the Mozilla Innovation Ecosystem team, not a Firefox project. While the project uses a Firefox extension as a way of collecting information, this is a set of scripts and tools to augment privateGPT, a native AI application. It’s meant to streamline the process of saving information that you might read in the browser to store it in your own personal library of information.</p> | ||
</div> | ||
</div> | ||
</section> | ||
</main> | ||
|
||
<footer> | ||
</footer> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> |
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,22 @@ | ||
document.addEventListener('DOMContentLoaded', function () { | ||
var accordionButtons = document.querySelectorAll('.accordion-button'); | ||
|
||
accordionButtons.forEach(function(button) { | ||
button.addEventListener('click', function() { | ||
// This line optionally allows for closing all other accordions when one is opened. | ||
const currentlyActiveAccordionButton = document.querySelector('.accordion-button.active'); | ||
if(currentlyActiveAccordionButton && currentlyActiveAccordionButton !== button) { | ||
currentlyActiveAccordionButton.classList.toggle('active'); | ||
currentlyActiveAccordionButton.nextElementSibling.style.maxHeight = null; | ||
} | ||
|
||
button.classList.toggle('active'); | ||
var accordionContent = button.nextElementSibling; | ||
if (accordionContent.style.maxHeight) { | ||
accordionContent.style.maxHeight = null; | ||
} else { | ||
accordionContent.style.maxHeight = accordionContent.scrollHeight + 30 + "px"; | ||
} | ||
}); | ||
}); | ||
}); |
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,129 @@ | ||
@charset "UTF-8"; | ||
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600&display=swap"); | ||
html, body { | ||
font-family: 'Work Sans', sans-serif; | ||
background: linear-gradient(90deg, #FFB3BB 0%, #FFDFBA 26.56%, #FFFFBA 50.52%, #87EBDA 76.04%, #BAE1FF 100%); | ||
padding: 0; | ||
margin: 0; } | ||
|
||
section { | ||
max-width: 800px; | ||
margin: auto; } | ||
|
||
header { | ||
margin: 24 0; } | ||
header .content { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
max-width: 1000px; | ||
margin: auto; } | ||
header .content .logo { | ||
width: 170px; | ||
height: 33px; | ||
margin: auto 0; } | ||
header .content nav ul { | ||
display: flex; | ||
list-style-type: none; } | ||
header .content nav ul li a { | ||
margin: 12px; | ||
text-decoration: none; | ||
color: #2d3d46; | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 24px; } | ||
|
||
.hero { | ||
padding: 40px; } | ||
|
||
.features { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; } | ||
|
||
.features article { | ||
max-width: 360px; } | ||
|
||
p { | ||
font-size: 1em; | ||
line-height: 150%; } | ||
|
||
.heading-1 { | ||
color: #2d3d46; | ||
font-size: 1.4em; | ||
line-height: 150%; | ||
font-weight: 400; } | ||
|
||
.heading-2 { | ||
color: #2d3d46; | ||
font-size: .8em; | ||
line-height: 150%; | ||
font-weight: 400; } | ||
|
||
.heading-3 { | ||
color: #2d3d46; | ||
font-size: 1em; | ||
line-height: 150%; | ||
font-weight: 400; } | ||
|
||
button { | ||
font-family: 'Work Sans', sans-serif; } | ||
|
||
.banner-bar { | ||
width: 100%; | ||
height: 100%; | ||
background: #FFFFFF4D; | ||
padding: 16px 0; | ||
margin: 40px 0; } | ||
|
||
.primary-button { | ||
color: #180AB8; | ||
background-color: #FFFFFF6D; | ||
font-size: 1em; | ||
font-weight: 500; | ||
line-height: 24px; | ||
padding: 16px 24px; | ||
background: #FFFFFF; | ||
border: none; | ||
transition: background-color 0.2s ease; | ||
border-radius: 8px; } | ||
|
||
.primary-button:hover { | ||
background-color: #FFFFFF8D; | ||
cursor: pointer; } | ||
|
||
.accordion-content { | ||
max-height: 0; | ||
padding: 0 12px; | ||
overflow: hidden; | ||
transition: max-height 0.2s ease; | ||
border: 0px; | ||
border-top: none; | ||
margin-bottom: 12px; } | ||
|
||
.accordion-button { | ||
background-color: #FFFFFF2D; | ||
color: #2d3d46; | ||
border: none; | ||
cursor: pointer; | ||
padding: 12px; | ||
width: 100%; | ||
text-align: left; | ||
outline: none; | ||
transition: background-color 0.2s ease; | ||
font-size: 1em; | ||
border-radius: 8px; } | ||
|
||
.accordion-button:hover { | ||
background-color: #FFFFFF6D; } | ||
|
||
.accordion-button:after { | ||
content: '\002B'; | ||
/* Unicode character for "plus" sign (+) */ | ||
color: #777; | ||
float: right; | ||
margin-left: 5px; } | ||
|
||
.accordion-button.active:after { | ||
content: "\2212"; | ||
/* Unicode character for "minus" sign (−) */ } |
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 |
---|---|---|
|
@@ -16,5 +16,5 @@ | |
{%- include footer.html -%} | ||
|
||
</body> | ||
|
||
<script src="assets/script.js"></script> | ||
</html> |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@katetaylormoz I have not used these my self because I usually have SCSS laying around but might be nice here in the vanilla CSS work flow?
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, haha
I actually used a compiler called CodeKit to get to this build of css/html exports -- I didn't add the source files to this repo because it wasn't necessary for the scaling of the blog site for now. It was just easier to implement what I wanted to do this way without worrying about the environment too much for the development workflow
This is not ideal for production environments, but it was the quickest way to get a polished simple layout