mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 51c265400c | |||
| 6209b65afe | |||
| bb388ab000 |
+4
-2
@@ -11,11 +11,13 @@ yarn.lock
|
||||
|
||||
# Build
|
||||
extension.zip
|
||||
build/
|
||||
dist/
|
||||
betterseqtaplus-safari/
|
||||
|
||||
.million/
|
||||
.vscode/
|
||||
|
||||
**/.DS_Store
|
||||
**/.DS_Store
|
||||
|
||||
# Electron
|
||||
electron-dist/
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
@@ -0,0 +1,162 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>BetterSEQTA Settings</title>
|
||||
<style>
|
||||
:root {
|
||||
--background-primary: #ffffff;
|
||||
--background-secondary: #e5e7eb;
|
||||
--text-primary: black;
|
||||
--theme-primary: #4F46E5;
|
||||
--theme-hover: #4338CA;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background-primary: #232323;
|
||||
--background-secondary: #1a1a1a;
|
||||
--text-primary: white;
|
||||
--theme-primary: #6366F1;
|
||||
--theme-hover: #818CF8;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background-primary);
|
||||
color: var(--text-primary);
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: #666;
|
||||
font-size: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 0.25rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
input[type="url"] {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid var(--background-secondary);
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
background: var(--background-secondary);
|
||||
color: var(--text-primary);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
input[type="url"]:focus {
|
||||
outline: none;
|
||||
border-color: var(--theme-primary);
|
||||
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
|
||||
}
|
||||
|
||||
button {
|
||||
margin-top: 1rem;
|
||||
width: 100%;
|
||||
padding: 0.75rem;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background: var(--theme-primary);
|
||||
color: white;
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: var(--theme-hover);
|
||||
}
|
||||
|
||||
#error-message {
|
||||
color: #EF4444;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.5rem;
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>BetterSEQTA Settings</h1>
|
||||
<div class="subtitle">It's time to get started! To begin type in your school's SEQTA URL below.</div>
|
||||
<label for="seqtaUrl">SEQTA Website URL</label>
|
||||
<input type="url" id="seqtaUrl" placeholder="Enter your school's SEQTA URL (e.g https://seqta.school.edu.au)" required>
|
||||
<div id="error-message"></div>
|
||||
<button onclick="saveSettings()">Save Settings</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const electron = window.require('electron');
|
||||
const { ipcRenderer } = electron;
|
||||
const Store = window.require('electron-store');
|
||||
const store = new Store();
|
||||
|
||||
// Load saved URL on page load
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
const savedUrl = store.get('seqtaUrl') || '';
|
||||
document.getElementById('seqtaUrl').value = savedUrl;
|
||||
});
|
||||
|
||||
// Handle error messages from main process
|
||||
ipcRenderer.on('seqta-url-error', (event, message) => {
|
||||
const errorElement = document.getElementById('error-message');
|
||||
errorElement.textContent = message;
|
||||
errorElement.style.display = 'block';
|
||||
});
|
||||
|
||||
// Save settings
|
||||
function saveSettings() {
|
||||
const url = document.getElementById('seqtaUrl').value;
|
||||
const errorElement = document.getElementById('error-message');
|
||||
errorElement.style.display = 'none';
|
||||
|
||||
if (url) {
|
||||
ipcRenderer.send('set-seqta-url', url);
|
||||
} else {
|
||||
errorElement.textContent = 'Please enter a URL';
|
||||
errorElement.style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
// Handle enter key
|
||||
document.getElementById('seqtaUrl').addEventListener('keypress', (e) => {
|
||||
if (e.key === 'Enter') {
|
||||
saveSettings();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,333 @@
|
||||
import { app, BrowserWindow, ipcMain, session, Menu } from 'electron';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import Store from 'electron-store';
|
||||
|
||||
// Fix for __dirname in ES modules
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const store = new Store();
|
||||
let mainWindow = null;
|
||||
let settingsWindow = null;
|
||||
|
||||
// CSS to inject
|
||||
const customCSS = `
|
||||
#alertBar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Match SEQTA's styling */
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
|
||||
}
|
||||
`;
|
||||
|
||||
// Create the application menu
|
||||
function createAppMenu() {
|
||||
const isMac = process.platform === 'darwin';
|
||||
const template = [
|
||||
...(isMac ? [{
|
||||
label: app.name,
|
||||
submenu: [
|
||||
{ role: 'about' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'services' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'hide' },
|
||||
{ role: 'hideOthers' },
|
||||
{ role: 'unhide' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'quit' }
|
||||
]
|
||||
}] : []),
|
||||
{
|
||||
label: 'Settings',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Configure SEQTA URL',
|
||||
accelerator: isMac ? 'Cmd+,' : 'Ctrl+,',
|
||||
click: () => {
|
||||
createSettingsWindow();
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'View',
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'forceReload' },
|
||||
{ role: 'toggleDevTools' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'resetZoom' },
|
||||
{ role: 'zoomIn' },
|
||||
{ role: 'zoomOut' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
}
|
||||
|
||||
// Validate SEQTA URL
|
||||
function isValidSeqtaUrl(url) {
|
||||
try {
|
||||
const urlObj = new URL(url);
|
||||
// Only ensure it's a valid HTTPS URL
|
||||
return urlObj.protocol === 'https:';
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the correct path for the extension based on whether we're in development or production
|
||||
function getExtensionPath() {
|
||||
if (app.isPackaged) {
|
||||
// In production, the extension is in the resources directory
|
||||
return path.join(process.resourcesPath, 'chrome-extension');
|
||||
} else {
|
||||
// In development, the extension is in the dist directory
|
||||
return path.join(__dirname, '..', 'dist', 'chrome');
|
||||
}
|
||||
}
|
||||
|
||||
// Load the Chrome extension
|
||||
async function loadExtension() {
|
||||
try {
|
||||
const extensionPath = getExtensionPath();
|
||||
console.log('Loading extension from:', extensionPath);
|
||||
|
||||
await session.defaultSession.loadExtension(extensionPath, {
|
||||
allowFileAccess: true
|
||||
});
|
||||
console.log('Extension loaded successfully!');
|
||||
} catch (err) {
|
||||
console.error('Failed to load extension:', err);
|
||||
}
|
||||
}
|
||||
|
||||
function createMainWindow() {
|
||||
console.log('🚀 Creating main window...');
|
||||
if (mainWindow) {
|
||||
if (!mainWindow.isDestroyed()) {
|
||||
console.log('✨ Existing window found, focusing it');
|
||||
mainWindow.focus();
|
||||
return mainWindow;
|
||||
}
|
||||
console.log('🔄 Old window was destroyed, creating new one');
|
||||
}
|
||||
|
||||
console.log('📦 Initializing new BrowserWindow');
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 1200,
|
||||
height: 800,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
backgroundThrottling: false,
|
||||
enableWebSQL: false,
|
||||
webgl: false,
|
||||
offscreen: false
|
||||
},
|
||||
show: false,
|
||||
backgroundColor: '#ffffff'
|
||||
});
|
||||
|
||||
const seqtaUrl = store.get('seqtaUrl');
|
||||
console.log('📍 Stored SEQTA URL:', seqtaUrl);
|
||||
|
||||
// Register keyboard shortcut for settings
|
||||
mainWindow.webContents.on('before-input-event', (event, input) => {
|
||||
if ((input.meta || input.control) && input.key === ',') {
|
||||
createSettingsWindow();
|
||||
}
|
||||
});
|
||||
|
||||
// Inject CSS when the page loads
|
||||
mainWindow.webContents.on('did-finish-load', () => {
|
||||
console.log('🎨 Page loaded, injecting CSS');
|
||||
mainWindow.webContents.insertCSS(customCSS).catch(err => {
|
||||
console.error('Failed to inject CSS:', err);
|
||||
});
|
||||
});
|
||||
|
||||
// Only show window when it's ready
|
||||
mainWindow.once('ready-to-show', () => {
|
||||
console.log('🎉 Window ready to show!');
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
});
|
||||
|
||||
if (seqtaUrl) {
|
||||
if (!isValidSeqtaUrl(seqtaUrl)) {
|
||||
console.error('❌ Invalid SEQTA URL stored:', seqtaUrl);
|
||||
createSettingsWindow();
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('🌐 Loading SEQTA URL:', seqtaUrl);
|
||||
mainWindow.loadURL(seqtaUrl)
|
||||
.then(() => {
|
||||
console.log('✅ Successfully loaded SEQTA URL');
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('❌ Failed to load SEQTA URL:', err);
|
||||
createSettingsWindow();
|
||||
});
|
||||
} else {
|
||||
console.log('⚙️ No SEQTA URL found, opening settings');
|
||||
createSettingsWindow();
|
||||
}
|
||||
|
||||
return mainWindow;
|
||||
}
|
||||
|
||||
function createSettingsWindow() {
|
||||
if (settingsWindow) {
|
||||
settingsWindow.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
settingsWindow = new BrowserWindow({
|
||||
width: 600,
|
||||
height: 400,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
},
|
||||
show: false,
|
||||
backgroundColor: '#ffffff'
|
||||
});
|
||||
|
||||
const settingsPath = path.join(__dirname, 'index.html');
|
||||
settingsWindow.loadFile(settingsPath);
|
||||
|
||||
settingsWindow.once('ready-to-show', () => {
|
||||
settingsWindow.show();
|
||||
settingsWindow.focus();
|
||||
});
|
||||
|
||||
// Only enable DevTools in development
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
settingsWindow.webContents.openDevTools();
|
||||
}
|
||||
|
||||
settingsWindow.on('closed', () => {
|
||||
settingsWindow = null;
|
||||
});
|
||||
}
|
||||
|
||||
// Performance optimization: Disable hardware acceleration if running on low-end device
|
||||
if (process.platform !== 'darwin') { // Skip for macOS
|
||||
app.disableHardwareAcceleration();
|
||||
}
|
||||
|
||||
// Performance optimization: Disable smooth scrolling
|
||||
app.commandLine.appendSwitch('disable-smooth-scrolling');
|
||||
|
||||
// Wait for app to be ready before creating windows
|
||||
app.whenReady().then(async () => {
|
||||
createAppMenu();
|
||||
await loadExtension();
|
||||
createMainWindow();
|
||||
});
|
||||
|
||||
// Performance optimization: Quit immediately instead of gracefully
|
||||
app.on('window-all-closed', () => {
|
||||
app.quit();
|
||||
});
|
||||
|
||||
app.on('activate', () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createMainWindow();
|
||||
}
|
||||
});
|
||||
|
||||
// Format and validate SEQTA URL
|
||||
function formatAndValidateUrl(url) {
|
||||
// Remove any whitespace
|
||||
url = url.trim();
|
||||
|
||||
// If no protocol specified, add https://
|
||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||
url = 'https://' + url;
|
||||
}
|
||||
|
||||
// If it's http://, upgrade to https://
|
||||
if (url.startsWith('http://')) {
|
||||
url = 'https://' + url.slice(7);
|
||||
}
|
||||
|
||||
try {
|
||||
const urlObj = new URL(url);
|
||||
// Ensure it's https
|
||||
if (urlObj.protocol !== 'https:') {
|
||||
throw new Error('URL must use HTTPS');
|
||||
}
|
||||
return { isValid: true, url: url };
|
||||
} catch (error) {
|
||||
return { isValid: false, url: url, error: error.message };
|
||||
}
|
||||
}
|
||||
|
||||
// Handle setting the SEQTA URL
|
||||
ipcMain.on('set-seqta-url', (event, url) => {
|
||||
console.log('🔧 Received new SEQTA URL:', url);
|
||||
|
||||
const { isValid, url: formattedUrl, error } = formatAndValidateUrl(url);
|
||||
|
||||
if (!isValid) {
|
||||
console.error('❌ Invalid URL format:', error);
|
||||
event.reply('seqta-url-error', 'Please enter a valid URL');
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('💾 Saving URL to store:', formattedUrl);
|
||||
store.set('seqtaUrl', formattedUrl);
|
||||
|
||||
// Create main window if it doesn't exist
|
||||
if (!mainWindow || mainWindow.isDestroyed()) {
|
||||
console.log('🆕 Creating new main window');
|
||||
createMainWindow();
|
||||
} else {
|
||||
console.log('🔄 Loading new URL in existing window:', formattedUrl);
|
||||
mainWindow.loadURL(formattedUrl).then(() => {
|
||||
console.log('✅ URL loaded successfully');
|
||||
|
||||
console.log('🎨 Injecting CSS and settings button');
|
||||
mainWindow.webContents.insertCSS(customCSS).catch(err => {
|
||||
console.error('Failed to inject CSS:', err);
|
||||
});
|
||||
|
||||
mainWindow.webContents.executeJavaScript(`
|
||||
if (!document.getElementById('bsp-settings-button')) {
|
||||
document.body.insertAdjacentHTML('beforeend', ${JSON.stringify(settingsButtonHTML)});
|
||||
document.getElementById('bsp-settings-button').addEventListener('click', () => {
|
||||
window.postMessage('open-settings', '*');
|
||||
});
|
||||
}
|
||||
`).catch(err => {
|
||||
console.error('Failed to inject settings button:', err);
|
||||
});
|
||||
|
||||
console.log('👀 Showing and focusing window');
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
}).catch(err => {
|
||||
console.error('❌ Failed to load SEQTA URL:', err);
|
||||
event.reply('seqta-url-error', 'Failed to load SEQTA. Please check your connection and URL.');
|
||||
});
|
||||
}
|
||||
|
||||
// Close settings window if it exists
|
||||
if (settingsWindow && !settingsWindow.isDestroyed()) {
|
||||
console.log('🚪 Closing settings window');
|
||||
settingsWindow.close();
|
||||
}
|
||||
});
|
||||
+52
-1
@@ -3,6 +3,7 @@
|
||||
"version": "3.4.2",
|
||||
"type": "module",
|
||||
"description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development, while incorporating a plethora of new and improved features!",
|
||||
"main": "electron/main.js",
|
||||
"browserslist": "> 0.5%, last 2 versions, not dead",
|
||||
"scripts": {
|
||||
"dev": "cross-env MODE=chrome vite dev",
|
||||
@@ -14,7 +15,11 @@
|
||||
"convert:safari": "xcrun safari-web-extension-converter dist/safari --project-location . --app-name $npm_package_name-safari",
|
||||
"release": "gh release create $npm_package_name@$npm_package_version ./dist/*.zip --generate-notes",
|
||||
"publish": "bun lib/publish.js --b",
|
||||
"zip": "bedframe zip"
|
||||
"zip": "bedframe zip",
|
||||
"electron-dev": "electron .",
|
||||
"electron-build": "electron-builder",
|
||||
"electron-pack": "npm run build:chrome && electron-builder --dir",
|
||||
"electron-dist": "npm run build:chrome && electron-builder"
|
||||
},
|
||||
"targets": {
|
||||
"prod": {
|
||||
@@ -37,6 +42,8 @@
|
||||
"@types/mime-types": "^2.1.4",
|
||||
"@vitejs/plugin-react-swc": "^3.7.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"electron": "^33.2.1",
|
||||
"electron-builder": "^25.1.8",
|
||||
"eslint": "^8.57.0",
|
||||
"glob": "^11.0.0",
|
||||
"mime-types": "^2.1.35",
|
||||
@@ -74,6 +81,7 @@
|
||||
"codemirror": "^6.0.1",
|
||||
"color": "^4.2.3",
|
||||
"dompurify": "^3.1.6",
|
||||
"electron-store": "^10.0.0",
|
||||
"embla-carousel-autoplay": "^8.3.1",
|
||||
"embla-carousel-svelte": "^8.3.1",
|
||||
"fuse.js": "^7.0.0",
|
||||
@@ -95,5 +103,48 @@
|
||||
"uuid": "^9.0.1",
|
||||
"vite": "^5.4.4",
|
||||
"webextension-polyfill": "^0.10.0"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.betterseqta.app",
|
||||
"productName": "BetterSEQTA",
|
||||
"directories": {
|
||||
"output": "electron-dist",
|
||||
"buildResources": "build"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"electron/**/*",
|
||||
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
|
||||
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
|
||||
"!**/node_modules/*.d.ts",
|
||||
"!**/node_modules/.bin",
|
||||
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
|
||||
"!.editorconfig",
|
||||
"!**/._*",
|
||||
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
|
||||
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
|
||||
"!**/{appveyor.yml,.travis.yml,circle.yml}",
|
||||
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
|
||||
],
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "dist/chrome",
|
||||
"to": "chrome-extension",
|
||||
"filter": ["**/*"]
|
||||
}
|
||||
],
|
||||
"mac": {
|
||||
"category": "public.app-category.education",
|
||||
"target": ["dmg", "zip"],
|
||||
"icon": "build/icon.icns"
|
||||
},
|
||||
"win": {
|
||||
"target": "nsis",
|
||||
"icon": "build/icon.ico"
|
||||
},
|
||||
"linux": {
|
||||
"target": "AppImage",
|
||||
"icon": "build/icon.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -1019,9 +1019,11 @@ export async function ObserveMenuItemPosition() {
|
||||
});
|
||||
}
|
||||
|
||||
function main() {
|
||||
async function main() {
|
||||
if (typeof settingsState.onoff === 'undefined') {
|
||||
browser.runtime.sendMessage({ type: 'setDefaultStorage' })
|
||||
|
||||
await delay(10)
|
||||
}
|
||||
|
||||
const handleDisabled = () => {
|
||||
|
||||
@@ -1,402 +0,0 @@
|
||||
https://sethburkart123.github.io/sf-pro-https://sethburkart123.github.io/sf-pro-fonts/fonts/
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
* SF Pro Display
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-ultralight.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-ultralight.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-ultralight.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 200;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-thin.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-thin.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-thin.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-light.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-light.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-light.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-regular.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-regular.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-medium.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-medium.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-medium.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-semibold.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-semibold.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-semibold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-bold.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-bold.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-bold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-heavy.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-heavy.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-heavy.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-black.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-black.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-black.ttf') format('truetype');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
* SF Pro Display Italic
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-ultralightitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-ultralightitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-ultralightitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 200;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-thinitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-thinitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-thinitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-lightitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-lightitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-lightitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-regularitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-regularitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-regularitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-mediumitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-mediumitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-mediumitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-semibolditalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-semibolditalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-semibolditalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-bolditalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-bolditalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-bolditalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-heavyitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-heavyitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-heavyitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Display';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-blackitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-blackitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-display-blackitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
* SF Pro Text
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: regular;
|
||||
font-weight: 300;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-light.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-light.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-light.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: regular;
|
||||
font-weight: 400;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-regular.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-regular.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: regular;
|
||||
font-weight: 500;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-medium.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-medium.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-medium.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: regular;
|
||||
font-weight: 600;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-semibold.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-semibold.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-semibold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: regular;
|
||||
font-weight: 700;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-bold.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-bold.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-bold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: regular;
|
||||
font-weight: 800;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-heavy.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-heavy.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-heavy.ttf') format('truetype');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
* SF Pro Text Italic
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-lightitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-lightitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-lightitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-regularitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-regularitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-regularitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-mediumitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-mediumitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-mediumitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-semibolditalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-semibolditalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-semibolditalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-bolditalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-bolditalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-bolditalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Pro Text';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-heavyitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-heavyitalic.woff') format('woff'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sf-pro-text-heavyitalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
* SF Mono
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: regular;
|
||||
font-weight: 300;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-light.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-light.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: regular;
|
||||
font-weight: 400;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-regular.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-regular.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: regular;
|
||||
font-weight: 500;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-medium.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-medium.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: regular;
|
||||
font-weight: 600;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-semibold.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-semibold.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: regular;
|
||||
font-weight: 700;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-bold.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-bold.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: regular;
|
||||
font-weight: 800;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-heavy.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-heavy.woff') format('woff');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
* SF Pro Text Italic
|
||||
* ------------------------------------------------------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-lightitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-lightitalic.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-regularitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-regularitalic.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-mediumitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-mediumitalic.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-semibolditalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-semibolditalic.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-bolditalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-bolditalic.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SF Mono';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-heavyitalic.woff2') format('woff2'),
|
||||
url('https://sethburkart123.github.io/sf-pro-fonts/fonts/sfmono-heavyitalic.woff') format('woff');
|
||||
}
|
||||
Reference in New Issue
Block a user